From Dark and Darker Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div | <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|}}} | ||
|Ruby Silver = 5 | |Ruby Silver = 5 | ||
|#default = {{{rarity}}}}}),0.5); {{#ifeq:{{{nofloat|}}}|1||float:right;}}"> | |#default = {{{rarity}}}}}),0.5); {{#ifeq:{{{nofloat|}}}|1||float:right;}}"> | ||
Line 16: | Line 16: | ||
|Ruby Silver = {{Iconbox|{{{name}}}|image={{{name}}} {{{rarity}}}.png|caption=no|size=150x150px|nolink=1}} | |Ruby Silver = {{Iconbox|{{{name}}}|image={{{name}}} {{{rarity}}}.png|caption=no|size=150x150px|nolink=1}} | ||
|#default = {{Iconbox|{{{name}}}|image={{{name}}}.png|caption=no|size=150x150px|nolink=1}} | |#default = {{Iconbox|{{{name}}}|image={{{name}}}.png|caption=no|size=150x150px|nolink=1}} | ||
}} | }}<!-- | ||
</div> | --></div> | ||
<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 style="display:grid;grid-template-columns: repeat(1, minmax(0, 1fr));"><!-- | ||
<div class="stats-container"> | -->{{#if:{{{classes|}}}| | ||
<div style=" | <div class="stats-container" 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:{{{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=" | <div style="font-weight:bold; color:rgb(245,226,133);">Armor</div> | ||
{{#if:{{{rarity|}}} | {{#if:{{{rarity|}}} | ||
|<div | |<div>{{{armor}}}</div> | ||
|<div | |<div>{{{armor}}}</div>}} | ||
</div> | </div> | ||
|}} | |}}<!-- | ||
{{#if:{{{movementspeed|}}}| | -->{{#if:{{{movementspeed|}}}| | ||
<div class="stats-container" style=" | <div class="stats-container" 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);">Movement Speed</div> | ||
<div | <div>{{{movementspeed}}}</div> | ||
</div> | </div> | ||
|}} | |}}<!-- | ||
{{#if:{{{stats|}}}| | -->{{#if:{{{stats|}}}| | ||
<div class="stats-container" style=" | <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: | --><div style="float: left; width: 50%; font-weight:bold; color:rgb(245,226,133);">Stats</div> | ||
<div style=" | <div style="display:flex; flex-direction:column;"><!-- | ||
<div | --><div>{{{stats}}}</div><!-- | ||
--><div>{{{stats2}}}</div><!-- | |||
|}} | --></div> | ||
</div> | </div> | ||
|}}<!-- | |||
--></div> | |||
</div> | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 11:34, 5 February 2023
Creates an infobox for a Armor.
Example
Code | Preview |
---|---|
{{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
|
{{Infobox Armor |name = Armet |classes = [[Fighter]] |armor = 15 |movementspeed = -20 |stats = 14.0% Headshot Reduction |stats2 = -5 Magic Resistance }} |
Armet
|
All Options
The full list of options are listed below.
{{Infobox Armor |name = |classes = |armor = |rarity = |movementspeed = |stats = |stats2 = }}
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 |
Armor | armor | Armor of the item at corresponding rarity | String | suggested |
Movement speed | movementspeed | Movement speed of the item | String | suggested |
Stats | stats | Stats of the item | String | suggested |
Stats2 | stats2 | Stats of the item | String | suggested |
Rarity | rarity | Rarity of the item | String | suggested |