Information: 0.2.5 is officially out! Please bear with us while we are working on updating the wiki. This patch is massive so a lot of work will be needed. Enjoy the game in the meantime!

Template:Weapon Infobox: Difference between revisions

From Tiny Rogues Wiki
No edit summary
Tag: Manual revert
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}}|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}}|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="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:33, 16 April 2023

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