Ad placeholder

Template:Misc item page: Difference between revisions

Jump to navigation Jump to search
More robust autocategorization
(Unify the lowercase on the category for Very rare items)
(More robust autocategorization)
Line 143: Line 143:
</div>
</div>
}}
}}
{{Main only|{{#switch:{{{type}}}
{{Main namespace only|{{#switch:{{{type}}}
| Misc = [[Category:Misc items]]  
| Misc = [[Category:Misc items]]  
| Alchemy Extracts|Alchemical Extracts = [[Category:Alchemical extracts]]  
| Alchemy Extracts|Alchemical Extracts = [[Category:Alchemical extracts]]  
| Alchemy Ingredients|Alchemical Ingredients = [[Category:Alchemical ingredients]]  
| Alchemy Ingredients|Alchemical Ingredients = [[Category:Alchemical ingredients]]  
| #default = [[Category:{{{type}}}]]
| #default = [[Category:{{{type}}}]]
}}{{#ifeq: {{{rarity|}}} | very rare | [[Category:Very rare items]] | [[Category:{{{rarity|common}}} items]]}}
}}{{#switch: {{lc:{{{rarity|}}}}}
}}{{ItemIcon Insert|
| common = [[Category:Common items]]
| uncommon = [[Category:Uncommon items]]
| rare = [[Category:Rare items]]
| very rare = [[Category:Very rare items]]
| legendary = [[Category:Legendary items]]
| story = [[Category:Story items]]
| #default = [[Category:Common items]]}}
{{ItemIcon Insert|
|icon={{{icon|}}}
|icon={{{icon|}}}
|image={{{controller icon|}}}
|image={{{controller icon|}}}
|uid={{{uid|}}}
|uid={{{uid|}}}
|rarity={{#if:{{{rarity|}}}|{{{rarity}}}|common}}
|rarity={{#if:{{{rarity|}}}|{{{rarity}}}|common}}
}}{{main namespace only|{{#cargo_store:
}}{{#cargo_store:
_table=misc_items
_table=misc_items
|name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
|name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
Line 162: Line 169:
|price = {{{price|0}}}
|price = {{{price|0}}}
|weight_kg = {{{weight kg|}}}
|weight_kg = {{{weight kg|}}}
}} }}</includeonly><noinclude>{{documentation}}{{#cargo_declare:
}}
}}</includeonly><noinclude>{{documentation}}{{#cargo_declare:
_table=misc_items
_table=misc_items
|name = String (mandatory)
|name = String (mandatory)

Navigation menu