Template:PlayerSpecialAttackTable: Difference between revisions

From Melvor Idle
(Migrate to new module)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template is powered by Lua from [[Module:Attacks/Tables]].
<noinclude>This template is powered by Lua from [[Module:Attacks/Tables]].


Syntax: {{T|PlayerSpecialAttackTable|Effect}}.
Syntax: {{T|PlayerSpecialAttackTable|<Types>|effect=<Effect>|sourceHeader=<HeaderText>|includeSource=<true/false>}}.
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {
"1": {
"label": "Type",
"description": "A comma separated list of types to be included. Can be any combination of: Monster, Item, Spell, Familiar",
"type": "string",
"default": "Item,Spell",
"suggested": true
},
"effect": {
"label": "Effect",
"label": "Effect",
"description": "If specified, only special attacks which have the specified effect are included; otherwise, all special attacks are included",
"description": "If specified, only special attacks which have the specified effect are included; otherwise, all special attacks are included",
"type": "string"
"type": "string"
},
"sourceHeader": {
"label": "Source Header",
"description": "Specifies the header text for the 'Source' column",
"type": "string",
"default": "Source"
},
"includeSource": {
"label": "Include Source",
"description": "Indicates whether the source type column should be included or not",
"type": "boolean",
"default": "false"
}
}
},
},
"description": "Produces a table of special attacks the player may inflict in combat."
"description": "Produces a table of special attacks the player may inflict in combat.",
"paramOrder": [
"1",
"effect",
"sourceHeader",
"includeSource"
]
}
}
</templatedata>
</templatedata>
[[Category:Tables]]
[[Category:Tables]]
{{V}}<br/><br/><br/></noinclude>
{{V}}<br/><br/><br/></noinclude>
<onlyinclude>{{#invoke:Attacks/Tables|getSpecialAttackTable|Item|{{{1|}}}}}</onlyinclude>
<onlyinclude>{{#invoke:Attacks/Tables|getSpecialAttackTable|{{{1|Item,Spell}}}|effect={{{effect|}}}|sourceHeader={{{sourceHeader|}}}|includeSource={{{includeSource|false}}}}}</onlyinclude>
<noinclude>
<noinclude>
</noinclude>
</noinclude>

Latest revision as of 23:55, 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.

Template parameters

ParameterDescriptionTypeStatus
Type1

A comma separated list of types to be included. Can be any combination of: Monster, Item, Spell, Familiar

Default
Item,Spell
Stringsuggested
Effecteffect

If specified, only special attacks which have the specified effect are included; otherwise, all special attacks are included

Stringoptional
Source HeadersourceHeader

Specifies the header text for the 'Source' column

Default
Source
Stringoptional
Include SourceincludeSource

Indicates whether the source type column should be included or not

Default
false
Booleanoptional
This page is up to date (v1.3.1).