Template:Equipment Infobox: Difference between revisions

From Tiny Rogues Wiki
No edit summary
No edit summary
Line 2: Line 2:
{{#cargo_declare:_table=Equipment_Infobox
{{#cargo_declare:_table=Equipment_Infobox
  |Equipment_Type = String
  |Equipment_Type = String
  |Rarity = String
  |Rarity = Integer
  |Effect = Wikitext
  |Effect = Wikitext
  |Attunement = Integer
  |Attunement = Integer
Line 11: Line 11:
<infobox>
<infobox>
   <title source="name">
   <title source="name">
     <default><center><p style="color:{{#switch: {{{Rarity}}} | C = #7b7c85 | U = #61ceee | = #e1c969 | E = #b100fc | L = #f64e00 |  Grey }};height:5pxfont-size: 0.8em;" >{{PAGENAME}}</p></center></default>
     <default><center><p style="color:{{#switch: {{{Rarity}}} | 1 = #7b7c85 | 2 = #61ceee | 3 = #e1c969 | 4 = #b100fc | 5 = #f64e00 |  Grey }};height:5pxfont-size: 0.8em;" >{{PAGENAME}}</p></center></default>
   </title>
   </title>
  <image source="image"><default>{{PAGENAME}}.png</default></image>
  <image source="image"><default>{{PAGENAME}}.png</default></image>
Line 17: Line 17:
<header><center>Stats</center></header>
<header><center>Stats</center></header>
<data source="Equipment_Type"><label>Equipment Type</label><format>[[{{{Equipment_Type}}}]] [[Category:{{{Equipment_Type}}}]]</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}}} | 1 | [[Category:Common]][[:Category:Common|Common]] |}}{{#ifeq: {{{Rarity}}} | 2 | [[Category:Uncommon]][[:Category:Uncommon|Uncommon]] |}}{{#ifeq: {{{Rarity}}} | 3 | [[Category:Rare]][[:Category:Rare|Rare]] |}}{{#ifeq: {{{Rarity}}} | 4 | [[Category:Epic]][[:Category:Epic|Epic]] |}}{{#ifeq: {{{Rarity}}} | 5 | [[Category:Legendary]][[:Category:Legendary|Legendary]] |}}</format></data>
<data source="Effect"><label>Effect</label></data>
<data source="Effect"><label>Effect</label></data>
<data source="Attunement"><label>Attunement</label></data>
<data source="Attunement"><label>Attunement</label></data>
</group>
</group>
</infobox>
</infobox>

Revision as of 16:51, 26 April 2023

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