Template:Passive inline: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Inline template is now cargo'd, and can specify an alt name) |
HiddenDragon (talk | contribs) (Can now specify the width of the icon) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#cargo_query: | <includeonly>{{#cargo_query: | ||
tables=passives | tables=passives | ||
|fields=name, _pageName = link, | |fields=name, _pageName = link, icon, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{item|}}}|'|\'}}') = item, CONCAT('{{{w|25}}}') = w | ||
| | |||
}}') = | |||
|where=_pageName = "{{#replace:{{{1}}}|'|\'}}" | |where=_pageName = "{{#replace:{{{1}}}|'|\'}}" | ||
|limit=1 | |limit=1 | ||
Line 16: | Line 7: | ||
|template=Passive inline/Format | |template=Passive inline/Format | ||
|named args=yes | |named args=yes | ||
|default=[[{{{1}}}|{{{2|{{{1}}}}}}]] | |default=[[{{{1}}}|{{{2|{{{1}}}}}}]]{{Main namespace only|[[Category:Pages with unknown passives]]}} | ||
|more results text= | |more results text= | ||
}}</includeonly><noinclude>{{documentation|content={{shortcut|pass}} | }}</includeonly><noinclude>{{documentation|content={{shortcut|pass}} | ||
Line 33: | Line 24: | ||
To specify an item that grants this passive and to use its icon, use: | To specify an item that grants this passive and to use its icon, use: | ||
{{InfoBlob|<nowiki>{{Pass|Defy Villainy|item= | {{InfoBlob|<nowiki>{{Pass|Defy Villainy|item=Ketheric's Shield}}</nowiki>}} | ||
{{Pass|Defy Villainy|item=Ketheric's Shield}} | |||
Specify icon width: | |||
{{InfoBlob|<nowiki>{{Pass|High Spellcasting (+1)|item=Armour of Landfall|w=40}}</nowiki>}} | |||
{{Pass| | {{Pass|High Spellcasting (+1)|item=Armour of Landfall|w=40}} | ||
When the passive doesn't exist: | When the passive doesn't exist: |
Revision as of 19:36, 15 May 2024
Template documentation
Shortcut
- {{pass}}
Similar to Template:Passive, but exclusively supports inline usage.
{{Pass|Darkvision}}
With an alternative name
{{Pass|Cat's Grace (passive feature)|Catty Grace}}
To specify an item that grants this passive and to use its icon, use:
{{Pass|Defy Villainy|item=Ketheric's Shield}}
Specify icon width:
{{Pass|High Spellcasting (+1)|item=Armour of Landfall|w=40}}
When the passive doesn't exist:
{{Pass|Non-existant passive|It's gone}}
See also
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
passive name | 1 | no description | String | required |
item | 2 | specifies the item for which the icon should be pulled from | String | optional |