Template:Passive: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
m (Solution to the UNIQ-QINU issue did not work) Tag: Manual revert |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#cargo_query: tables = passives | <includeonly>{{#cargo_query: tables = passives | ||
| fields = _pageName = link, name, | | fields = _pageName = link, name, icon, description, extra_description, {{#if: {{{w|}}} | CONCAT("{{{w}}}")=size}}, {{#if: {{{extra|}}} | CONCAT("{{{extra}}}")=extra}}, {{#if: {{{nolist|}}} | CONCAT("{{{nolist}}}")=nolist}} | ||
| where = _pageName = "{{#replace: {{{1}}} | " | \" }}" OR _pageName = "{{#replace: {{{1}}} | " | \" }} (passive feature)" | | where = _pageName = "{{#replace: {{{1}}} | " | \" }}" OR _pageName = "{{#replace: {{{1}}} | " | \" }} (passive feature)" | ||
| format = template | | format = template | ||
| limit = 1 | | limit = 1 | ||
| template = Passive/ | | template = Passive/format | ||
| more results text = | | more results text = | ||
| default = [[{{{1}}}]]{{Main namespace only|[[Category:Pages with unknown passives]]}} | | default = [[{{{1}}}]]{{Main namespace only|[[Category:Pages with unknown passives]]}} | ||
| named args = yes | | named args = yes | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude>{{Documentation|content= | ||
Use this to display a passive feature on an equipment page. Examples follow. | Use this to display a passive feature on an equipment page. Examples follow. | ||
This template just runs the Cargo query; see [[Template:Passive/ | This template just runs the Cargo query; see [[Template:Passive/format]] for the formatting. | ||
---- | ---- | ||
{{Template demo | |||
| style = list | |||
< | |<nowiki>{{Passive | Heightened Awareness }}</nowiki> | ||
{{Passive | Heightened Awareness }} | |<nowiki>{{Passive | Arcane Battery }}</nowiki> | ||
</ | |<nowiki>{{Passive | Font of Inspiration | w = 20 }}</nowiki> | ||
|<nowiki>{{Passive | Adamantine Backlash | extra = yes }}</nowiki> | |||
|<nowiki>{{Passive | Unknown Passive }}</nowiki> | |||
}} | |||
< | |||
{{Passive | Arcane Battery }} | |||
</ | |||
{{Passive | | |||
< | |||
{{Passive | | |||
</ | |||
{{Passive | Unknown Passive }} | |||
== See also == | == See also == | ||
* {{t link|Passive/ | * {{t link|Passive/format}} - An internal template actually responsible for formatting this template. | ||
* {{t link|Passive inline}} - Similar template that just displays the icon of the condition. For use in inline text. | * {{t link|Passive inline}} - Similar template that just displays the icon of the condition. For use in inline text. | ||
* {{t link|Passive feature page}} - Page generating template responsible for adding a | * {{t link|Passive feature page}} - Page generating template responsible for adding a passive into the passives Cargo table so that it can be referenced by this template. | ||
* {{t link|Passive minimal}} - Displays just the description field of the passive | * {{t link|Passive minimal}} - Displays just the description field of the passive | ||
Line 72: | Line 45: | ||
"type": "number", | "type": "number", | ||
"default": "40" | "default": "40" | ||
}, | |||
"w": { | |||
"label": "w", | |||
"description": "Size of the icon. Defaults to 40 if empty", | |||
"type": "number", | |||
"default": "" | |||
}, | |||
"extra": { | |||
"label": "extra", | |||
"description": "If specified, displays the extra description as well (if it has one)", | |||
"type": "string", | |||
"default": "" | |||
}, | |||
"nolist": { | |||
"label": "nolist", | |||
"description": "If specified, does not wrap the definition in <dl> tags, allowing it to be embedded in other lists", | |||
"type": "string", | |||
"default": "" | |||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
"2" | "2", | ||
"w", | |||
"extra", | |||
"nolist" | |||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
}} | |||
[[Category:Templates]] | |||
[[Category:Passive feature templates]] | |||
[[Category:Cargo templates]] | |||
</noinclude> |
Latest revision as of 05:09, 5 March 2025
Template documentation
Use this to display a passive feature on an equipment page. Examples follow.
This template just runs the Cargo query; see Template:Passive/format for the formatting.
Markup
{{Passive | Heightened Awareness }}Renders as
- Heightened Awareness
- Gain a +3 bonus to Initiative rolls and
Advantage on
Perception checks.
Markup
{{Passive | Arcane Battery }}Renders as
- Alleviate the arcane burden of spellcasting with the power of this staff. The next spell you cast doesn't cost a spell slot.
Markup
{{Passive | Font of Inspiration | w = 20 }}Renders as
- You regain all of your
Bardic Inspiration Charges after a Long or Short Rest.
Markup
{{Passive | Adamantine Backlash | extra = yes }}Renders as
- Adamantine Backlash
- When a melee attack hits you, the attacker is sent for 2 turns.
-
Reeling creatures have a -1 penalty to
Attack rolls for every turn remaining.
See also
- {{Passive/format}} - An internal template actually responsible for formatting this template.
- {{Passive inline}} - Similar template that just displays the icon of the condition. For use in inline text.
- {{Passive feature page}} - Page generating template responsible for adding a passive into the passives Cargo table so that it can be referenced by this template.
- {{Passive minimal}} - Displays just the description field of the passive
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | 1 | The name of the passive feature page name | String | required |
size | 2 | The size of the icon.
| Number | optional |
w | w | Size of the icon. Defaults to 40 if empty
| Number | optional |
extra | extra | If specified, displays the extra description as well (if it has one)
| String | optional |
nolist | nolist | If specified, does not wrap the definition in <dl> tags, allowing it to be embedded in other lists
| String | optional |