Template:Weapon action: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) (Added documentation/template demo templates) |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#cargo_query: tables = | <includeonly><dl>{{#cargo_query: tables = spells | ||
| fields = name, icon, action_type, description | | fields = _pageName = link, name, icon, action_type, description, CONCAT({{{2|40}}})=size | ||
| where = | | where = _pageName = "{{#replace: {{{1}}} | " | \" }}" | ||
| format = template | | format = template | ||
| template = | | template = Weapon action/format | ||
| named args = yes | | named args = yes | ||
}}</includeonly><noinclude> | }}</dl></includeonly><noinclude>{{Documentation|content= | ||
Use this to display a weapon action. Examples follow. | Use this to display a weapon action. Examples follow. | ||
This template just runs the Cargo query; see [[Template:Weapon action/format]] for the formatting. | |||
== Examples == | |||
{{Template demo | |||
| style = list | |||
| <nowiki>{{Weapon action | Tenacity }}</nowiki> | |||
| <nowiki>{{Weapon action | Tiger's Bloodlust }}</nowiki> | |||
}} | |||
< | == Template data == | ||
{{ | <templatedata> | ||
</ | { | ||
"params": { | |||
"1": { | |||
"label": "name", | |||
"description": "The name of the weapon action, without (Weapon Action)", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "size", | |||
"description": "The size of the icon.", | |||
"type": "number", | |||
"default": "40" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2" | |||
] | |||
} | |||
</templatedata> | |||
}} | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 23:14, 19 January 2025
Template documentation
Use this to display a weapon action. Examples follow.
This template just runs the Cargo query; see Template:Weapon action/format for the formatting.
Examples
Markup
{{Weapon action | Tenacity }}Renders as
Tenacity (
)
When you miss an attack, deal
Bludgeoning damage equal to your Strength modifier anyway (minimum of 1).
Markup
{{Weapon action | Tiger's Bloodlust }}Renders as
Tiger's Bloodlust (
)
Lash out to attack up to 3 enemies at once. They each take half the damage your weapon usually deals and start to . Available only when .
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | 1 | The name of the weapon action, without (Weapon Action) | String | required |
size | 2 | The size of the icon.
| Number | optional |