Template:Passive: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by the same user 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, CONCAT({{{2|40}}})=size | ||
| 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. | ||
---- | ---- | ||
Line 21: | Line 21: | ||
|<nowiki>{{Passive | Unknown Passive }}</nowiki> | |<nowiki>{{Passive | Unknown Passive }}</nowiki> | ||
}} | }} | ||
== 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 passive into the passives Cargo table so that it can be referenced by this template. | * {{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. | ||
Line 52: | Line 50: | ||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata> | ||
}} | |||
[[Category:Templates]] | |||
[[Category:Passive feature templates]] | |||
[[Category:Cargo templates]] | |||
</noinclude> |
Latest revision as of 22:26, 10 February 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.
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 |