Template:Armor: Difference between revisions

From Vintage Story Wiki
m
bug fix and example template
(Armor infobox from 1.11 :))
 
m (bug fix and example template)
Line 1: Line 1:
<includeonly>
<includeonly>
{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:{{#if:{{{FloatLeft|}}}|left|right}};"
{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:{{#if:{{{FloatLeft|}}}|left;margin-right:2em|right}};"
|-
|-
|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
Line 14: Line 14:
| '''Flat''' || {{{FlatDamageReduction}}}
| '''Flat''' || {{{FlatDamageReduction}}}
|-
|-
| '''Protection Tier''' || {{{Protection Tier}}}
| '''Protection Tier''' || {{{ProtectionTier}}}
{{#if: {{{HighDamageTierResistant|}}} | {{#!:
{{#if: {{{HighDamageTierResistant|}}} | {{#!:
|-
|-
Line 57: Line 57:
<noinclude>
<noinclude>
Template for armors. More or less a value copy from the armors.json in the assets.
Template for armors. More or less a value copy from the armors.json in the assets.
{{Armor
|Name=Test
|Image=Help
|Durability=100
|RelativeProtection=0.6
|FlatDamageReduction=0.6
|ProtectionTier=0
}}
{| class="wikitable"
{| class="wikitable"
|-
|-
Confirmedusers, Bureaucrats, editor, Administrators
1,522

edits