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 |
||
(65 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
{{#cargo_declare:_table=Equipment_Infobox | |||
|Equipment_Type = String | |||
|Rarity = String | |||
|Equip_Load = String | |||
|Effect = Wikitext | |||
|SetEffect = Wikitext | |||
|SetName = Wikitext | |||
|SetItems = Wikitext | |||
|Attunement = String | |||
|Image = File | |||
}}</noinclude><includeonly> | |||
{{#cargo_store:_table=Equipment_Infobox}} | |||
<infobox> | <infobox> | ||
<title source="name"> | <title source="name"> | ||
<default><center><p style="color:{{#switch: {{{Rarity}}} | | <default><center><p style="color:{{#switch: {{{Rarity}}} | ||
| 1 = #7b7c85 | |||
| 2 = #61ceee | |||
| 3 = #e1c969 | |||
| 4 = #b100fc | |||
| 5 = #f64e00 | |||
| 6 = #00af00 | |||
| Grey }}; | |||
height:5px;font-size:22px;margin-bottom:40px; margin-top:20px" >{{PAGENAME}}</p></center></default> | |||
</title> | </title> | ||
<image source="image"><default>{{ | <image source="image"><default>{{PAGENAMEE}}.png</default></image> | ||
<group> | <group> | ||
<data source="Equipment_Type"><label><span style="color:#82838e; font-weight:bold">Equipment Type:</span></label><format>[[{{{Equipment_Type}}}]] [[Category:{{{Equipment_Type}}}]] | |||
</format></data> | |||
<data source="Rarity"><label><span style="color:#82838e; font-weight:bold">Rarity:</span></label><format>{{#ifeq: {{{Rarity}}} | 1 | {{Common}} |}} {{#ifeq: {{{Rarity}}} | 2 | {{Uncommon}} |}}{{#ifeq: {{{Rarity}}} | 3 | {{Rare}} |}}{{#ifeq: {{{Rarity}}} | 4 | {{Epic}} |}}{{#ifeq: {{{Rarity}}} | 5 | {{Legendary}} |}}{{#ifeq: {{{Rarity}}} | 6 | {{Set}} |}}</format></data> | |||
<data source="Effect"><label>Effect</label></data> | <data source="Equip_Load"><label><span style="color:#82838e; font-weight:bold">Equip Load:</span></label><format><span style=font-weight:bold">+{{{Equip_Load}}}</span></format></data> | ||
<data source="Attunement"><label>Attunement</label></data> | <data source="Effect"><label><span style="color:#82838e; font-weight:bold">Effect:</span></label><format><p style="padding-top:10px; padding-bottom:10px">{{{Effect}}}</p></format></data> | ||
<data source="SetEffect"><label><span style="color:#82838e; font-weight:bold">{{{SetName}}}</span></label></data> | |||
<data source="SetItems"><label><span style="color:#82838e; font-weight:bold">Set Items:</span></label><format><p style="color:#00af00; padding-top:10px; padding-bottom:10px; font-weight:bold">{{{SetItems}}}</p></format></data> | |||
<data source="Attunement"><label><span style="color:#82838e; font-weight:bold">Attunement:</span></label></data> | |||
</group> | </group> | ||
</infobox> | <image source="Image" class="gifresize"><default>{{Image}}</default></image> | ||
</infobox>{{#css:.skin-timeless #mw-content-text .pi-data-label {padding-right:10px} }}{{#switch: {{{Rarity}}} | |||
| 1 = {{#css:.portable-infobox {border-color: #7b7c85;} }} | |||
| 2 = {{#css:.portable-infobox {border-color: #61ceee;} }} | |||
| 3 = {{#css:.portable-infobox {border-color: #e1c969;} }} | |||
| 4 = {{#css:.portable-infobox {border-color: #b100fc;} }} | |||
| 5 = {{#css:.portable-infobox {border-color: #f64e00;} }} | |||
| 6 = {{#css:.portable-infobox {border-color: #00af00;} }}}} |
Latest revision as of 21:23, 2 February 2024
This template defines the table "Equipment_Infobox". View table.