Template:Weapon page: Difference between revisions

Jump to navigation Jump to search
(Use list style "none" for weapon actions.)
(More robust auto categorization)
 
Line 212: Line 212:
</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]]}}
{{Main namespace only|[[Category:Equipment]]
{{ItemIcon Insert
[[Category:Weapons]]
{{#switch: {{lc:{{{melee or ranged|}}}}}
| melee = [[Category:Melee weapons]]
| ranged = [[Category:Ranged weapons]]
| #default = }}
{{#switch: {{lc:{{{category|}}}}}
| martial = [[Category:Martial weapons]]
| simple = [[Category:Simple weapons]]
| #default = }}
{{#if: {{{type|}}} | [[Category:{{{type}}}]]}}
{{#switch: {{lc:{{{rarity|}}}}}
| 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|}}}