Template:Weapon page: Difference between revisions

Jump to navigation Jump to search
only insert categories in main namespace
m (Fix category name)
(only insert categories in main namespace)
Line 17: Line 17:
| {{#replace: {{{rarity}}} | <nowiki> </nowiki> | }}
| {{#replace: {{{rarity}}} | <nowiki> </nowiki> | }}
| common
| common
}}"> {{#if:{{{image|}}} | [[File:{{{image}}}|link=|300px|right|alt={{PAGENAME}} image]] | [[Category:Equipment pages without images]]}}{{#if:{{{icon|}}} ||[[Category:Item pages without icons]] }}
}}"> {{#if:{{{image|}}} | [[File:{{{image}}}|link=|300px|right|alt={{PAGENAME}} image]] | {{Main only|[[Category:Equipment pages without images]]}} }}{{#if:{{{icon|}}} ||{{Main only|[[Category:Item pages without icons]]}} }}


{{#if: {{{description|}}}
{{#if: {{{description|}}}
Line 146: Line 146:
</div>
</div>
}}
}}
 
{{Main namespace only|[[Category:Equipment]] [[Category:Weapons]] [[Category:{{{melee or ranged}}} Weapons]] [[Category:{{{category}}} Weapons]] {{#if: {{{type|}}} | [[Category:{{{type}}}]]}}  {{#ifeq: {{{rarity|}}} | very rare | [[Category:Very Rare Items]] | [[Category:{{{rarity|common}}} Items]]}}
{{#switch: {{{this is an example|}}}
| yes =
| #default = [[Category:Equipment]] [[Category:Weapons]] [[Category:{{{melee or ranged}}} Weapons]] [[Category:{{{category}}} Weapons]] {{#if: {{{type|}}} | [[Category:{{{type}}}]]}}  {{#ifeq: {{{rarity|}}} | very rare | [[Category:Very Rare Items]] | [[Category:{{{rarity|common}}} Items]]}}
}}{{ItemIcon Insert
}}{{ItemIcon Insert
|icon={{{icon|}}}
|icon={{{icon|}}}

Navigation menu