Template:Feature box: Difference between revisions
Jump to navigation
Jump to search
(use {1} for content) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(14 intermediate revisions by 4 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, | |||
damage_modifier, | |||
extra_damage, | |||
extra_damage_type, | |||
extra_damage_modifier, | |||
extra_damage_2, | |||
extra_damage_type_2, | |||
extra_damage_modifier_2, | |||
extra_damage_3, | |||
extra_damage_type_3, | |||
extra_damage_modifier_3, | |||
description, | |||
extra_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 | |||
| limit = 1 | |||
| order by = _ID | |||
| more results text= | |||
| 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 == | |||
{{Template demo | |||
{{Feature box | | style = list | ||
| | | caption 1 = Spell example. | ||
| | | <nowiki>{{Feature box|Hypnotic Pattern}}</nowiki> | ||
| | | caption 2 = Class action example. | ||
| <nowiki>{{Feature box|Multiattack (Spaw)}}</nowiki> | |||
| caption 3 = Weapon action example. | |||
| <nowiki>{{Feature box|Hellflame Cleave|item=Hellfire Greataxe}}</nowiki> | |||
| caption 4 = Example with many damage parameters | |||
| <nowiki>{{Feature box|Multiattack (Water Elemental)}}</nowiki> | |||
}} | }} | ||
Line 32: | Line 63: | ||
"type": "content", | "type": "content", | ||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"1" | "1" | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 11:23, 17 January 2025
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 example.
Markup{{Feature box|Hypnotic Pattern}}Renders as
Class action example.
Markup{{Feature box|Multiattack (Spaw)}}Renders as
Weapon action example.
Markup{{Feature box|Hellflame Cleave|item=Hellfire Greataxe}}Renders as
Example with many damage parameters
Markup{{Feature box|Multiattack (Water Elemental)}}Renders as
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | The content of the feature box. | Content | required |