Template:Weapon Infobox: Difference between revisions
From Tiny Rogues Wiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
<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><format>{{#replaceset:{{{Attack_Type|}}}|/(\w+)/i=[[Category:\1]][[:Category:\1|\1]]}}</format></data> | ||
<data source="Rarity"><label>Rarity</label><format> {{#ifeq: {{{Rarity}}} | C | [[Category: | <data source="Rarity"><label>Rarity</label><format> {{#ifeq: {{{Rarity}}} | C | [[Category:Common]][[:Category:Common|Common]] |}} | ||
|}} | |||
</format></data> | </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> |