Difference between revisions of "Template:Itemlink"

From Underrail Wiki
Jump to navigation Jump to search
(template)
 
(allow piped links)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:{{#switch: {{{1}}}
+
[[File:{{{1}}}.png|15x15px|link={{{1}}}|Icon]] {{#if:{{{2|}}}|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}]]}}<noinclude>
| #default = {{{1}}}
 
}}.png|15x15px|link={{{1}}}]] [[{{{1}}}]]<noinclude>
 
  
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 03:45, 16 October 2017

[[File:{{{1}}}.png|15x15px|link={{{1}}}|Icon]] [[{{{1}}}]]

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Itemlink/doc to view this documentation. (edit) (How does this work?)
Description
This template is used for inline item links with small icons.
Syntax
Insert this template using {{Itemlink|<Item Name>}}
Example
{{Itemlink|Stygian Coin}} results in Icon Stygian Coin