Difference between revisions of "Template:Infobox Weapon/categorizeweapon"

From Sunrust Wiki
Jump to navigation Jump to search
(Created page with "<!-- {{{1}}} = Tags check (elemental, wptype and banished/supply crate exclusive) - optional, but it would fills any field. {{{wptype}}} = Weapon Type (Melee/Guns/) {{{tier}}}...")
 
m ("Tier X" to "Tier X Weapons")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
<includeonly>{{#if:{{In_str
{{{1}}} = Tags check (elemental, wptype and banished/supply crate exclusive) - optional, but it would fills any field.
{{{wptype}}} = Weapon Type (Melee/Guns/)
{{{tier}}} = Weapon Tier - can only have one; Tier 7 = Unpurchasable weapons.
{{{shop}}} = (worth,banished and supply crate exclusive) - can only have one.
 
But tags still wip, and only elemental categories works.
--><includeonly><!--
Defines categories for weapons with elemental innate.
-->{{#if:{{In_str
   |source={{{1|}}}
   |source={{{1|}}}
   |target= fire
   |target= fire
Line 58: Line 49:
   |nomatch=
   |nomatch=
   |plain=true}}|[[Category:Weapons with Bounty Innate]]|}}<!--
   |plain=true}}|[[Category:Weapons with Bounty Innate]]|}}<!--
Defines categories for type of weapon/tool:
  Repairing Tools
  Guns
  Melee
  Healing Tools (includes guns with medical feature)
  Consumables (grenades, etc)
-->{{#switch: {{{wptype|}}}
-->{{#switch: {{{wptype|}}}
   | gun|guns = [[Category:Guns]]
   | gun|guns = [[Category:Guns]]
Line 72: Line 56:
   | medmelee = [[Category:Weapons with Healing]][[Category:Melee]]
   | medmelee = [[Category:Weapons with Healing]][[Category:Melee]]
   | consumable|consumables = [[Category:Consumables]]
   | consumable|consumables = [[Category:Consumables]]
  | #default =
}}<!--
}}
-->{{#switch: {{{shop|}}}
<!--
  Defines if is banished exclusive or supply crate
------>{{#switch: {{{shop|}}}
<!------>| supplycrate|crate = [[Category:Supply Crate exclusive weapons]]
<!------>| supplycrate|crate = [[Category:Supply Crate exclusive weapons]]
<!------>| banished = [[Category:Banished Sigil exclusive weapons]]
<!------>| banished = [[Category:Banished Sigil exclusive weapons]]
<!------>| #default = [[Category:Pointshop Weapons]]
<!------>| #default = [[Category:Pointshop Weapons]]
<!---->}}
<!---->}}{{#switch: {{{tier|1}}}
</includeonly>
<!------>| 1 = [[Category:Tier 1 Weapons]]
<!------>| 2 = [[Category:Tier 2 Weapons]]
<!------>| 3 = [[Category:Tier 3 Weapons]]
<!------>| 4 = [[Category:Tier 4 Weapons]]
<!------>| 5 = [[Category:Tier 5 Weapons]]
<!------>| 6 = [[Category:Tier 6 Weapons]]
<!---->}}</includeonly>

Latest revision as of 20:56, 22 December 2021