From Dark and Darker Wiki

(Created page with "<includeonly> <div class="itembox" style="width:90%;max-width:400px;{{#ifeq:{{{nofloat|}}}|1||float:right;}}"> <div class="itemboxheader"> <div style="float:left"> {{Iconbox|{{{name}}}|caption=no|size=96px|nolink=1}} </div> <div style="width:60%;max-width:280px;margin-left:15px;height:100px;justify-content:space-between!important;display:flex;flex-direction: column!important;float:left;margin-top:0px;"> <div class="bold" style="margin-top:0px!important;font-...")
 
(armor rating added)
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="itembox" style="width:90%;max-width:400px;{{#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 class="itemboxheader">
<div style="display:flex; flex-direction:column; align-items:center;"class="itemboxheader">
<div style="float:left">
<div><!--
{{Iconbox|{{{name}}}|caption=no|size=96px|nolink=1}}
-->{{#if:{{{rarity|}}}
</div>
|{{Iconbox|{{{name}}}|image={{{name}}} {{{rarity}}}.png|caption=no|nolink=1|size=150x300px}}
<div style="width:60%;max-width:280px;margin-left:15px;height:100px;justify-content:space-between!important;display:flex;flex-direction: column!important;float:left;margin-top:0px;">
|{{Iconbox|{{{name}}}|image={{{name}}} 2.png|caption=no|nolink=1|size=150x300px}}
}}<!--
--></div>
<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;">
<div style="color:rgb(221,149,42);">{{{classes}}}</div>
</div>
</div>
</div>
</div>
</div>
<div class="line"></div>
<div class="line"></div>
{{#if:{{{classes|}}}|
    <div class="stats-container" style="display:grid;grid-template-columns: repeat(1, minmax(0, 1fr));"><!--
<div class="stats-container" style="clear: both; padding: 10px 0;">
-->{{#if:{{{classes|}}}|
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Classes</div>
    <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{{classes}}}</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Classes</div>
<div>{{{classes}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{damage|}}}|
-->{{#if:{{{damage|}}}|
<div class="stats-container" style="clear: both; padding: 10px 0;">
    <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Damage </div>
<div style="font-weight:bold; color:rgb(245,226,133);">Damage</div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{{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>
|}}<!--
-->{{#if:{{{movementspeed|}}}|
    <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);">Movement Speed</div>
<div>{{{movementspeed}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{combo|}}}|
-->{{#if:{{{combo|}}}|
<div class="stats-container" style="clear: both; padding: 10px 0;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Combo</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Combo</div>
<div style="float: right;width: 20%;color:rgb(132,176,5);text-align-last: right;font-weight:bold;">{{{combo}}}</div>
<div>{{{combo}}}</div>
</div>
</div>
|}}
|}}<!--
<br><div class="line"></div>
-->{{#if:{{{combodamage|}}}|
{{#if:{{{combodamage|}}}|
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div class="stats-container" style="clear: both; padding: 0 0 -75px 0;">
<div style="font-weight:bold; color:rgb(245,226,133);">Combo Damage</div>
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Combo Damage</div>
<div>{{{combodamage}}}</div>
<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;">{{{combodamage}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{attackspeed|}}}|
-->{{#if:{{{attackspeed|}}}|
<div class="stats-container" style="clear: both; padding: 10px 0 -75px 0;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Attack Speed</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Attack Speed</div>
<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;">{{{attackspeed}}}</div>
<div>{{{attackspeed}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{sweetsour|}}}|
-->{{#if:{{{sweetsour|}}}|
<div class="stats-container" style="clear: both; padding: 10px 0 -75px 0;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 30%; font-weight:bold; color:rgb(221,149,42);">Sweet Sour</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Sweet Sour</div>
<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;">{{{sweetsour}}}</div>
<div>{{{sweetsour}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{actionmovementspeed|}}}|
-->{{#if:{{{actionmovementspeed|}}}|
<div class="stats-container" style="clear: both; padding: 10px 0 -75px 0;">
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: left; width: 40%; font-weight:bold; color:rgb(221,149,42);">Action Movement Speed</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Action Movement Speed</div>
<div style="float: right;width: 20%;text-align-last: right;font-weight:bold;">{{{actionmovementspeed}}}</div>
<div>{{{actionmovementspeed}}}</div>
</div>
</div>
|}}
|}}<!--
</div>
-->{{#if:{{{quiver|}}}|
<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);">Quiver Size</div>
<div>{{{quiver}}}</div>
</div>
|}}<!--
    --></div><!--
      --></div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Creates an infobox for a weapon.
== Example ==
<table class="wikitable">
<tr>
<th>Code</th>
<th>Preview</th>
</tr>
<tr>
<td style="padding: 20px 30px;">
<pre>


== Usage ==
{{Infobox Weapon
This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.
|name                = Arming Sword
<pre>{{Infobox Weapon
|classes              = [[Fighter]], [[Ranger]]
|name                 = Arming Sword 2
|damage              = 25
|classes               = [[Fighter]],[[Ranger]]
|rarity              = 7
|damage               = 30
|movementspeed        = -20
|movement speed       = -20
|combo                = Slash/Slash/Thrust
|combo                 = Slash/Slash/Thrust
|combodamage          = 100%/100%/100%
|combodamage           = 100%/100%/100%
|attackspeed          = 0.6s/0.56s/0.75s
|attackspeed           = 0.6s/0.56s/0.75s
|sweetsour            = 100%/90%/70%
|sweetsour             = 100%/90%/70%
|actionmovementspeed  = Attack: -25%
|actionmovementspeed   = Attack: -25%
}}</pre></td>
<td style="padding: 20px 50px;">
{{Infobox Weapon
|name                 = Longbow
|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%
}}
}}
</pre>
</td>
Results in:
</tr>
</table>
 
== All Options ==
 
The full list of options are listed below.


<pre style="display: inline-block;">
{{Infobox Weapon
{{Infobox Weapon
|name                  = Arming Sword 2
|name                  =  
|classes              = [[Fighter]],[[Ranger]]
|classes              =  
|damage                = 30
|damage                =  
|movement speed        = -20
|rarity                =
|combo                = Slash/Slash/Thrust
|movementspeed        =  
|combodamage          = 100%/100%/100%
|combo                =
|attackspeed          = 0.6s/0.56s/0.75s
|combodamage          =
|sweetsour            = 100%/90%/70%
|attackspeed          =  
|actionmovementspeed  = Attack: -25%
|sweetsour            =  
|actionmovementspeed  =  
|quiver                =
}}
}}
</pre>
<templatedata>
{
"params": {
"name": {
"label": "Name",
"example": "Arming Sword",
"type": "string",
"required": true,
"suggested": true,
            "description": "The name of the weapon"
},
"classes": {
"label": "Classes",
"type": "string",
"suggested": true,
            "description": "One or more classes can be added"
},
"damage": {
"label": "Damage",
"type": "string",
"suggested": true,
            "description": "Damage of the item at corresponding rarity"
},
"movementspeed": {
"label": "Movement speed",
"type": "string",
"suggested": true,
            "description": "Movement speed of the item"
},
"combo": {
"label": "Combo",
"type": "string",
"suggested": true,
            "description": "Combo of the item"
           
},
"combodamage": {
"label": "Combo damage",
"type": "string",
"suggested": true,
            "description": "Combo damage of the item"
},
"rarity": {
"label": "Rarity",
"type": "string",
"suggested": true,
            "description": "Rarity of the item"
},
"attackspeed": {
"label": "Attackspeed",
"type": "string",
"suggested": true,
            "description": "Attackspeed of the item"
},
"sweetsour": {
"label": "Sweet and Sour spots",
"type": "string",
"suggested": true,
            "description": "Sweet and Sour spots of the item"
},
"quiver": {
"label": "Quiver Size",
"type": "string",
"suggested": true,
            "description": "Size of the quiver"
},
"actionmovementspeed": {
"label": "Action movement speed",
"type": "string",
"suggested": true,
            "description": "Action movement speed of the item"
}
},
"paramOrder": [
"name",
"classes",
"damage",
        "movementspeed",
        "combo",
        "rarity",
        "combodamage",
        "attackspeed",
        "sweetsour",
        "quiver",
        "actionmovementspeed"
]
}
</templatedata></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