Template:ItemIcon: Difference between revisions

added support for language subpage
added automatic subpage detection using if_lang template
Line 3: Line 3:
|Spirit Lifesteal = Spirit Lifesteal (item)
|Spirit Lifesteal = Spirit Lifesteal (item)
|{{{1|}}}
|{{{1|}}}
}}{{#if:{{{lang|}}}|/{{{lang}}}}}|{{{size|20px}}}]]</span> [[{{#switch:{{{1|}}}
}}{{If_lang}}|{{{size|20px}}}]]</span> [[{{#switch:{{{1|}}}
|Bullet Lifesteal = Bullet Lifesteal (item)
|Bullet Lifesteal = Bullet Lifesteal (item)
|Spirit Lifesteal = Spirit Lifesteal (item)
|Spirit Lifesteal = Spirit Lifesteal (item)
|{{{1|}}}
|{{{1|}}}
}}{{#if:{{{lang|}}}|/{{{lang}}}}}|{{{2|{{{1|}}}}}}]]</span></includeonly><noinclude>{{Documentation}}</noinclude>
}}{{If_lang}}|{{{2|{{{1|}}}}}}]]</span></includeonly><noinclude>{{Documentation}}</noinclude>