Template:PlayerSpecialAttackTable: Difference between revisions
From Melvor Idle
(Implement additional parameters) |
m (Change from test module) |
||
Line 41: | Line 41: | ||
[[Category:Tables]] | [[Category:Tables]] | ||
{{V}}<br/><br/><br/></noinclude> | {{V}}<br/><br/><br/></noinclude> | ||
<onlyinclude>{{#invoke: | <onlyinclude>{{#invoke:Attacks/SourceTables|getSpecialAttackTable|{{{1|Item,Spell}}}|effect={{{effect|}}}|sourceHeader={{{sourceHeader|}}}|includeSource={{{includeSource|false}}}}}</onlyinclude> | ||
<noinclude> | <noinclude> | ||
</noinclude> | </noinclude> |
Revision as of 23:54, 9 November 2021
This template is powered by Lua from Module:Attacks/Tables.
Syntax: {{PlayerSpecialAttackTable|<Types>|sourceHeader=<HeaderText>|includeSource=<true/false>|effect=<Effect>}}
.
Produces a table of special attacks the player may inflict in combat.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | 1 | A comma separated list of types to be included. Can be any combination of: Monster, Item, Spell, Familiar
| String | suggested |
Effect | effect | If specified, only special attacks which have the specified effect are included; otherwise, all special attacks are included | String | optional |
Source Header | sourceHeader | Specifies the header text for the 'Source' column
| String | optional |
Include Source | includeSource | Indicates whether the source type column should be included or not
| Boolean | optional |
This page is up to date (v1.3.1). |
Script error: No such module "Attacks/SourceTables".