Template:Passive: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
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, image, description, CONCAT({{{2|40}}})=size
| 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/Format
| 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/Format]] for the formatting.
This template just runs the Cargo query; see [[Template:Passive/format]] for the formatting.


----
----


Usage:
{{Template demo
 
| style = list
<pre>
|<nowiki>{{Passive | Heightened Awareness }}</nowiki>
{{Passive | Heightened Awareness }}
|<nowiki>{{Passive | Arcane Battery }}</nowiki>
</pre>
|<nowiki>{{Passive | Font of Inspiration | w = 20 }}</nowiki>
 
|<nowiki>{{Passive | Adamantine Backlash | extra = yes }}</nowiki>
Result:
|<nowiki>{{Passive | Unknown Passive }}</nowiki>
 
}}
{{Passive | Heightened Awareness }}
 
----
 
Usage:
 
<pre>
{{Passive | Arcane Battery }}
</pre>
 
Result:
 
{{Passive | Arcane Battery }}
 
----
 
Usage:
 
<pre>
{{Passive | Unknown Passive }}
</pre>
 
Result:
 
{{Passive | Unknown Passive }}
 
[[Category:Templates]]


== See also ==
== See also ==
* {{t link|Passive/Format}} - An internal template actually responsible for formatting this template.
* {{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 condition into the condition 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.
* {{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 Icon.png Advantage on Perception checks.
Markup
{{Passive | Arcane Battery }}
Renders as
Arcane Battery Arcane Battery
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
Font of Inspiration Font of Inspiration
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 Reeling Reeling for 2 turns.

Reeling creatures have a -1 penalty to Attack rolls for every turn remaining.

Markup
{{Passive | Unknown Passive }}
Renders as
Unknown Passive

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.

Template parameters

ParameterDescriptionTypeStatus
name1

The name of the passive feature page name

Stringrequired
size2

The size of the icon.

Default
40
Numberoptional
ww

Size of the icon. Defaults to 40 if empty

Default
Numberoptional
extraextra

If specified, displays the extra description as well (if it has one)

Default
Stringoptional
nolistnolist

If specified, does not wrap the definition in <dl> tags, allowing it to be embedded in other lists

Default
Stringoptional