From Dark and Darker Wiki

No edit summary
(armor rating added)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="itembox" style=" width:90%;max-width:600px; border:2px solid rgb(var(--rarity-{{{rarity}}}),0.5); {{#ifeq:{{{nofloat|}}}|1||float:right;}}">
<div style="width: 300px;background-color: rgb(var(--background-color),0.3); padding: 16px;max-width:600px; border:2px solid rgb(var(--rarity-{{{rarity}}}),0.5);">
<div style="display:flex"class="itemboxheader">
<div style="display:flex; flex-direction:column; align-items:center;"class="itemboxheader">
<div style="float:left;"><!--
<div><!--
-->{{#if:{{{rarity|}}}
-->{{#if:{{{rarity|}}}
|{{Iconbox|{{{name}}}|image={{{name}}} {{{rarity}}}.png|caption=no|nolink=1|size=150x300px}}
|{{Iconbox|{{{name}}}|image={{{name}}} {{{rarity}}}.png|caption=no|nolink=1|size=150x300px}}
Line 8: Line 8:
}}<!--
}}<!--
--></div>
--></div>
<div style="width:60%;max-width:280px;margin-left:15px;height:150px; align-items: flex-end; justify-content:space-between!important;display:flex;flex-direction: column!important;float:left;margin-top:0px;">
<div>
<div class="bold" style="margin-top:0px!important;font-size:22px;">{{{name}}}</div>
<div class="bold" style="margin-top:0px!important;font-size:22px;">{{{name}}}</div>
            <div style="width:100%;justify-content:space-between!important;display:flex;flex-direction: row!important;font-size:17px;bottom:0px;">
</div>
</div>
</div>
</div>
</div>
<div class="line"></div>
<div class="line"></div>
     <div class="stats-container"><!--
     <div class="stats-container" style="display:grid;grid-template-columns: repeat(1, minmax(0, 1fr));"><!--
-->{{#if:{{{classes|}}}|
-->{{#if:{{{classes|}}}|
     <div style="padding: 10px 0; clear: both;">
     <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Classes</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Classes</div>
<div style="float: left;  width: 50%;">{{{classes}}}</div>
<div>{{{classes}}}</div>
</div>
</div>
|}}<!--
|}}<!--
-->{{#if:{{{damage|}}}|
-->{{#if:{{{damage|}}}|
     <div style="padding: 10px 0; clear: both;">
     <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Damage</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Damage</div>
         <div style="float: left; min-width:50%;width: 50%;">{{{damage}}}</div>
         <div >{{{damage}}}</div>
        </div>
|}}<!--
-->{{#if:{{{armor|}}}|
    <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="font-weight:bold; color:rgb(245,226,133);">Armor Rating</div>
        <div >{{{armor}}}</div>
         </div>
         </div>
|}}<!--
|}}<!--
-->{{#if:{{{movementspeed|}}}|
-->{{#if:{{{movementspeed|}}}|
     <div style="padding: 10px 0; clear: both;">
     <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Movement Speed</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Movement Speed</div>
<div style="float: left; min-width:50%;width: 50%;">{{{movementspeed}}}</div>
<div>{{{movementspeed}}}</div>
</div>
</div>
|}}<!--
|}}<!--
-->{{#if:{{{combo|}}}|
-->{{#if:{{{combo|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Combo</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Combo</div>
<div style="float: left; min-width:50%;width: 50%;">{{{combo}}}</div>
<div>{{{combo}}}</div>
</div>
</div>
|}}<!--
|}}<!--
-->{{#if:{{{combodamage|}}}|
-->{{#if:{{{combodamage|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Combo Damage</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Combo Damage</div>
<div style="float: left; min-width:50%;width: 50%;">{{{combodamage}}}</div>
<div>{{{combodamage}}}</div>
</div>
</div>
|}}<!--
|}}<!--
-->{{#if:{{{attackspeed|}}}|
-->{{#if:{{{attackspeed|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Attack Speed</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Attack Speed</div>
<div style="float: left; min-width:50%;width: 50%;">{{{attackspeed}}}</div>
<div>{{{attackspeed}}}</div>
</div>
</div>
|}}<!--
|}}<!--
-->{{#if:{{{sweetsour|}}}|
-->{{#if:{{{sweetsour|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Sweet Sour</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Sweet Sour</div>
<div style="float: left;min-width:50%; width: 50%;">{{{sweetsour}}}</div>
<div>{{{sweetsour}}}</div>
</div>
</div>
|}}<!--
|}}<!--
-->{{#if:{{{actionmovementspeed|}}}|
-->{{#if:{{{actionmovementspeed|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Action Movement Speed</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Action Movement Speed</div>
<div style="float: left; min-width:50%;width: 50%;">{{{actionmovementspeed}}}</div>
<div>{{{actionmovementspeed}}}</div>
</div>
</div>
|}}<!--
|}}<!--
-->{{#if:{{{quiver|}}}|
-->{{#if:{{{quiver|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Quiver Size</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Quiver Size</div>
<div style="float: left; min-width:50%;width: 50%;">{{{quiver}}}</div>
<div>{{{quiver}}}</div>
</div>
</div>
|}}<!--
|}}<!--
     --></div>
     --></div><!--
        </div>
      --></div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>

Latest revision as of 19:00, 5 February 2023


Creates an infobox for a weapon.

Example

Code Preview

{{Infobox Weapon
|name                 = Arming Sword
|classes              = [[Fighter]], [[Ranger]]
|damage               = 25
|rarity               = 7
|movementspeed        = -20 
|combo                = Slash/Slash/Thrust
|combodamage          = 100%/100%/100%
|attackspeed          = 0.6s/0.56s/0.75s
|sweetsour            = 100%/90%/70%
|actionmovementspeed  = Attack: -25%
}}
Longbow 7.png
Longbow
Classes
Damage
25
Movement Speed
-20
Combo
Slash/Slash/Thrust
Combo Damage
100%/100%/100%
Attack Speed
0.6s/0.56s/0.75s
Sweet Sour
100%/90%/70%
Action Movement Speed
Attack: -25%


All Options

The full list of options are listed below.

{{Infobox Weapon
|name                  = 
|classes               = 
|damage                = 
|rarity                =
|movementspeed         = 
|combo                 =
|combodamage           =
|attackspeed           = 
|sweetsour             = 
|actionmovementspeed   = 
|quiver                = 
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the weapon

Example
Arming Sword
Stringrequired
Classesclasses

One or more classes can be added

Stringsuggested
Damagedamage

Damage of the item at corresponding rarity

Stringsuggested
Movement speedmovementspeed

Movement speed of the item

Stringsuggested
Combocombo

Combo of the item

Stringsuggested
Rarityrarity

Rarity of the item

Stringsuggested
Combo damagecombodamage

Combo damage of the item

Stringsuggested
Attackspeedattackspeed

Attackspeed of the item

Stringsuggested
Sweet and Sour spotssweetsour

Sweet and Sour spots of the item

Stringsuggested
Quiver Sizequiver

Size of the quiver

Stringsuggested
Action movement speedactionmovementspeed

Action movement speed of the item

Stringsuggested