Template:Infobox Weapon: Difference between revisions
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: | <includeonly>{| class="infobox" style="float: right; background-color: #f3f3f3; margin-left: 10px; border: 1px solid #ccc; padding: 4px; width: 18em;" cellpadding="2" cellspacing="1" | ||
|- | |- | ||
{{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=" | | colspan="2" style="height: 0.5rem" | | ||
| | {{BG_Infobox_Subheader|title=Weapon Details|bgcolor1=#d62929|bgcolor2=#f59090}} | ||
{{#if: | |||
{{{type|}}} | |||
|<tr><td><b>Type</b></td><td>[[:Category:{{{type}}}|{{{type}}}]]</td></tr>| | |||
}}{{#if: | |||
{{{rarity|}}} | |||
|<tr><td><b>Rarity</b></td><td>{{Rarity|rarity={{{rarity}}}}}</td></tr>| | |||
}}{{#if: | |||
{{{slot_item|}}} | |||
|<tr><td><b>Slot</b></td><td>{{{slot_item}}}</td></tr>| | |||
}}{{#if: | |||
{{{uses|}}} | |||
|<tr><td><b>Uses</b></td><td>{{{uses}}}</td></tr>| | |||
}}{{#if: | |||
{{{tradable|}}} | |||
|{{BG_Infobox_Subheader|title=Trade Attributes|bgcolor1=#d62929|bgcolor2=#f59090}}| | |||
}}{{#if: | |||
{{{tradable|}}} | |||
|<tr><td><b>Tradable</b></td><td>{{{tradable}}}</td></tr>| | |||
}}{{#if: | |||
{{{obtain|}}} | |||
|<tr><td><b>Obtainable</b></td><td>{{{obtain}}}</td></tr>| | |||
}}{{#if: | |||
{{{source|}}} | |||
|<tr><td><b>Source</b></td><td>{{{source}}}</td></tr>| | |||
}}{{#if: | |||
{{{drop_chance|}}} | |||
|<tr><td>Drop Chance</td><td>{{{drop_chance}}}</td></tr>| | |||
}}{{#if: | |||
{{#if: {{{recipe_req|}}}| | {{{merchant|}}} | ||
{{#if: | |{{BG_Infobox_Subheader|title=Shop|bgcolor1=#d62929|bgcolor2=#f59090}}| | ||
}}{{#if: | |||
{{{merchant|}}} | |||
|<tr><td><b>Merchant</b></td><td>[[{{{merchant}}}]]</td></tr>| | |||
}}{{#if: | |||
{{{upgrades_from|}}} | |||
|<tr><td><b>Upgrades from</b></td><td>[[{{{upgrades_from}}}]]</td></tr>| | |||
}}{{#if: | |||
{{{upgrades_to|}}} | |||
|<tr><td><b>Upgrade to</b></td><td>[[{{{upgrades_to}}}]]</td></tr>| | |||
}}{{#if: | |||
|} | {{{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> |
Revision as of 16:43, 11 March 2024
This template has no documentation. If you know how to use this template, please add some.
The above documentation is transcluded from Template:Infobox Weapon/doc. (edit | history)