Template:MonsterSpecialAttackTable: Difference between revisions

From Melvor Idle
(Implement additional parameters)
m (Use singular term for source column)
 
(2 intermediate revisions by the same user not shown)
Line 21: Line 21:
"description": "Specifies the header text for the 'Source' column",
"description": "Specifies the header text for the 'Source' column",
"type": "string",
"type": "string",
"default": "Monsters"
"default": "Monster"
},
},
"includeSource": {
"includeSource": {
Line 41: Line 41:
[[Category:Tables]]
[[Category:Tables]]
{{V}}<br/><br/><br/></noinclude>
{{V}}<br/><br/><br/></noinclude>
<onlyinclude>{{#invoke:AuronTest/SourceTables|getSpecialAttackTable|{{{1|Monster}}}|effect={{{effect|}}}|sourceHeader={{{sourceHeader|Monsters}}}|includeSource={{{includeSource|false}}}}}</onlyinclude>
<onlyinclude>{{#invoke:Attacks/Tables|getSpecialAttackTable|{{{1|Monster}}}|effect={{{effect|}}}|sourceHeader={{{sourceHeader|Monster}}}|includeSource={{{includeSource|false}}}}}</onlyinclude>
<noinclude>
<noinclude>
</noinclude>
</noinclude>

Latest revision as of 23:57, 9 November 2021

This template is powered by Lua from Module:Attacks/Tables.

Syntax: {{MonsterSpecialAttackTable|<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
Monster
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
Monster
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).