Template:Ilink: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (documentation update)
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{#switch:{{{1}}}|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{ucfirst:{{lc:{{{2}}}}}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}]]</includeonly><noinclude>A template to make linking to item easier. The options are: i=item, w=weapon, a=armor, and s=shield. In addition, there are several options that currently default to Item but may be utilized in the future. These are: t=tack, h=housing, f=food or drink, j=jewelry, and c=clothing.
<includeonly>{{#if:{{{h|}}}|[[{{#switch:{{lc:{{{1}}}}}|w|weapon=Weapon:|a|armor=Armor:|s|shield=Shield:|n=|i|Item:}}{{{2}}}#{{{h}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}]]|[[{{#switch:{{lc:{{{1}}}}}|w|weapon=Weapon:|a|armor=Armor:|s|shield=Shield:|n=|i|Item:}}{{{2}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}]]}}</includeonly><noinclude>A template to make linking to item easier. The options are: i=item, w=weapon, a=armor, and s=shield. In addition, there are several options that currently default to Item but may be utilized in the future. These are: t=tack, h=housing, f=food or drink, j=jewelry, and c=clothing.
<pre>
<pre>
{{ilink
{{ilink
Line 5: Line 5:
|article name
|article name
|displayed text (optional)
|displayed text (optional)
|h=<header> (optional)
}}
}}
</pre>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</pre>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 03:46, 10 December 2013

A template to make linking to item easier. The options are: i=item, w=weapon, a=armor, and s=shield. In addition, there are several options that currently default to Item but may be utilized in the future. These are: t=tack, h=housing, f=food or drink, j=jewelry, and c=clothing.

{{ilink
|i/w/a/s
|article name
|displayed text (optional)
|h=<header> (optional)
}}