Template:Ilink: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(bugfix)
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{h|}}}|[[{{#switch:{{{1}}}|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{ucfirst:{{lc:{{{2}}}}}}}#{{{h}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}]]|[[{{#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:{{{1}}}|w=Weapon:|a=Armor:|s=Shield:|i|Item:}}{{{2}}}#{{{h}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}]]|[[{{#switch:{{{1}}}|w=Weapon:|a=Armor:|s=Shield:|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

Revision as of 21:14, 30 August 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)
}}