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

Updated info box to match bg_tool styling
m (weird behaviour with image size - removed till fix)
(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: 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}}}]] | [[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:
  {{{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:Template]]{{doc}}</noinclude>
30

edits