Template:Feature box: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Added link parameter for alias links) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
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, | |||
CONCAT("{{{item|}}}")=item | |||
| where = _pageName = "{{#replace: {{{link|{{{name|{{{1}}}}}}}}} | " | \" }}" | |||
| format = template | |||
| template = Feature box/format | |||
| named args = yes | |||
| default = [[{{{1}}}]][[Category:Pages with unknown abilities]] | |||
}}</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}} | ||
}} | |||
Class action: | |||
<pre>{{Feature box|Multiattack (Spaw)}}</pre> | |||
{{Feature box|Multiattack (Spaw)}} | |||
Weapon action: | |||
<pre>{{Feature box|Hellflame Cleave|item=Hellfire Greataxe}}</pre> | |||
{{Feature box|Hellflame Cleave|item=Hellfire Greataxe}} | |||
==Template data== | ==Template data== | ||
Line 33: | Line 50: | ||
"type": "content", | "type": "content", | ||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"1" | "1" | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 09:18, 6 May 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|item=Hellfire Greataxe}}
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | The content of the feature box. | Content | required |