Template:Infobox weapon: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "<includeonly><div class="infobox-equipment {{lc:{{{rarity}}}}}"> <div class="rarity-wrapper"> <p>{{#switch: {{lc:{{{rarity}}}}} | common = ★ | uncommon = ★ ★ | rare = ★ ★ ★ | epic = ★ ★ ★ ★ }}</p> </div> <div class="dmg-types-wrapper"> {{#if: {{{damage|}}} | <div class="dmg-type-row"> <div class="dmg-type-cell damage">{{#if: {{{damage|}}} | File:Damage icon.png }}</div> <p>{{{damage}}}</p> </div> }} {{#if: {{{elemental|}}} | <div class="dmg-type-r...")
 
No edit summary
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="infobox-equipment {{lc:{{{rarity}}}}}">
<includeonly><div class="infobox-weapon {{lc:{{{rarity}}}}}">
<div class="rarity-wrapper">
<div class="rarity-wrapper">
<p>{{#switch: {{lc:{{{rarity}}}}} | common = ★ | uncommon = ★ ★ | rare = ★ ★ ★ | epic = ★ ★ ★ ★ }}</p>
<p>{{#switch: {{lc:{{{rarity}}}}} | common = ★ | uncommon = ★ ★ | rare = ★ ★ ★ | epic = ★ ★ ★ ★ }}</p>
Line 6: Line 6:
{{#if: {{{damage|}}} |
{{#if: {{{damage|}}} |
<div class="dmg-type-row">
<div class="dmg-type-row">
<div class="dmg-type-cell damage">{{#if: {{{damage|}}} | [[File:Damage icon.png]] }}</div>
<div class="dmg-type-cell damage">{{#if: {{{damage|}}} | [[File:Damage icon.png|link=]] }}</div>
<p>{{{damage}}}</p>
<p>{{{damage}}}</p>
</div>
</div>
}}
}}
{{#if: {{{elemental|}}} |
<div class="dmg-type-row">
<div class="dmg-type-row">
<div class="dmg-type-cell elemental">{{#if: {{{elemental|}}} | [[File:Necrotic damage icon.png]] }}</div>
<div class="dmg-type-cell {{{element}}}">{{#if: {{{element|}}} | {{#ifeq: {{{element}}} | none | | [[File:{{{element}}} damage icon.png|link=]] }} }}
<p>{{{elemental}}}</p>
</div>
</div>
<p>{{#if: {{{element|}}} | {{#replace:{{#replace:{{{element%|}}}| |}}|%|}}% | 0% }}</p>
}}
</div>
{{#if: {{{type|}}} |
{{#if: {{{range|}}} |
<div class="dmg-type-row">
<div class="dmg-type-row">
<div class="dmg-type-cell type">{{#if: {{{type|}}} | [[File:Weapon type icon.png]] }}</div>
<div class="dmg-type-cell range">{{#if: {{{range|}}} | [[File:Weapon range icon.png|link=]] }}</div>
<p>{{{type}}}</p>
<p>{{{range}}}</p>
</div>
</div>
}}
}}
{{#if: {{{hand|}}} |
{{#if: {{{slot|}}} |
<div class="dmg-type-row">
<div class="dmg-type-row">
<div class="dmg-type-cell {{{slot}}}">{{#switch: {{{slot}}} | one-hand = [[File:1-Hand icon.png|link=]] | two-hand = [[File:2-Hand icon.png|link=]] }}</div>
<div class="dmg-type-cell hand">
{{#switch: {{{hand}}}
<p>{{#switch: {{{slot}}} | one-hand = 1-Hand | two-hand = 2-Hand }}</p>
| 1 = [[File:1-Hand icon.png]]
| 2 = [[File:2-Hand icon.png]]
}}
</div>
<p>
{{#switch: {{{hand}}}
| 1 = 1-Hand
| 2 = 2-Hand
}}
</p>
</div>
</div>
}}
}}

Latest revision as of 02:54, 9 November 2024

Template documentation
This documentation is transcluded from Template:Infobox weapon/doc. [edit] [history] [purge]

Parameters

Rarity

Rarity of the item (Common, Uncommon, Rare, Epic). This changes the number of ★ as well as the color of the infobox.

Damage

Damage number

Element

Elemental damage type. Leave the field empty or type "none" in case the Elemental damage % below is "0".

  • none (or leave empty)
  • impact
  • cryonae
  • arborae
  • tempestae
  • infernae
  • necromae

Element %

Elemental damage %.

Range

Weapon range (Melee / 'number')

Slot

Weapon slot (one-hand / two-hand)

Quick copy

{{Infobox weapon
|rarity =
|damage = 
|element = 
|element% = 
|range = 
|slot = 
}}

Example

{{Infobox weapon
|rarity = uncommon
|damage = 89
|element = infernae
|element% = 49
|range = Melee
|slot = one-hand
}}

Produces the following example:

★ ★

89

49%

Melee

1-Hand