Template:Equipment Infobox: Difference between revisions

From Tiny Rogues Wiki
(Created page with "<infobox> <title source="name"> <default><center><p style="color:{{#switch: {{{Rarity}}} | C = #7b7c85 | U = #61ceee | R = #e1c969 | E = #b100fc | L = #f64e00 | Grey }};height:5px" >{{PAGENAME}}</p></center></default> </title> <image source="image"><default>{{PAGENAME}}.png</default></image> <group> <header><center>Stats</center></header> <data source="Equipment_Type"><label>Equipment Type</label><format>{{#replaceset:{{{Equipment Type|}}}|/(\w+)/i=C...")
 
No edit summary
Line 6: Line 6:
<group>
<group>
<header><center>Stats</center></header>
<header><center>Stats</center></header>
<data source="Equipment_Type"><label>Equipment Type</label><format>{{#replaceset:{{{Equipment Type|}}}|/(\w+)/i=[[Category:\1]][[:Category:\1|\1]]}}</format></data>
<data source="Equipment_Type"><label>Equipment Type</label><format>[[{{{Equipment Type}}}]] [[Category:{{{Equipment Type}}}]]</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="Effect"><label>Effect</label></data>
<data source="Effect"><label>Effect</label></data>

Revision as of 06:12, 3 January 2023