From Dark and Darker Wiki

No edit summary
(Added quiver size variable)
Line 15: Line 15:
</div>
</div>
<div class="line"></div>
<div class="line"></div>
     <div class="stats-container">
     <div class="stats-container"><!--
{{#if:{{{classes|}}}|
-->{{#if:{{{classes|}}}|
     <div style="padding: 10px 0; clear: both;">
     <div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Classes</div>
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Classes</div>
<div style="float: left; width: 50%;">{{{classes}}}</div>
<div style="float: left; width: 50%;">{{{classes}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{damage|}}}|
-->{{#if:{{{damage|}}}|
     <div style="padding: 10px 0; clear: both;">
     <div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Damage</div>
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Damage</div>
         <div style="float: left; width: 50%;">{{{damage}}}</div>
         <div style="float: left; width: 50%;">{{{damage}}}</div>
         </div>
         </div>
|}}
|}}<!--
{{#if:{{{movementspeed|}}}|
-->{{#if:{{{movementspeed|}}}|
     <div style="padding: 10px 0; clear: both;">
     <div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Movement Speed</div>
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Movement Speed</div>
<div style="float: left; width: 50%;">{{{movementspeed}}}</div>
<div style="float: left; width: 50%;">{{{movementspeed}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{combo|}}}|
-->{{#if:{{{combo|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Combo</div>
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Combo</div>
<div style="float: left; width: 50%;">{{{combo}}}</div>
<div style="float: left; width: 50%;">{{{combo}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{combodamage|}}}|
-->{{#if:{{{combodamage|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Combo Damage</div>
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Combo Damage</div>
<div style="float: left; width: 50%;">{{{combodamage}}}</div>
<div style="float: left; width: 50%;">{{{combodamage}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{attackspeed|}}}|
-->{{#if:{{{attackspeed|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Attack Speed</div>
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Attack Speed</div>
<div style="float: left; width: 50%;">{{{attackspeed}}}</div>
<div style="float: left; width: 50%;">{{{attackspeed}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{sweetsour|}}}|
-->{{#if:{{{sweetsour|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Sweet Sour</div>
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Sweet Sour</div>
<div style="float: left; width: 50%;">{{{sweetsour}}}</div>
<div style="float: left; width: 50%;">{{{sweetsour}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{actionmovementspeed|}}}|
-->{{#if:{{{actionmovementspeed|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Action Movement Speed</div>
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Action Movement Speed</div>
<div style="float: left; width: 50%;">{{{actionmovementspeed}}}</div>
<div style="float: left; width: 50%;">{{{actionmovementspeed}}}</div>
</div>
</div>
|}}
|}}<!--
     </div>
-->{{#if:{{{quiver|}}}|
<div style="padding: 10px 0; clear: both;">
<div style="float: left; width: 50%; font-weight:bold; color:rgb(221,149,42);">Quiver Size</div>
<div style="float: left; width: 50%;">{{{quiver}}}</div>
</div>
|}}<!--
     --></div>
         </div>
         </div>
</includeonly>
</includeonly>
Line 126: Line 132:
|sweetsour            =  
|sweetsour            =  
|actionmovementspeed  =  
|actionmovementspeed  =  
|quiver                =
}}
}}
</pre>
</pre>
Line 188: Line 195:
"suggested": true,
"suggested": true,
             "description": "Sweet and Sour spots of the item"
             "description": "Sweet and Sour spots of the item"
},
"quiver": {
"label": "Quiver Size",
"type": "string",
"suggested": true,
            "description": "Size of the quiver"
},
},
"actionmovementspeed": {
"actionmovementspeed": {
Line 206: Line 219:
         "attackspeed",
         "attackspeed",
         "sweetsour",
         "sweetsour",
        "quiver",
         "actionmovementspeed"
         "actionmovementspeed"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 07: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%
}}
250px250px
Arming Sword
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