Template:Weapon Infobox: Difference between revisions

From Tiny Rogues Wiki
No edit summary
No edit summary
Line 8: Line 8:
<header><center>Stats</center></header>
<header><center>Stats</center></header>
<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=[[Category:\1]][[:Category:\1|\1]]}}</format></data>
<data source="Attack_Type"><label>Attack Type</label></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 12:52, 4 April 2023