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 Armor: Difference between revisions

Updated info box to match bg_tool styling
m (Subtype fix II)
(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: 18rem;" cellpadding="2" cellspacing="1"
|-
|-
! colspan="2" style="background: linear-gradient(#36802d, #77ab59); text-align: center; font-size: 125%; padding: 5px" | {{#if: {{{title}}} | {{{title}}} | {{PAGENAME}}}}
{{BG_Infobox_Header|bgcolor1=#36802d|bgcolor2=#77ab59}}
|-
|-
| colspan="2" style="text-align: center;" | {{#if: {{{image|}}} | [[File:{{{image}}}|150px]] | [[File:Site-community-image.png|150px]]}}
| colspan="2" style="text-align: center;" | {{#if: {{{image|}}} | [[File:{{{image}}}|150px]] | [[File:Site-community-image.png|150px]]}}
|-
|-
| colspan="2" style="background: linear-gradient(#36802d, #77ab59); text-align: center;" | '''Armor Details'''
| colspan="2" style="height: 0.5rem" |
|-
{{BG_Infobox_Subheader|title=Armor Details|bgcolor1=#36802d|bgcolor2=#77ab59}}
|{{#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: {{{uses|}}}| Uses: {{{uses}}}|}}
}}{{#if:
|-
  {{{rarity|}}}
|{{#if: {{{tradable|}}}| {{BG_Item/Div|bgcolor1=#36802d|bgcolor2=#77ab59|align=center|text=Trade Attributes}} | }}
  |<tr><td><b>Rarity</b></td><td>{{Rarity|rarity={{{rarity}}}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{tradable|}}}| Tradable: {{{tradable}}}|}}
  {{{uses|}}}
|-
  |<tr><td><b>Uses</b></td><td>{{{uses}}}</td></tr>|
|{{#if: {{{obtain|}}}| Obtainable: {{{obtain}}}|}}
}}{{#if:
|-
  {{{tradable|}}}
|{{#if: {{{source|}}}| Source: {{{source}}}|}}
  |{{BG_Infobox_Subheader|title=Trade Attributes|bgcolor1=#36802d|bgcolor2=#77ab59}}|
|-
}}{{#if:
|{{#if: {{{drop_chance|}}}| Drop Chance: {{{drop_chance}}}|}}
  {{{tradable|}}}
|-
  |<tr><td><b>Tradable</b></td><td>{{{tradable}}}</td></tr>|
|{{#if: {{{merchant|}}}| {{BG_Item/Div|bgcolor1=#36802d|bgcolor2=#77ab59|align=center|text=Shop}} | }}
}}{{#if:
|-
  {{{obtain|}}}
|{{#if: {{{merchant|}}}| Merchant: [[{{{merchant}}}]]|}}
  |<tr><td><b>Obtainable</b></td><td>{{{obtain}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{upgrades_from|}}}| Upgrades from: [[{{{upgrades_from}}}]]|}}
  {{{source|}}}
|-
  |<tr><td><b>Source</b></td><td>{{{source}}}</td></tr>|
|{{#if: {{{upgrades_to|}}}| Upgrade to: [[{{{upgrades_to}}}]]|}}
}}{{#if:
|-
  {{{drop_chance|}}}
|{{#if: {{{material_cost|}}}| {{BG_Item/Div|bgcolor1=#36802d|bgcolor2=#77ab59|align=center|text=Materials}} | }}
  |<tr><td>Drop Chance</td><td>{{{drop_chance}}}</td></tr>|
|-
}}{{#if:
{{#if: {{{recipe_req|}}}|{{!}} Recipe required: {{{recipe_req}}}|}}
  {{{merchant|}}}
{{#if: {{{recipe_req|}}}| {{!-}} | }}
  |{{BG_Infobox_Subheader|title=Shop|bgcolor1=#36802d|bgcolor2=#77ab59}}|
|{{#if: {{{material_cost|}}}| Material cost: {{{material_cost}}}|}}
}}{{#if:
|-
  {{{merchant|}}}
|{{#if: {{{lore|}}}| {{BG_Item/Div|bgcolor1=#36802d|bgcolor2=#77ab59|align=center|text=Lore}} | }}
  |<tr><td><b>Merchant</b></td><td>[[{{{merchant}}}]]</td></tr>|
|-
}}{{#if:
|{{#if: {{{lore|}}}|<code>'''{{{lore}}}'''</code> |}}
  {{{upgrades_from|}}}
|-
  |<tr><td><b>Upgrades from</b></td><td>[[{{{upgrades_from}}}]]</td></tr>|
|{{#if: {{{tooltip|}}}| {{BG_Item/Div|bgcolor1=#36802d|bgcolor2=#77ab59|align=center|text=Tooltip}} | }}
}}{{#if:
|-
  {{{upgrades_to|}}}
|{{#if: {{{tooltip|}}}| Tooltip: </br><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code> |}}
  |<tr><td><b>Upgrade to</b></td><td>[[{{{upgrades_to}}}]]</td></tr>|
|-
}}{{#if:
|}<includeonly>{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}{{#if: {{{subtype|}}}|[[Category:{{{subtype}}}]]|}}[[Category:Armors]]</includeonly><noinclude>[[Category:Template]]{{doc}}</noinclude>
  {{{material_cost|}}}
  |{{BG_Infobox_Subheader|title=Materials|bgcolor1=#36802d|bgcolor2=#77ab59}}|
}}{{#if:
  {{{recipe_req|}}}
  |<tr><td><b>Recipe required</b></td><td>{{{recipe_req}}}</td></tr>|
}}{{#if:
  {{{material_cost|}}}
  |<tr><td style="vertical-align:top"><b>Material cost</b></td><td style="white-space: nowrap">{{{material_cost}}}</td></tr>|
}}{{#if:
  {{{lore|}}}
  |{{BG_Infobox_Subheader|title=Lore|bgcolor1=#36802d|bgcolor2=#77ab59}}|
}}{{#if:
  {{{lore|}}}
  |<tr><td colspan="2"><code>'''{{{lore}}}'''</code></td></tr>|
}}{{#if:
  {{{tooltip|}}}
  |{{BG_Infobox_Subheader|title=Tooltip|bgcolor1=#36802d|bgcolor2=#77ab59}}|
}}{{#if:
  {{{tooltip|}}}
  |<tr><td colspan="2"><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code></td></tr>|
}}
|}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}{{#if: {{{subtype|}}}|[[Category:{{{subtype}}}]]|}}[[Category:Armors]]</includeonly><noinclude>[[Category:Template]]{{doc}}</noinclude>
30

edits