From Dark and Darker Wiki
No edit summary |
(armor rating added) |
||
(31 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div | <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 | <div><!-- | ||
-->{{#if:{{{rarity|}}} | |||
</div> | |{{Iconbox|{{{name}}}|image={{{name}}} {{{rarity}}}.png|caption=no|nolink=1|size=150x300px}} | ||
<div | |{{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> | </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));"><!-- | ||
-->{{#if:{{{classes|}}}| | |||
<div style=" | <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))"> | ||
<div | <div style="font-weight:bold; color:rgb(245,226,133);">Classes</div> | ||
<div>{{{classes}}}</div> | |||
</div> | </div> | ||
|}} | |}}<!-- | ||
{{#if:{{{damage|}}}| | -->{{#if:{{{damage|}}}| | ||
<div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))"> | |||
<div style=" | <div style="font-weight:bold; color:rgb(245,226,133);">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:{{{ | -->{{#if:{{{combo|}}}| | ||
<div | <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))"> | ||
<div style=" | <div style="font-weight:bold; color:rgb(245,226,133);">Combo</div> | ||
<div | <div>{{{combo}}}</div> | ||
</div> | </div> | ||
|}} | |}}<!-- | ||
{{#if:{{{ | -->{{#if:{{{combodamage|}}}| | ||
<div | <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))"> | ||
<div style=" | <div style="font-weight:bold; color:rgb(245,226,133);">Combo Damage</div> | ||
<div | <div>{{{combodamage}}}</div> | ||
</div> | </div> | ||
|}} | |}}<!-- | ||
{{#if:{{{ | -->{{#if:{{{attackspeed|}}}| | ||
<div | <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))"> | ||
<div style=" | <div style="font-weight:bold; color:rgb(245,226,133);">Attack Speed</div> | ||
<div>{{{attackspeed}}}</div> | |||
</div> | </div> | ||
|}} | |}}<!-- | ||
{{#if:{{{ | -->{{#if:{{{sweetsour|}}}| | ||
<div | <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))"> | ||
<div style=" | <div style="font-weight:bold; color:rgb(245,226,133);">Sweet Sour</div> | ||
<div | <div>{{{sweetsour}}}</div> | ||
</div> | </div> | ||
|}} | |}}<!-- | ||
{{#if:{{{ | -->{{#if:{{{actionmovementspeed|}}}| | ||
<div | <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))"> | ||
<div style=" | <div style="font-weight:bold; color:rgb(245,226,133);">Action Movement Speed</div> | ||
<div | <div>{{{actionmovementspeed}}}</div> | ||
</div> | </div> | ||
|}} | |}}<!-- | ||
{{#if:{{{ | -->{{#if:{{{quiver|}}}| | ||
<div | <div style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))"> | ||
<div style=" | <div style="font-weight:bold; color:rgb(245,226,133);">Quiver Size</div> | ||
<div | <div>{{{quiver}}}</div> | ||
</div> | </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> | |||
{{Infobox Weapon | |||
|name = Arming Sword | |||
|name = | |||
|classes = [[Fighter]], [[Ranger]] | |classes = [[Fighter]], [[Ranger]] | ||
|damage = | |damage = 25 | ||
|rarity = 7 | |||
|movementspeed = -20 | |||
|movementspeed = -20 | |||
|combo = Slash/Slash/Thrust | |combo = Slash/Slash/Thrust | ||
|combodamage = 100%/100%/100% | |combodamage = 100%/100%/100% | ||
Line 83: | Line 102: | ||
|sweetsour = 100%/90%/70% | |sweetsour = 100%/90%/70% | ||
|actionmovementspeed = Attack: -25% | |actionmovementspeed = Attack: -25% | ||
}} | }}</pre></td> | ||
<td style="padding: 20px 50px;"> | |||
</pre> | |||
{{Infobox Weapon | {{Infobox Weapon | ||
|name = | |name = Longbow | ||
|classes = [[Fighter]], [[Ranger]] | |classes = [[Fighter]], [[Ranger]] | ||
|damage = | |damage = 25 | ||
|rarity = 7 | |||
|movementspeed = -20 | |movementspeed = -20 | ||
|combo = Slash/Slash/Thrust | |combo = Slash/Slash/Thrust | ||
Line 106: | Line 116: | ||
|actionmovementspeed = Attack: -25% | |actionmovementspeed = Attack: -25% | ||
}} | }} | ||
</td> | |||
</tr> | |||
</table> | |||
== All Options == | |||
The full list of options are listed below. | |||
<pre style="display: inline-block;"> | |||
{{Infobox Weapon | |||
|name = | |||
|classes = | |||
|damage = | |||
|rarity = | |||
|movementspeed = | |||
|combo = | |||
|combodamage = | |||
|attackspeed = | |||
|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
|
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the weapon
| String | required |
Classes | classes | One or more classes can be added | String | suggested |
Damage | damage | Damage of the item at corresponding rarity | String | suggested |
Movement speed | movementspeed | Movement speed of the item | String | suggested |
Combo | combo | Combo of the item | String | suggested |
Rarity | rarity | Rarity of the item | String | suggested |
Combo damage | combodamage | Combo damage of the item | String | suggested |
Attackspeed | attackspeed | Attackspeed of the item | String | suggested |
Sweet and Sour spots | sweetsour | Sweet and Sour spots of the item | String | suggested |
Quiver Size | quiver | Size of the quiver | String | suggested |
Action movement speed | actionmovementspeed | Action movement speed of the item | String | suggested |