Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ItemBox: Difference between revisions

Template page
Added an active and component parameter
m Reset bottom box to 50px for uniformity
Line 25: Line 25:
{{#if:{{{componentOf|}}}
{{#if:{{{componentOf|}}}
|<tr style="text-align:center; width:100px; max-width:200px; height:6px; font-size:12px;><th>[[{{{componentOf}}}|<span style="color:#FFF0D7"> Component </span>]]</th></tr>}}
|<tr style="text-align:center; width:100px; max-width:200px; height:6px; font-size:12px;><th>[[{{{componentOf}}}|<span style="color:#FFF0D7"> Component </span>]]</th></tr>}}
|- style="text-align: center; height:30px; font-size: 14px; {{
|- style="text-align: center; height:50px; font-size: 14px; {{
#switch: {{{item_type}}}
#switch: {{{item_type}}}
  | Weapon = background-color: #FFF0D7; color: #151912;
  | Weapon = background-color: #FFF0D7; color: #151912;
Line 37: Line 37:
A port of the initial box in [[Template:Infobox item]] with links, for use on pages that could use it without the whole infobox.
A port of the initial box in [[Template:Infobox item]] with links, for use on pages that could use it without the whole infobox.


{{ItemBox|item_name = Bullet Lifesteal (item)|item_type = Vitality|item_price = 1250|display_name = Bullet Lifesteal}} {{ItemBox|item_name = Alchemical Fire|active = true|item_type = Weapon|item_imagefilepath = Basic Magazine|item_price = 500}} {{ItemBox|item_name = Duration Extender|componentOf = Superior Duration|item_type = Spirit|item_price = 1250}}
{{ItemBox|item_name = Healbane|item_type = Vitality|item_price = 1250|display_name = Healbane}} {{ItemBox|item_name = Alchemical Fire|active = true|item_type = Weapon|item_imagefilepath = Basic Magazine|item_price = 500}} {{ItemBox|item_name = Duration Extender|componentOf = Superior Duration|item_type = Spirit|item_price = 1250}}
<noinclude>
<noinclude>
<templatedata>
<templatedata>