Template:Sloot: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
(switching handling)
Line 1: Line 1:
<includeonly>[[source for::{{#switch:{{lc:{{{1}}}}}| n= | w=Weapon: | a=Armor: | s=Shield: | i | Item:}}{{ucfirst:{{lc:{{{2}}}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}|{{!}}{{{2}}}}}]]}}</includeonly><noinclude>
<includeonly>{{#switch:{{{4}}}
|n={{#if: {{{2|}}}
|{{#if:{{{3|}}}
|{{#switch: {{{1}}}
|a=[[Armor:{{lc:{{{2}}}}}{{!}}{{{3}}}]]
|s=[[Shield:{{lc:{{{2}}}}}{{!}}{{{3}}}]]
|w=[[Weapon:{{lc:{{{2}}}}}{{!}}{{{3}}}]]
|i
|[[Item:{{{2}}}{{!}}{{{3}}}]]
}}
|{{#switch: {{{1}}}
|a=[[Armor:{{lc:{{{2}}}}}{{!}}{{{2}}}]]
|s=[[Shield:{{lc:{{{2}}}}}{{!}}{{{2}}}]]
|w=[[Weapon:{{lc:{{{2}}}}}{{!}}{{{2}}}]]
|i
|[[Item:{{{2}}}{{!}}{{{2}}}]]
}}
|Error!
}}
}}
|{{#if: {{{2|}}}
|{{#if:{{{3|}}}
|{{#switch: {{{1}}}
|a=[[source for::Armor:{{lc:{{{2}}}}}{{!}}{{{3}}}]]
|s=[[source for::Shield:{{lc:{{{2}}}}}{{!}}{{{3}}}]]
|w=[[source for::Weapon:{{lc:{{{2}}}}}{{!}}{{{3}}}]]
|i
|[[shop sells::Item:{{lc:{{{2}}}}}{{!}}{{{3}}}]]
}}
|{{#switch: {{{1}}}
|a=[[source for::Armor:{{lc:{{{2}}}}}{{!}}{{{2}}}]]
|s=[[source for::Shield:{{lc:{{{2}}}}}{{!}}{{{2}}}]]
|w=[[source for::Weapon:{{lc:{{{2}}}}}{{!}}{{{2}}}]]
|i
|[[source for::Item:{{lc:{{{2}}}}}{{!}}{{{2}}}]]
}}
|Error!
}}
}}
}}</includeonly><noinclude>
==Usage Documentation==
==Usage Documentation==
This template is used to standardize the listing of sources for items.
This template is used to standardize the listing of sources for items.

Revision as of 05:26, 7 March 2013

Usage Documentation

This template is used to standardize the listing of sources for items.