Template:Passive inline: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
(Can now specify the width of the icon)
 
Line 1: Line 1:
<includeonly>{{#cargo_query:
<includeonly>{{#cargo_query:
tables=passives
tables=passives
|fields=name, _pageName = link, icon, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{item|}}}|'|\'}}') = item
|fields=name, _pageName = link, icon, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{item|}}}|'|\'}}') = item, CONCAT('{{{w|25}}}') = w
|where=_pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
|where=_pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
|limit=1
|limit=1
Line 27: Line 27:


{{Pass|Defy Villainy|item=Ketheric's Shield}}
{{Pass|Defy Villainy|item=Ketheric's Shield}}
Specify icon width:
{{InfoBlob|<nowiki>{{Pass|High Spellcasting (+1)|item=Armour of Landfall|w=40}}</nowiki>}}
{{Pass|High Spellcasting (+1)|item=Armour of Landfall|w=40}}


When the passive doesn't exist:
When the passive doesn't exist: