Template:Infobox Tool: 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(#857050, #cdbe98); 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 6261 by The Gru (talk))
Tag: Undo
 
(10 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(#857050, #cdbe98); text-align: center; font-size: 125%; padding: 5px" | {{#if: {{{title}}} | {{{title}}} | {{PAGENAME}}}}
{{BG_Infobox_Header|bgcolor1=#857050|bgcolor2=#cdbe98}}
|-
|-
| 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}}}]] | [[File:Site-community-image.png|150px]]}}
|-
|-
| colspan="2" style="background: linear-gradient(#857050, #cdbe98); text-align: center;" | '''Tool Details'''
| colspan="2" style="height: 0.5rem" |
|-
{{BG_Infobox_Subheader|title=Tool Details|bgcolor1=#857050|bgcolor2=#cdbe98}}
|{{#if: {{{type|}}}| Type: [[:Category:{{{type}}}|{{{type}}}]]|}}
{{#if:
|-
  {{{type|}}}
|{{#if: {{{rarity|}}}| Rarity: {{Rarity|rarity={{{rarity}}}}}|}}
  |<tr><td><b>Type</b></td><td>[[:Category:{{{type}}}|{{{type}}}]]</td></tr>|
|-
}}{{#if:
|{{#if: {{{slot_item|}}}| Slot: {{{slot_item}}}|}}
  {{{rarity|}}}
|-
  |<tr><td><b>Rarity</b></td><td>{{Rarity|rarity={{{rarity}}}}}</td></tr>|
|{{#if: {{{uses|}}}| Uses: {{{uses}}}|}}
}}{{#if:
|-
  {{{slot_item|}}}
|{{#if: {{{tradable|}}}| {{BG_Item/Div|bgcolor1=#857050|bgcolor2=#cdbe98|align=center|text=Trade Attributes}} | }}
  |<tr><td><b>Slot</b></td><td>{{{slot_item}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{tradable|}}}| Tradable: {{{tradable}}}|}}
  {{{uses|}}}
|-
  |<tr><td><b>Uses</b></td><td>{{{uses}}}</td></tr>|
|{{#if: {{{obtain|}}}| Obtainable: {{{obtain}}}|}}
}}{{#if:
|-
  {{{merchant|}}}
|{{#if: {{{source|}}}| Source: {{{source}}}|}}
  |{{BG_Infobox_Subheader|title=Shop|bgcolor1=#857050|bgcolor2=#cdbe98}}|
|-
}}{{#if:
|{{#if: {{{drop_chance|}}}| Drop Chance: {{{drop_chance}}}|}}
  {{{merchant|}}}
|-
  |<tr><td><b>Merchant</b></td><td>[[{{{merchant}}}]]</td></tr>|
|{{#if: {{{merchant|}}}| {{BG_Item/Div|bgcolor1=#857050|bgcolor2=#cdbe98|align=center|text=Shop}} | }}
}}{{#if:
|-
  {{{upgrades_from_list|}}}
|{{#if: {{{merchant|}}}| Merchant: [[{{{merchant}}}]]|}}
  |<tr><td><b>Upgrades from</b></td><td>{{{upgrades_from_list}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{upgrades_from_list|}}}| Upgrades from: {{{upgrades_from_list}}}|}}
  {{{upgrades_from|}}}
|-
  |<tr><td><b>Upgrades from</b></td><td>[[{{{upgrades_from}}}]]</td></tr>|
|{{#if: {{{upgrades_from|}}}| Upgrades from: [[{{{upgrades_from}}}]]|}}
}}{{#if:
|-
  {{{upgrades_to|}}}
|{{#if: {{{upgrades_to|}}}| Upgrade to: [[{{{upgrades_to}}}]]|}}
  |<tr><td><b>Upgrade to</b></td><td>[[{{{upgrades_to}}}]]</td></tr>|
|-
}}{{#if:
|{{#if: {{{material_cost|}}}| {{BG_Item/Div|bgcolor1=#857050|bgcolor2=#cdbe98|align=center|text=Materials}} | }}
  {{{tradable|}}}
|-
  |{{BG_Infobox_Subheader|title=Trade Attributes|bgcolor1=#857050|bgcolor2=#cdbe98}}|
{{#if: {{{recipe_req|}}}|{{!}} Recipe required: [[{{{recipe_req}}} - Recipe]]|}}
}}{{#if:
{{#if: {{{recipe_req|}}}| {{!-}} | }}
  {{{tradable|}}}
|{{#if: {{{material_cost|}}}| Material cost: {{{material_cost}}}|}}
  |<tr><td><b>Tradable</b></td><td>{{{tradable}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{lore|}}}| {{BG_Item/Div|bgcolor1=#857050|bgcolor2=#cdbe98|align=center|text=Lore}} | }}
  {{{obtain|}}}
|-
  |<tr><td><b>Obtainable</b></td><td>{{{obtain}}}</td></tr>|
|{{#if: {{{lore|}}}|<code>'''{{{lore}}}'''</code> |}}
}}{{#if:
|-
  {{{source|}}}
|{{#if: {{{tooltip|}}}| {{BG_Item/Div|bgcolor1=#857050|bgcolor2=#cdbe98|align=center|text=Tooltip}} | }}
  |<tr><td><b>Source</b></td><td>{{{source}}}</td></tr>|
|-
}}{{#if:
|{{#if: {{{tooltip|}}}| Tooltip: </br><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code> |}}
  {{{drop_chance|}}}
|-
  |<tr><td>Drop Chance</td><td>{{{drop_chance}}}</td></tr>|
|}<includeonly>{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}[[Category:Tools]]</includeonly><noinclude>[[Category:Template]]</noinclude>
}}{{#if:
  {{{material_cost|}}}
  |{{BG_Infobox_Subheader|title=Materials|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#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:
  {{{ID|}}}
  |{{BG_Infobox_Subheader|title=MMO ID|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
  {{{ID|}}}
  |<tr><td colspan="2"><code>'''{{{ID}}}'''</code></td></tr>|
}}{{#if:
  {{{lore|}}}
  |{{BG_Infobox_Subheader|title=Lore|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
  {{{lore|}}}
  |<tr><td colspan="2"><code>'''{{{lore}}}'''</code></td></tr>|
}}{{#if:
  {{{tooltip|}}}
  |{{BG_Infobox_Subheader|title=Tooltip|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
  {{{tooltip|}}}
  |<tr><td colspan="2"><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code></td></tr>|
}}
|}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}[[Category:Tools]]</includeonly><noinclude>[[Category:Infobox templates]]{{doc}}</noinclude>

Latest revision as of 14:40, 16 October 2024

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