From Dark and Darker Wiki

No edit summary
(added cobalt)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="itembox" style="width:90%;max-width:450px; 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:470px; border:2px solid rgb(var(--rarity-{{#switch:{{{rarity|}}}
<div style="display:flex"class="itemboxheader">
|Ruby Silver = 5
<div style="float:left">
|Cobalt = 4
{{Iconbox|{{{name}}}|image={{{name}}}.png|caption=no|size=150x150px|nolink=1}}
|#default = {{{rarity}}}}}),0.5); {{#ifeq:{{{nofloat|}}}|1||float:right;}}">
<div style="display:flex; flex-direction:column; align-items:center;"class="itemboxheader">
<div>
{{#switch:{{{rarity|}}}
|0
|1
|2
|3
|4
|5
|6
|7 = {{Iconbox|{{{name}}}|image={{{name}}}.png|caption=no|size=150x150px|nolink=1}}
|Ruby Silver = {{Iconbox|{{{name}}}|image={{{name}}} {{{rarity}}}.png|caption=no|size=150x150px|nolink=1}}
|Cobalt = {{Iconbox|{{{name}}}|image={{{name}}} {{{rarity}}}.png|caption=no|size=150x150px|nolink=1}}
|#default = {{Iconbox|{{{name}}}|image={{{name}}}.png|caption=no|size=150x150px|nolink=1}}
}}<!--


</div>
--></div>
<div style="width:60%;max-width:280px;margin-left:15px;height:150px;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>
{{#if:{{{classes|}}}|
    <div style="display:grid;grid-template-columns: repeat(1, minmax(0, 1fr));"><!--
<div class="stats-container">
-->{{#if:{{{classes|}}}|
<div style="float: left; width: 40%; font-weight:bold; color:rgb(221,149,42);">Classes</div>
<div class="stats-container" style="grid-column: span 1 / span 1;display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))">
<div style="float: right;width: 60%;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:{{{armor|}}}|
-->{{#if:{{{armor|}}}|
<div class="stats-container">
<div class="stats-container" 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);">Armor</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Armor</div>
         {{#if:{{{rarity|}}}
         {{#if:{{{rarity|}}}
         |<div style="float: right;width: 60%;text-align-last: right;font-weight:bold;">{{{armor}}}</div>
         |<div>{{{armor}}}</div>
         |<div style="float: right;width: 60%;text-align-last: right;font-weight:bold;">{{{armor}}}</div>}}
         |<div>{{{armor}}}</div>}}
         </div>
         </div>
|}}
|}}<!--
{{#if:{{{movementspeed|}}}|
-->{{#if:{{{movementspeed|}}}|
<div class="stats-container" style="clear: both; padding: 0 0 -75px 0;">
<div class="stats-container" 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);">Movement Speed</div>
<div style="font-weight:bold; color:rgb(245,226,133);">Movement Speed</div>
<div style="float: right;width: 40%;text-align-last: right;font-weight:bold;">{{{movementspeed}}}</div>
<div>{{{movementspeed}}}</div>
</div>
</div>
|}}
|}}<!--
{{#if:{{{stats|}}}|
-->{{#if:{{{stats|}}}|
<div class="stats-container" style="clear: both; padding: 0 0 -75px 0;">
<div class="stats-container" style="ggrid-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);">Stats</div>
--><div style="font-weight:bold; color:rgb(245,226,133);">Stats</div>
         <div style="float: right; width: 60%;text-align-last: right;font-weight:bold;">{{{stats}}}</div>
         <div style="display:flex; flex-direction:column;"><!--
         <div style="float: right; width: 60%;text-align-last: right;font-weight:bold;">{{{stats2}}}</div>
        --><div>{{{stats}}}</div><!--
</div>
         --><div>{{{stats2}}}</div><!--
|}}
--></div>
     </div>
    </div>
|}}<!--
     --></div>
        </div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 51: Line 69:
<th>Code</th>
<th>Code</th>
<th>Preview</th>
<th>Preview</th>
</tr>
    <tr>
<td style="padding: 20px 30px;">
<pre>
{{Infobox Armor
|name                = Frock
|classes              = [[Cleric]]
|armor                = 15
|rarity              = Cobalt
|movementspeed        = -20
|stats                = 14.0% Headshot Reduction
|stats2              = -5 Magic Resistance
}}</pre></td>
<td style="padding: 20px 30px;">
{{Infobox Armor
|name                = Frock
|classes              = [[Cleric]]
|armor                = 15
|rarity              = Cobalt
|movementspeed        = -20
|stats                = 14.0% Headshot Reduction
|stats2              = -5 Magic Resistance
}}
</td>
</tr>
</tr>
<tr>
<tr>
<td style="padding: 20px 30px;">
<pre>
{{Infobox Armor
|name                = Barbuta Helm
|classes              = [[Fighter]]
|armor                = 15
|rarity              = Ruby Silver
|movementspeed        = -20
|stats                = 14.0% Headshot Reduction
|stats2              = -5 Magic Resistance
}}</pre></td>
<td style="padding: 20px 30px;">
{{Infobox Armor
|name                = Barbuta Helm
|classes              = [[Fighter]]
|armor                = 15
|rarity              = Ruby Silver
|movementspeed        = -20
|stats                = 14.0% Headshot Reduction
|stats2              = -5 Magic Resistance
}}
</td>
</tr>
    <tr>
<td style="padding: 20px 30px;">
<td style="padding: 20px 30px;">
<pre>
<pre>
Line 60: Line 128:
|classes              = [[Fighter]]
|classes              = [[Fighter]]
|armor                = 15
|armor                = 15
|rarity              = 0
|movementspeed        = -20  
|movementspeed        = -20  
|stats                = 14.0% Headshot Reduction
|stats                = 14.0% Headshot Reduction
Line 70: Line 137:
|classes              = [[Fighter]]
|classes              = [[Fighter]]
|armor                = 15
|armor                = 15
|rarity              = 0
|movementspeed        = -20  
|movementspeed        = -20  
|stats                = 14.0% Headshot Reduction
|stats                = 14.0% Headshot Reduction

Latest revision as of 20:47, 7 February 2023


Creates an infobox for a Armor.

Example

Code Preview

{{Infobox Armor
|name                 = Frock
|classes              = [[Cleric]]
|armor                = 15
|rarity               = Cobalt
|movementspeed        = -20 
|stats                = 14.0% Headshot Reduction
|stats2               = -5 Magic Resistance
}}
Frock Cobalt.png
Frock
Classes
Armor
15
Movement Speed
-20
Stats
14.0% Headshot Reduction
-5 Magic Resistance



{{Infobox Armor
|name                 = Barbuta Helm
|classes              = [[Fighter]]
|armor                = 15
|rarity               = Ruby Silver
|movementspeed        = -20 
|stats                = 14.0% Headshot Reduction
|stats2               = -5 Magic Resistance
}}
Barbuta Helm Ruby Silver.png
Barbuta Helm
Classes
Armor
15
Movement Speed
-20
Stats
14.0% Headshot Reduction
-5 Magic Resistance



{{Infobox Armor
|name                 = Armet
|classes              = [[Fighter]]
|armor                = 15
|movementspeed        = -20 
|stats                = 14.0% Headshot Reduction
|stats2               = -5 Magic Resistance
}}
Armet.png
Armet
Classes
Armor
15
Movement Speed
-20
Stats
14.0% Headshot Reduction
-5 Magic Resistance


All Options

The full list of options are listed below.

{{Infobox Armor
|name                 = 
|classes              = 
|armor                = 
|rarity               =
|movementspeed        = 
|stats                = 
|stats2               =
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the weapon

Example
Arming Sword
Stringrequired
Classesclasses

One or more classes can be added

Stringsuggested
Armorarmor

Armor of the item at corresponding rarity

Stringsuggested
Movement speedmovementspeed

Movement speed of the item

Stringsuggested
Statsstats

Stats of the item

Stringsuggested
Stats2stats2

Stats of the item

Stringsuggested
Rarityrarity

Rarity of the item

Stringsuggested