Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | |||
<div class="infobox"> | <div class="infobox"> | ||
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div> | <div class="infobox-title" {{#if:{{{Category|}}}| style="background-color:{{#switch: {{{Category}}} | Consumable = #10df80 | Passive = #b3b4b4 | Legendary = #12b4f8 | Omen = #dc1f1f | Magic = #3c9ffb}};"}}>{{{title|{{PAGENAME}}}}}</div> | ||
<div class="infobox-image">[[File:{{{ | {{#ifexist: Media:{{#replace:{{#replace:{{PAGENAME}}|'|'}}| |_}}.png | <div class="infobox-image">[[File:{{#replace:{{#replace:{{PAGENAME}}|'|'}}| |_}}.png]]</div>}} | ||
<table> | <table> | ||
{{#if:{{{Description|}}}|<tr> | {{#if:{{{Description|}}}|<tr> | ||
<th>Description</th> | <th>Description</th> | ||
<td>{{{Description}}}</td> | <td class="description">{{{Description}}}</td> | ||
</tr>}} | </tr>}} | ||
Line 23: | Line 19: | ||
<td>{{Cost |Cost = {{{Cost}}} }}</td> | <td>{{Cost |Cost = {{{Cost}}} }}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{Tag|}}}|<tr> | |||
<th>Tag</th> | |||
<td colspan="2"><div style="float:left; background-color: rgba(35,35,35,1); width:114px;">{{TagCat|{{{Tag}}}}}{{#if:{{{Tag2|}}}|{{TagCat|{{{Tag2}}}}}}}{{#if:{{{Tag3|}}}|{{TagCat|{{{Tag3}}}}}}}{{#if:{{{Tag4|}}}|{{TagCat|{{{Tag4}}}}}}}{{#if:{{{Tag5|}}}|{{TagCat|{{{Tag5}}}}}}}</div></td> | |||
</tr>}} | |||
{{#if:{{{Source|}}}|<tr> | |||
<th>Source</th> | |||
<td>{{{Source}}}</td> | |||
</tr>}} | |||
</table> | |||
</div> | </div> | ||
{{#cargo_store: _table = Items|Image={{#replace:{{#replace:{{PAGENAME}}|'|'}}| |_}}.png|Description={{{Description}}}|Category={{ItemCategory |Category = {{{Category}}}}}|Cost={{Cost |Cost = {{{Cost}}}}}}} | |||
</includeonly><noinclude> | |||
This is the infobox template. | |||
{{#cargo_declare:_table=Items|Image=File|Description=Text|Category=Wikitext|Cost=Wikitext|Source=Wikitext}} | |||
</noinclude> |
Latest revision as of 17:38, 8 April 2021
This is the infobox template. This template defines the table "Items". View table.