Template:Infobox Weapon: Difference between revisions

From Blockgame Wiki
mNo edit summary
(Undo revision 6259 by The Gru (talk))
Tag: Undo
 
(7 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: 18em;" cellpadding="2" cellspacing="1"
|-
|-
! colspan="2" style="background: linear-gradient(#d62929, #f6c5c5); text-align: center; font-size: 125%; padding: 5px" | {{#if: {{{title}}} | {{{title}}} | {{PAGENAME}}}}
{{BG_Infobox_Header|bgcolor1=#d62929|bgcolor2=#f59090}}
|-
|-
| 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(#d62929, #f6c5c5); text-align: center;" | '''Weapon Details'''
| colspan="2" style="height: 0.5rem" |
|-
{{BG_Infobox_Subheader|title=Weapon Details|bgcolor1=#d62929|bgcolor2=#f59090}}
|{{#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=#d62929|bgcolor2=#f6c5c5|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:
|-
  {{{tradable|}}}
|{{#if: {{{source|}}}| Source: {{{source}}}|}}
  |{{BG_Infobox_Subheader|title=Trade Attributes|bgcolor1=#d62929|bgcolor2=#f59090}}|
|-
}}{{#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=#d62929|bgcolor2=#f6c5c5|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: {{{upgrades_to_multiple|}}}| Upgrade to: {{{upgrades_to_multiple}}}|}}
}}{{#if:
|-
  {{{drop_chance|}}}
|{{#if: {{{material_cost|}}}| {{BG_Item/Div|bgcolor1=#d62929|bgcolor2=#f6c5c5|align=center|text=Materials}} | }}
  |<tr><td>Drop Chance</td><td>{{{drop_chance}}}</td></tr>|
|-
}}{{#if:
{{#if: {{{recipe_req|}}}|{{!}} Recipe required: <br> [[{{{recipe_req}}} - Recipe]]|}}
  {{{merchant|}}}
{{#if: {{{recipe_req|}}}| {{!-}} | }}
  |{{BG_Infobox_Subheader|title=Shop|bgcolor1=#d62929|bgcolor2=#f59090}}|
|{{#if: {{{material_cost|}}}| Material cost: {{{material_cost}}}|}}
}}{{#if:
|-
  {{{merchant|}}}
|{{#if: {{{lore|}}}| {{BG_Item/Div|bgcolor1=#d62929|bgcolor2=#f6c5c5|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=#d62929|bgcolor2=#f6c5c5|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}}}]]|}}[[Category:Weapons]]</includeonly><noinclude>[[Category:Template]]</noinclude>
  {{{upgrades_to_multiple|}}}
  |<tr><td><b>Upgrade to</b></td><td>[[{{{upgrades_to_multiple}}}]]</td></tr>|
}}{{#if:
  {{{material_cost|}}}
  |{{BG_Infobox_Subheader|title=Materials|bgcolor1=#d62929|bgcolor2=#f59090}}|
}}{{#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=#d62929|bgcolor2=#f59090}}|
}}{{#if:
  {{{ID|}}}
  |<tr><td colspan="2"><code>'''{{{ID}}}'''</code></td></tr>|
}}{{#if:
  {{{lore|}}}
  |{{BG_Infobox_Subheader|title=Lore|bgcolor1=#d62929|bgcolor2=#f59090}}|
}}{{#if:
  {{{lore|}}}
  |<tr><td colspan="2"><code>'''{{{lore}}}'''</code></td></tr>|
}}{{#if:
  {{{tooltip|}}}
  |{{BG_Infobox_Subheader|title=Tooltip|bgcolor1=#d62929|bgcolor2=#f59090}}|
}}{{#if:
  {{{tooltip|}}}
  |<tr><td colspan="2"><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code></td></tr>|
}}
|}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}[[Category:Weapons]]</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.