Template:Infobox Armor: Difference between revisions

From Blockgame Wiki
(Created page with "{| class="infobox" style="float: right; background-color: #f3f3f3; margin-left: 10px; border: 2px solid #ccc; padding: 10px; width: 18em;" |- ! colspan="2" style="background: linear-gradient(#36802d, #77ab59); text-align: center; font-size: 125%; padding: 5px" | {{#if: {{{title}}} | {{{title}}} | {{PAGENAME}}}} |- | colspan="2" style="text-align: center;" | {{#if: {{{image|}}} | [[File:{{{image}}}|150px]] | 150px}} |- | colspan="2" style...")
 
(Undo revision 6257 by The Gru (talk))
Tag: Undo
 
(8 intermediate revisions by 3 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: 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|}}}| Type: [[:Category:{{{subtype}}}|{{{type}}}]]|}}
  |<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:
  {{{ID|}}}
  |{{BG_Infobox_Subheader|title=MMO ID|bgcolor1=#36802d|bgcolor2=#77ab59}}|
}}{{#if:
  {{{ID|}}}
  |<tr><td colspan="2"><code>'''{{{ID}}}'''</code></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:Infobox templates]]{{doc}}</noinclude>

Latest revision as of 14:39, 16 October 2024

Documentation
This template has no documentation. If you know how to use this template, please add some.