Template:Infobox Item: Difference between revisions
m (Added Enchant and DoD (Drops on Death)) |
(Updated info box to match bg_tool styling) |
||
Line 1: | Line 1: | ||
{| class="infobox" style="float: right; background-color: #f3f3f3; margin-left: 10px; border: | <includeonly>{| class="infobox" style="float: right; background-color: #f3f3f3; margin-left: 10px; border: 1px solid #ccc; padding: 4px; width: 18em;" cellpadding="2" cellspacing="1" | ||
|- | |- | ||
{{BG_Infobox_Header|bgcolor1=#4b86b4|bgcolor2=#adcbe3}} | |||
|- | |- | ||
| colspan="2" style="text-align: center;" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Site-community-image.png|150px]]}} | | colspan="2" style="text-align: center;" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Site-community-image.png|150px]]}} | ||
|- | |- | ||
| colspan="2" style=" | | colspan="2" style="height: 0.5rem" | | ||
| | {{BG_Infobox_Subheader|title=Item Details|bgcolor1=#4b86b4|bgcolor2=#adcbe3}} | ||
{{#if: | |||
{{{type|}}} | |||
|<tr><td><b>Type</b></td><td>[[:Category:{{{type}}}|{{{type}}}]]</td></tr>| | |||
}}{{#if: | |||
{{{subtype|}}} | |||
|<tr><td><b>Subtype</b></td><td>[[:Category:{{{subtype}}}|{{{subtype}}}]]</td></tr>| | |||
}}{{#if: | |||
{{{rarity|}}} | |||
|<tr><td><b>Rarity</b></td><td>{{Rarity|rarity={{{rarity}}}}}</td></tr>| | |||
}}{{#if: | |||
{{{tradable|}}} | |||
|{{BG_Infobox_Subheader|title=Trade Attributes|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}| | |||
}}{{#if: | |||
{{{tradable|}}} | |||
|<tr><td><b>Tradable</b></td><td>{{{tradable}}}</td></tr>| | |||
}}{{#if: | |||
{{{obtain|}}} | |||
|<tr><td><b>Obtainable</b></td><td>{{{obtain}}}</td></tr>| | |||
}}{{#if: | |||
{{{source|}}} | |||
|<tr><td><b>Source</b></td><td>{{{source}}}</td></tr>| | |||
|- | }}{{#if: | ||
{{{drop_chance|}}} | |||
|<tr><td>Drop Chance</td><td>{{{drop_chance}}}</td></tr>| | |||
}}{{#if: | |||
{{{merchant|}}} | |||
|{{BG_Infobox_Subheader|title=Shop|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}| | |||
}}{{#if: | |||
{{#if: {{{enchant_1|}}}| {{ | {{{merchant|}}} | ||
|<tr><td><b>Merchant</b></td><td>[[{{{merchant}}}]]</td></tr>| | |||
}}{{#if: | |||
{{{material_cost|}}}{{{recipe_req|}}}{{{currency|}}} | |||
|{{BG_Infobox_Subheader|title=Materials|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}| | |||
}}{{#if: | |||
{{{currency|}}} | |||
|<tr><td><b>Value</b></td><td><span style="color:#fca800;">{{{currency}}}</span> Coins</td></tr>| | |||
}}{{#if: | |||
{{{recipe_req|}}} | |||
|<tr><td><b>Recipe required</b></td><td>[[{{{recipe_req}}} - Recipe]]</td></tr>| | |||
}}{{#if: | |||
{{{material_cost|}}} | |||
|<tr><td><b>Material cost</b></td><td style="white-space: nowrap">{{{material_cost}}}</td></tr>| | |||
}}{{#if: | |||
{{{lore|}}} | |||
|{{BG_Infobox_Subheader|title=Lore|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}| | |||
}}{{#if: | |||
{{{lore|}}} | |||
|<tr><td colspan="2"><code>'''{{{lore}}}'''</code></td></tr>| | |||
}}{{#if: | |||
{{{enchant_1|}}} | |||
|{{BG_Infobox_Subheader|title=Enchants|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}| | |||
}} | |||
{{#if: {{{enchant_1|}}}| {{!}}colspan="2" style="text-align: left" {{!}} | }} | {{#if: {{{enchant_1|}}}| {{!}}colspan="2" style="text-align: left" {{!}} | }} | ||
*{{#if: {{{enchant_1|}}}| [[{{{enchant_1}}}]]|}} | *{{#if: {{{enchant_1|}}}| [[{{{enchant_1}}}]]|}} | ||
*{{#if: {{{enchant_2|}}}| [[{{{enchant_2}}}]]|}} | *{{#if: {{{enchant_2|}}}| [[{{{enchant_2}}}]]|}} | ||
*{{#if: {{{enchant_3|}}}| [[{{{enchant_3}}}]]|}} | *{{#if: {{{enchant_3|}}}| [[{{{enchant_3}}}]]|}}{{#if: | ||
{{#if: {{{ | {{{tooltip|}}}{{{health|}}}{{{hyd|}}}{{{sat|}}}{{{buff_1|}}}{{{buff_2|}}}{{{buff_3|}}}{{{buff_4|}}}{{{buff_5|}}}{{{buff_6|}}}{{{cd|}}}{{{charges|}}}{{{repair|}}} | ||
| | |{{BG_Infobox_Subheader|title=Tooltip|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}| | ||
|{{ | }}{{#if: | ||
{{{health|}}} | |||
{{#if: {{{ | |<tr><td style="vertical-align:top"><b>Restores</b></td><td style="white-space:nowrap"><span style="color:#00a800;">{{{health}}}</span> Health</td></tr> | | ||
{{#if: {{{ | }}{{#if: | ||
{{#if: {{{ | {{{hyd|}}} | ||
{{#if: {{{ | |<tr><td style="vertical-align:top"><b>Restores</b></td><td style="white-space:nowrap"><span style="color:#00a800;">{{{hyd}}}</span> Hydration</td></tr> | | ||
| | }}{{#if: | ||
{{{sat|}}} | |||
|<tr><td style="vertical-align:top"><b>Restores</b></td><td style="white-space:nowrap"><span style="color:#00a800;">{{{sat}}}</span> Food</td></tr> | | |||
}}{{#if: | |||
{{{buff_1|}}}{{{buff_2|}}}{{{buff_3|}}}{{{buff_4|}}}{{{buff_5|}}}{{{buff_6|}}} | |||
| <tr><td style="vertical-align:top;white-space:nowrap"><b>Status effects </b></td><td>{{#if: {{{buff_1|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_1}}}]] ({{{bufftime_1|0}}}s)</p>|}}{{#if: {{{buff_2|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_2}}}]] ({{{bufftime_2|0}}}s)</p>|}}{{#if: {{{buff_3|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_3}}}]] ({{{bufftime_3|0}}}s)</p>|}}{{#if: {{{buff_4|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_4}}}]] ({{{bufftime_4|0}}}s)</p>|}}{{#if: {{{buff_5|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_5}}}]] ({{{bufftime_5|0}}}s)</p>|}}{{#if: {{{buff_6|}}}|<p style="margin:0; white-space:nowrap">[[{{{buff_6}}}]] ({{{bufftime_6|0}}}s)</p>|}}</td></tr> | |||
}}{{#if: | |||
{{{cd|}}} | |||
|<tr><td><b>Cooldown</b></td><td>{{{cd}}}s</td></tr>| | |||
}}{{#if: | |||
{{{charges|}}} | |||
|<tr><td><b>Charges</b></td><td>{{{charges}}}</td></tr>| | |||
}}{{#if: | |||
{{{repair|}}} | |||
|<tr><td><b>Repair</b></td><td><span style="color:#00a800;">{{{repair}}}</span></td></tr>| | |||
}}{{#if: | |||
{{{tooltip|}}} | |||
|<tr><td colspan="2"><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code></td></tr>| | |||
}} | |||
|- | |- | ||
|{{#if: {{{DoD|}}}|{{!}} <span style="color:red;">Drops on Death</span>|}} | |{{#if: {{{DoD|}}}|{{!}} <span style="color:red;">Drops on Death</span>|}} | ||
|- | |- | ||
|} | |}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}{{#if: {{{subtype|}}}|[[Category:{{{subtype}}}]]|}}[[Category:Items]]</includeonly><noinclude>[[Category:Template]]{{doc}}</noinclude> |
Revision as of 16:58, 11 March 2024
This template has no documentation. If you know how to use this template, please add some.
The above documentation is transcluded from Template:Infobox Item/doc. (edit | history)