Template:Weapon Infobox: Difference between revisions

From Tiny Rogues Wiki
No edit summary
No edit summary
Line 26: Line 26:
<group>
<group>
<data source="Weapon_Type"><label>Weapon Type:</label><format>{{#replaceset:{{{Weapon_Type|}}}|/(\w+)/i=[[Category:\1]][[:Category:\1|\1]]}}</format></data>
<data source="Weapon_Type"><label>Weapon Type:</label><format>{{#replaceset:{{{Weapon_Type|}}}|/(\w+)/i=[[Category:\1]][[:Category:\1|\1]]}}</format></data>
<data source="Attack_Type"><label>Attack Type</label><format>{{#replaceset:{{{Attack_Type|}}}|/(\w+)/i=\1|Physical={{Physical}}|Slash={{Slash}} |Strike = {{Strike}}|Thrust={{Thrust}}|AoE={{AoE}}|Lightning={{Lightning}}|Holy={{Holy}} [[Category:Peng]]|Fire={{Fire}}|Elemental={{Elemental}}| Cold={{Cold}} | Poison = {{Poison}} | Dark = {{Dark}} | Magical = {{Magical}} | Sound = {{Sound}} |Nature = {{Nature}} }}</format></data>
<data source="Attack_Type"><label>Attack Type</label><format>{{#replaceset:{{{Attack_Type|}}}|/(\w+)/i=\1|Physical={{Physical}}[[Category:Physical]]|Slash={{Slash}} [[Category:Slash]]|Strike = {{Strike}} [[Category:Strike]]|Thrust={{Thrust}} [[Category:Thrust]]|AoE={{AoE}} [[Category:AoE]]|Lightning={{Lightning}} [[Category:Lightning]]‎ |Holy={{Holy}} [[Category:Holy]]|Fire={{Fire}} [[Category:Fire]]‎|Elemental={{Elemental}} [[Category:Elemental]]‎| Cold={{Cold}} [[Category:Cold]]‎| Poison = {{Poison}} [[Category:Poison]]‎| Dark = {{Dark}} [[Category:Dark]]‎| Magical = {{Magical}} [[Category:Magical]]‎| Sound = {{Sound}} [[Category:Sound]]‎|Nature = {{Nature}} [[Category:Nature]]‎}}</format></data>
         <data source="Rarity"><label>Rarity:</label><format> {{#ifeq: {{{Rarity}}} | C | [[Category:Common]][[:Category:Common|Common]] |}}{{#ifeq: {{{Rarity}}} | U | [[Category:Uncommon]][[:Category:Uncommon|Uncommon]] |}}{{#ifeq: {{{Rarity}}} | R | [[Category:Rare]][[:Category:Rare|Rare]] |}}{{#ifeq: {{{Rarity}}} | E | [[Category:Epic]][[:Category:Epic|Epic]] |}}{{#ifeq: {{{Rarity}}} | L | [[Category:Legendary]][[:Category:Legendary|Legendary]] |}}</format></data>
         <data source="Rarity"><label>Rarity:</label><format> {{#ifeq: {{{Rarity}}} | C | [[Category:Common]][[:Category:Common|Common]] |}}{{#ifeq: {{{Rarity}}} | U | [[Category:Uncommon]][[:Category:Uncommon|Uncommon]] |}}{{#ifeq: {{{Rarity}}} | R | [[Category:Rare]][[:Category:Rare|Rare]] |}}{{#ifeq: {{{Rarity}}} | E | [[Category:Epic]][[:Category:Epic|Epic]] |}}{{#ifeq: {{{Rarity}}} | L | [[Category:Legendary]][[:Category:Legendary|Legendary]] |}}</format></data>
         <data source="Hand"><label>Handling:</label><format>{{#ifeq: {{{Hand}}} | 1 | {{#replaceset:{{{Hand|}}}|/(\w+)/i=[[Category:One-Handed]][[:Category:One-Handed|One-Handed]]}} |}}{{#ifeq: {{{Hand}}} | 2 | {{#replaceset:{{{Hand|}}}|/(\w+)/i=[[Category:Two-Handed]][[:Category:Two-Handed|Two-Handed]]}} |}}</format></data>
         <data source="Hand"><label>Handling:</label><format>{{#ifeq: {{{Hand}}} | 1 | {{#replaceset:{{{Hand|}}}|/(\w+)/i=[[Category:One-Handed]][[:Category:One-Handed|One-Handed]]}} |}}{{#ifeq: {{{Hand}}} | 2 | {{#replaceset:{{{Hand|}}}|/(\w+)/i=[[Category:Two-Handed]][[:Category:Two-Handed|Two-Handed]]}} |}}</format></data>

Revision as of 15:42, 16 April 2023

This template defines the table "Weapon_Infobox". View table.