Difference between revisions of "Template:Test test"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
|Rings = | |Rings = | ||
|#default = float:right; | |#default = float:right; | ||
}}}}{{#ifeq: {{: | }}}}{{#ifeq: {{:Weapon_data|{{{1}}}}}|Data does not exist.||{{#vardefine:Datastring|{{:Weapon_data|{{{1}}}}}}}<!-- | ||
-->{{#switch: {{#explode: {{#var:Datastring}}|;|1}} | -->{{#switch: {{#explode: {{#var:Datastring}}|;|1}} | ||
|Sword | |Sword | ||
Line 44: | Line 44: | ||
-->{{#vardefine:Armor Penetration|{{#explode: {{#var:Datastring}}|;|11}}}}<!-- | -->{{#vardefine:Armor Penetration|{{#explode: {{#var:Datastring}}|;|11}}}}<!-- | ||
-->{{#vardefine:Bodypart Damage|{{#explode: {{#var:Datastring}}|;|12}}}}<!-- | -->{{#vardefine:Bodypart Damage|{{#explode: {{#var:Datastring}}|;|12}}}}<!-- | ||
-->{{#vardefine:Accuracy|{{#explode: {{#var:Datastring}}|;|26}}}<!-- | -->{{#vardefine:Accuracy|{{#explode: {{#var:Datastring}}|;|26}}}}<!-- | ||
-->{{#vardefine:Crit Chance|{{#explode: {{#var:Datastring}}|;|27}}}}<!-- | -->{{#vardefine:Crit Chance|{{#explode: {{#var:Datastring}}|;|27}}}}<!-- | ||
-->{{#vardefine:Crit Efficiency|{{#explode: {{#var:Datastring}}|;|28}}}}<!-- | -->{{#vardefine:Crit Efficiency|{{#explode: {{#var:Datastring}}|;|28}}}}<!-- | ||
Line 65: | Line 65: | ||
-->{{#vardefine:Magic Power|{{#explode: {{#var:Datastring}}|;|45}}}}<!-- | -->{{#vardefine:Magic Power|{{#explode: {{#var:Datastring}}|;|45}}}}<!-- | ||
-->{{#vardefine:Backfire Chance|{{#explode: {{#var:Datastring}}|;|46}}}}<!-- | -->{{#vardefine:Backfire Chance|{{#explode: {{#var:Datastring}}|;|46}}}}<!-- | ||
-->{{#vardefine:Miracle Chance|{{#explode: {{#var:Datastring}}|;47}}}}<!-- | -->{{#vardefine:Miracle Chance|{{#explode: {{#var:Datastring}}|;|47}}}}<!-- | ||
-->{{#vardefine:Miracle Potency|{{#explode: {{#var:Datastring}}|;|48}}}}<!-- | -->{{#vardefine:Miracle Potency|{{#explode: {{#var:Datastring}}|;|48}}}}<!-- | ||
-->{{#vardefine:Backfire Damage|{{#explode: {{#var:Datastring}}|;|49}}}}<!-- | -->{{#vardefine:Backfire Damage|{{#explode: {{#var:Datastring}}|;|49}}}}<!-- | ||
Line 86: | Line 86: | ||
-->{{#vardefine:Healing Efficiency|{{#explode: {{#var:Datastring}}|;|66}}}}<!-- | -->{{#vardefine:Healing Efficiency|{{#explode: {{#var:Datastring}}|;|66}}}}<!-- | ||
-->{{#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>| }}<!-- | ||
Line 249: | Line 249: | ||
-->{{#if: {{#var:Counter Chance}} | <div style="order: 77;"> {{Translate|Counter Chance|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Counter Chance}}>0|{{c|+|+{{#var:Counter Chance}}%}}|{{c|-|{{#var:Counter Chance}}%}}}}</span></div>| }}<!-- | -->{{#if: {{#var:Counter Chance}} | <div style="order: 77;"> {{Translate|Counter Chance|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Counter Chance}}>0|{{c|+|+{{#var:Counter Chance}}%}}|{{c|-|{{#var:Counter Chance}}%}}}}</span></div>| }}<!-- | ||
-->{{#if: {{#var:Fumble Chance}} | <div style="order: 78;"> {{Translate|Fumble Chance|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Fumble Chance}}>0|{{c|-|{{#var:Fumble Chance}}%}}|{{c|+|+{{#var:Fumble Chance}}%}}}}</span></div>| }}<!-- | -->{{#if: {{#var:Fumble Chance}} | <div style="order: 78;"> {{Translate|Fumble Chance|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Fumble Chance}}>0|{{c|-|{{#var:Fumble Chance}}%}}|{{c|+|+{{#var:Fumble Chance}}%}}}}</span></div>| }}<!-- | ||
-->{{#if: {{#var:Range}} | <div style="order: 79; | -->{{#if: {{#var:Range}} | <div style="order: 79;"> {{#ifexpr: {{#var:Range}}>1|{{Translate|Range|Properties}}: <span style="{{#var:FloatRight}}">{{c|W|{{#var:Range}}}}</span>}}</div>| }}<!-- | ||
-->{{#if: {{#var:Dodge Chance}} | <div style="order: 80;"> {{Translate|Dodge Chance|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Dodge Chance}}>0|{{c|+|+{{#var:Dodge Chance}}%}}|{{c|-|{{#var:Dodge Chance}}%}}}}</span></div>| }}<!-- | -->{{#if: {{#var:Dodge Chance}} | <div style="order: 80;"> {{Translate|Dodge Chance|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Dodge Chance}}>0|{{c|+|+{{#var:Dodge Chance}}%}}|{{c|-|{{#var:Dodge Chance}}%}}}}</span></div>| }}<!-- | ||
-->{{#if: {{#var:Damage Taken}} | <div style="order: 81;"> {{Translate|Damage Taken|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Damage Taken}}>0|{{c|-|+{{#var:Damage Taken}}%}}|{{c|+|{{#var:Damage Taken}}%}}}}</span></div>| }}<!-- | -->{{#if: {{#var:Damage Taken}} | <div style="order: 81;"> {{Translate|Damage Taken|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Damage Taken}}>0|{{c|-|+{{#var:Damage Taken}}%}}|{{c|+|{{#var:Damage Taken}}%}}}}</span></div>| }}<!-- |
Latest revision as of 19:29, 31 May 2023
This template has no documentation. If you know how to use this template, please add some.