Template:BG Item: Difference between revisions

From Blockgame Wiki
m (Shop / Material bg color update)
(prep for new skin)
 
(3 intermediate revisions by 2 users not shown)
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: rgb(255, 255, 240, 0.5); margin-left: 10px; border: 1px solid #333; border-radius: 8px; 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|}}}
  |<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:
  {{{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|}}}| [[{{{enchant_1}}}]]|}}
*{{#if: {{{enchant_2|}}}| [[{{{enchant_2}}}]]|}}
*{{#if: {{{enchant_3|}}}| [[{{{enchant_3}}}]]|}}{{#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|}}}
  |<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:
  {{{hyd|}}}
  |<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&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:
  {{{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: {{{type|}}}| Type: [[:Category:{{{type}}}|{{{type}}}]]|}}
|{{#if: {{{DoD|}}}|{{!}} <span style="color:red;">Drops on Death</span>|}}
|-
|-
|{{#if: {{{subtype|}}}| Subtype: [[:Category:{{{subtype}}}|{{{subtype}}}]]|}}
|}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}{{#if: {{{subtype|}}}|[[Category:{{{subtype}}}]]|}}[[Category:Items]]</includeonly><noinclude>[[Category:Template]]{{doc}}</noinclude>
|-
|{{#if: {{{rarity|}}}| Rarity: {{Rarity|rarity={{{rarity}}}}}|}}
|-
|{{#if: {{{tradable|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Trade Attributes}} | }}
|-
|{{#if: {{{tradable|}}}| Tradable: {{{tradable}}}|}}
|-
|{{#if: {{{obtain|}}}| Obtainable: {{{obtain}}}|}}
|-
|{{#if: {{{source|}}}| Source: {{{source}}}|}}
|-
|{{#if: {{{drop_chance|}}}| Drop Chance: {{{drop_chance}}}|}}
|-
|{{#if: {{{merchant|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Shop}} | }}
|-
|{{#if: {{{merchant|}}}| Merchant: [[{{{merchant}}}]]|}}
|-
|{{#if: {{{material_cost|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Materials}} | }}
|-
|{{#if: {{{material_cost|}}}| Material cost: {{{material_cost}}}|}}
|-
|{{#if: {{{lore|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Lore}} | }}
|-
|{{#if: {{{lore|}}}|<code>'''{{{lore}}}'''</code> |}}
|-
|{{#if: {{{tooltip|}}}| {{BG_Item/Div|bgcolor1=#4b86b4|bgcolor2=#adcbe3|align=center|text=Tooltip}} |  }}
|-
{{#if: {{{recipe_req|}}}|{{!}} Recipe required:<br> [[{{{recipe_req}}} - Recipe]]|}}
{{#if: {{{recipe_req|}}}| {{!-}} | }}
{{#if: {{{currency|}}}|{{!}} Value: <span style="color:#fca800;">{{{currency}}}</span> Coin|}}
{{#if: {{{currency|}}}| {{!-}} | }}
|
*{{#if: {{{buff_1|}}}|: Grants [[{{{buff_1}}}]] for {{{bufftime_1}}}s |}}
*{{#if: {{{buff_2|}}}|: Grants [[{{{buff_2}}}]] for {{{bufftime_2}}}s |}}
*{{#if: {{{buff_3|}}}|: Grants [[{{{buff_3}}}]] for {{{bufftime_3}}}s |}}
*{{#if: {{{buff_4|}}}|: Grants [[{{{buff_4}}}]] for {{{bufftime_4}}}s |}}
*{{#if: {{{buff_5|}}}|: Grants [[{{{buff_5}}}]] for {{{bufftime_5}}}s |}}
*{{#if: {{{buff_6|}}}|: Grants [[{{{buff_6}}}]] for {{{bufftime_6}}}s |}}
|-
|{{#if: {{{health|}}}|: Restores <span style="color:#00a800;">{{{health}}}</span> Health |}}{{#if: {{{repair|}}}|: Repair: <span style="color:#00a800;">{{{repair}}}</span> |}}
*{{#if: {{{sat|}}}|: Restores <span style="color:#00a800;">{{{sat}}}</span> Food |}}
*{{#if: {{{hyd|}}}|: Restores <span style="color:#00a800;">{{{hyd}}}</span> Hydration |}}
*{{#if: {{{cd|}}}|: {{{cd}}} s Cooldown |}}
|-
|{{#if: {{{charges|}}}|: {{{charges}}} Charges |}}
|-
|{{#if: {{{tooltip|}}}| Tooltip: </br><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code> |}}
|-
|}<includeonly>{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}{{#if: {{{subtype|}}}|[[Category:{{{subtype}}}]]|}}[[Category:Items]]</includeonly><noinclude>[[Category:Template]]</noinclude>

Latest revision as of 21:20, 14 April 2024