Jump to content

📢 Important Notice 📢

Dear users, Starting 02 December 2024, all users will be required to have a confirmed email address to edit pages on this site. This change is being implemented to enhance security and ensure better communication within the community.

To prepare for this change:

1. Go to your Preferences.

2. Add and confirm your email address if you haven't already.


Thank you for your understanding and cooperation!

If you have any questions or issues, please create a Wiki Ticket
or contact the Wiki administrators, Djinnet or Nelas.

Template:Infobox Item: Difference between revisions

Updated info box to match bg_tool styling
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: 2px solid #ccc; padding: 10px; width: 18em;"
<includeonly>{| class="infobox" style="float: right; background-color: #f3f3f3; margin-left: 10px; border: 1px solid #ccc; padding: 4px; width: 18em;" cellpadding="2" cellspacing="1"
|-
|-
! colspan="2" style="background: linear-gradient(#4b86b4, #adcbe3); text-align: center; font-size: 125%; padding: 5px" | {{#if: {{{title}}} | {{{title}}} | {{PAGENAME}}}}
{{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="background: linear-gradient(#4b86b4, #adcbe3); text-align: center;" | '''Item Details'''
| colspan="2" style="height: 0.5rem" |
|-
{{BG_Infobox_Subheader|title=Item Details|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}
|{{#if: {{{type|}}}| Type: [[:Category:{{{type}}}|{{{type}}}]]|}}
{{#if:
|-
  {{{type|}}}
|{{#if: {{{subtype|}}}| Subtype: [[:Category:{{{subtype}}}|{{{subtype}}}]]|}}
  |<tr><td><b>Type</b></td><td>[[:Category:{{{type}}}|{{{type}}}]]</td></tr>|
|-
}}{{#if:
|{{#if: {{{rarity|}}}| Rarity: {{Rarity|rarity={{{rarity}}}}}|}}
  {{{subtype|}}}
|-
  |<tr><td><b>Subtype</b></td><td>[[:Category:{{{subtype}}}|{{{subtype}}}]]</td></tr>|
|{{#if: {{{tradable|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Trade Attributes}} | }}
}}{{#if:
|-
  {{{rarity|}}}
|{{#if: {{{tradable|}}}| Tradable: {{{tradable}}}|}}
  |<tr><td><b>Rarity</b></td><td>{{Rarity|rarity={{{rarity}}}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{obtain|}}}| Obtainable: {{{obtain}}}|}}
  {{{tradable|}}}
|-
  |{{BG_Infobox_Subheader|title=Trade Attributes|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}|
|{{#if: {{{source|}}}| Source: {{{source}}}|}}
}}{{#if:
|-
  {{{tradable|}}}
|{{#if: {{{drop_chance|}}}| Drop Chance: {{{drop_chance}}}|}}
  |<tr><td><b>Tradable</b></td><td>{{{tradable}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{merchant|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Shop}} | }}
  {{{obtain|}}}
|-
  |<tr><td><b>Obtainable</b></td><td>{{{obtain}}}</td></tr>|
|{{#if: {{{merchant|}}}| Merchant: [[{{{merchant}}}]]|}}
}}{{#if:
|-
  {{{source|}}}
|{{#if: {{{material_cost|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Materials}} | }}
  |<tr><td><b>Source</b></td><td>{{{source}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{material_cost|}}}| Material cost: {{{material_cost}}}|}}
  {{{drop_chance|}}}
|-
  |<tr><td>Drop Chance</td><td>{{{drop_chance}}}</td></tr>|
|{{#if: {{{lore|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Lore}} | }}
}}{{#if:
|-
  {{{merchant|}}}
|{{#if: {{{lore|}}}|<code>'''{{{lore}}}'''</code> |}}
  |{{BG_Infobox_Subheader|title=Shop|bgcolor1=#4b86b4|bgcolor2=#adcbe3}}|
|-
}}{{#if:
{{#if: {{{enchant_1|}}}| {{ItemInfoTable/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Enchants}} | }}
  {{{merchant|}}}
{{#if: {{{enchant_1|}}}| {{!-}} | }}
  |<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: {{{enchant_1|}}}| {{!-}} | }}
  {{{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: {{{tooltip|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Tooltip}} | }}
}}{{#if:
|-
  {{{health|}}}
{{#if: {{{recipe_req|}}}|{{!}} Recipe required:<br> [[{{{recipe_req}}} - Recipe]]|}}
  |<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: {{{recipe_req|}}}| {{!-}} | }}
}}{{#if:
{{#if: {{{currency|}}}|{{!}} Value: <span style="color:#fca800;">{{{currency}}}</span> Coin|}}
  {{{hyd|}}}
{{#if: {{{currency|}}}| {{!-}} | }}
  |<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:
*{{#if: {{{buff_1|}}}|: Grants [[{{{buff_1}}}]] for {{{bufftime_1}}}s |}}
  {{{sat|}}}
*{{#if: {{{buff_2|}}}|: Grants [[{{{buff_2}}}]] for {{{bufftime_2}}}s |}}
  |<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_3|}}}|: Grants [[{{{buff_3}}}]] for {{{bufftime_3}}}s |}}
}}{{#if:
*{{#if: {{{buff_4|}}}|: Grants [[{{{buff_4}}}]] for {{{bufftime_4}}}s |}}
  {{{buff_1|}}}{{{buff_2|}}}{{{buff_3|}}}{{{buff_4|}}}{{{buff_5|}}}{{{buff_6|}}}
*{{#if: {{{buff_5|}}}|: Grants [[{{{buff_5}}}]] for {{{bufftime_5}}}s |}}
  | <tr><td style="vertical-align:top;white-space:nowrap"><b>Status effects&nbsp;</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: {{{buff_6|}}}|: Grants [[{{{buff_6}}}]] for {{{bufftime_6}}}s |}}
}}{{#if:
|-
  {{{cd|}}}
|{{#if: {{{health|}}}|: Restores <span style="color:#00a800;">{{{health}}}</span> Health |}}{{#if: {{{repair|}}}|: Repair: <span style="color:#00a800;">{{{repair}}}</span> |}}
  |<tr><td><b>Cooldown</b></td><td>{{{cd}}}s</td></tr>|
*{{#if: {{{sat|}}}|: Restores <span style="color:#00a800;">{{{sat}}}</span> Food |}}
}}{{#if:
*{{#if: {{{hyd|}}}|: Restores <span style="color:#00a800;">{{{hyd}}}</span> Hydration |}}
  {{{charges|}}}
*{{#if: {{{cd|}}}|: {{{cd}}} s Cooldown |}}
  |<tr><td><b>Charges</b></td><td>{{{charges}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{charges|}}}|: {{{charges}}} Charges |}}
  {{{repair|}}}
|-
  |<tr><td><b>Repair</b></td><td><span style="color:#00a800;">{{{repair}}}</span></td></tr>|
|{{#if: {{{tooltip|}}}|<code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code> |}}
}}{{#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>|}}
|-
|-
|}<includeonly>{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}{{#if: {{{subtype|}}}|[[Category:{{{subtype}}}]]|}}[[Category:Items]]</includeonly><noinclude>[[Category:Template]]</noinclude>
|}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}{{#if: {{{subtype|}}}|[[Category:{{{subtype}}}]]|}}[[Category:Items]]</includeonly><noinclude>[[Category:Template]]{{doc}}</noinclude>
30

edits