Difference between revisions of "Template:Test test"
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
|Rings = | |Rings = | ||
|#default = float:right; | |#default = float:right; | ||
}}}}{{#ifeq: {{:Armor_data|{{{1}}}}}|Data does not exist.||{{#vardefine:Datastring|{{:Weapon_data|{{{1 | }}}}{{#ifeq: {{:Armor_data|{{{1}}}}}|Data does not exist.||{{#vardefine:Datastring|{{:Weapon_data|{{{1}}}}}}}<!-- | ||
-->{{#switch: {{#explode: {{#var:Datastring}}|;|1}} | -->{{#switch: {{#explode: {{#var:Datastring}}|;|1}} | ||
|Sword | |Sword | ||
Line 87: | Line 87: | ||
-->{{#vardefine:Stealth|{{#explode: {{#var:Datastring}}|;|67}}}}<!-- | -->{{#vardefine:Stealth|{{#explode: {{#var:Datastring}}|;|67}}}}<!-- | ||
-->{{#vardefine:Noise Produced|{{#explode: {{#var:Datastring}}|;|68}}}}<!-- | -->{{#vardefine:Noise Produced|{{#explode: {{#var:Datastring}}|;|68}}}}<!-- | ||
}}{{#switch: {{:Consumable_data|{{{1}}}|ItemType}} | }}}}{{#switch: {{:Consumable_data|{{{1}}}|ItemType}} | ||
|Food | |Food | ||
|Beverages | |Beverages | ||
Line 127: | Line 127: | ||
}}<!-- | }}<!-- | ||
--- Load complete datastring into a variable - to only load from the Armor data page once. --- | --- Load complete datastring into a variable - to only load from the Armor data page once. --- | ||
-->{{#ifeq: {{:Armor_data|{{{1}}}}}|Data does not exist.||{{#vardefine:Datastring|{{:Armor_data|{{{1 | -->{{#ifeq: {{:Armor_data|{{{1}}}}}|Data does not exist.||{{#vardefine:Datastring|{{:Armor_data|{{{1}}}}}}}<!-- | ||
-->{{#switch: {{#explode: {{#var:Datastring}}|;|2}} | -->{{#switch: {{#explode: {{#var:Datastring}}|;|2}} | ||
|Shield | |Shield | ||
Line 202: | Line 202: | ||
-->{{#vardefine:Life Drain|{{#explode: {{#var:Datastring}}|;|33}}}}<!-- | -->{{#vardefine:Life Drain|{{#explode: {{#var:Datastring}}|;|33}}}}<!-- | ||
-->{{#vardefine:Energy Drain|{{#explode: {{#var:Datastring}}|;|34}}}} | -->{{#vardefine:Energy Drain|{{#explode: {{#var:Datastring}}|;|34}}}} | ||
}}<!-- | }}}}<!-- | ||
--><div style="display: flex;flex-direction:column;"><!-- | --><div style="display: flex;flex-direction:column;"><!-- | ||
-->{{#if: {{#var:Armor Penetration}} | <div style="order: 1;"> {{Translate|Armor Penetration|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Armor Penetration}}>0|{{c|+|+{{#var:Armor Penetration}}%}}|{{c|-|{{#var:Armor Penetration}}%}}}}</span></div>| }}<!-- | -->{{#if: {{#var:Armor Penetration}} | <div style="order: 1;"> {{Translate|Armor Penetration|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Armor Penetration}}>0|{{c|+|+{{#var:Armor Penetration}}%}}|{{c|-|{{#var:Armor Penetration}}%}}}}</span></div>| }}<!-- |
Revision as of 18:52, 31 May 2023
This template has no documentation. If you know how to use this template, please add some.