Template:Feature box: Difference between revisions
Jump to navigation
Jump to search
HarveyPekar (talk | contribs) (including the alias parameter into the template maker) |
HiddenDragon (talk | contribs) (Updated Feature box to now query from the spells cargo table.) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#cargo_query: tables = spells | ||
{{{1}}} | | fields = _pageName = link, | ||
name, | |||
image, | |||
controller_icon, | |||
action_type, | |||
damage, | |||
damage_type, | |||
extra_damage, | |||
extra_damage_type, | |||
description, | |||
save, | |||
spell_range = range, | |||
aoe, | |||
aoe_size = area, | |||
recharge | |||
| where = _pageName = "{{#replace: {{{1}}} | " | \" }}" | |||
| format = template | |||
| template = Feature box/format | |||
| named args = yes | |||
| default = [[{{{1}}}]] | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Creates a box to display | Creates a box to display a creature's special abilities, attacks, and spells. It is intended for use on creature pages, rather than being pages of their own. | ||
You can use it with any weapon action, spell, or class action. | |||
== Examples == | |||
Spell: | |||
{{Feature box | <pre>{{Feature box|Hypnotic Pattern}}</pre> | ||
{{Feature box|Hypnotic Pattern}} | |||
| | |||
}} | |||
</pre> | |||
Class action: | |||
{{Feature box | <pre>{{Feature box|Multiattack (Spaw)}}</pre> | ||
| | {{Feature box|Multiattack (Spaw)}} | ||
}} | |||
Weapon action: | |||
{{Feature box| | <pre>{{Feature box|Hellflame Cleave}}</pre> | ||
{{Feature box|Hellflame Cleave}} | |||
}} | |||
==Template data== | ==Template data== | ||
Line 40: | Line 49: | ||
"type": "content", | "type": "content", | ||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"1" | "1" | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 07:00, 28 April 2024
Creates a box to display a creature's special abilities, attacks, and spells. It is intended for use on creature pages, rather than being pages of their own.
You can use it with any weapon action, spell, or class action.
Examples
Spell:
{{Feature box|Hypnotic Pattern}}
Class action:
{{Feature box|Multiattack (Spaw)}}
Weapon action:
{{Feature box|Hellflame Cleave}}
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | The content of the feature box. | Content | required |