Ad placeholder

Template:Passive inline: Difference between revisions

Jump to navigation Jump to search
Can now specify the width of the icon
(Cleanup.)
(Can now specify the width of the icon)
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{item|}}} |
<includeonly>{{#cargo_query:
{{#cargo_query:
tables=passives
tables=item_icon
|fields=name, _pageName = link, icon, CONCAT('{{#replace:{{{2|}}}|'|\'}}') = altname, CONCAT('{{#replace:{{{item|}}}|'|\'}}') = item, CONCAT('{{{w|25}}}') = w
|fields=TRIM(icon),CONCAT('25'),CONCAT(''),CONCAT('No'),CONCAT('{{#replace:{{{item}}}|'|\'}}')
|where=_pageName = "{{#replace:{{{1}}}|&#39;|\'}}"
|where=item_icon._pageName='{{#replace:{{{item}}}|'|\'}}'
|limit=1
|limit=1
|order by=item_icon._pageName
|format=template
|default={{ItemIcon Internal|Generic Feature Icon.webp|25|||{{{item}}}}}
|template=Passive inline/Format
|named args=yes
|default=[[{{{1}}}|{{{2|{{{1}}}}}}]]{{Main namespace only|[[Category:Pages with unknown passives]]}}
|more results text=
|more results text=
|format=template
}}</includeonly><noinclude>{{documentation|content={{shortcut|pass}}
|template=ItemIcon Internal
}}&nbsp;[[{{{1}}}|{{{2|{{{1}}}}}}]]
|
{{IconLink
| {{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|:|}}|/|<nowiki/> <nowiki/>}}|(|<nowiki/> <nowiki/>}}|)|<nowiki/> <nowiki/>}} Icon.webp
| {{{1}}}
| {{{2| {{{1}}} }}}
| size = {{{w|24}}}
| w = {{{w|}}}
| h = {{{h|}}}
| gap = {{{gap|}}}
| block = true
}}}}</includeonly><noinclude>{{documentation|content={{shortcut|pass}}
Similar to [[Template:Passive]], but exclusively supports inline usage.
Similar to [[Template:Passive]], but exclusively supports inline usage.


{{InfoBlob|<nowiki>{{Pass|Opportunity Attack}}</nowiki>}}
{{InfoBlob|<nowiki>{{Pass|Darkvision}}</nowiki>}}
 
{{Pass|Darkvision}}
 
With an alternative name


{{Pass|Opportunity Attack}}
{{InfoBlob|<nowiki>{{Pass|Cat's Grace (passive feature)|Catty Grace}}</nowiki>}}
 
{{Pass|Cat's Grace (passive feature)|Catty Grace}}


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=Jhannyl's Gloves}}</nowiki>}}
{{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|High Spellcasting (+1)|item=Armour of Landfall|w=40}}
 
When the passive doesn't exist:
 
{{InfoBlob|<nowiki>{{Pass|Non-existant passive|It's gone}}</nowiki>}}


{{Pass|Defy Villainy|item=Jhannyl's Gloves}}
{{Pass|Non-existant passive|It's gone}}


== See also ==
== See also ==

Navigation menu