Difference between revisions of "Template:Test test"

From Stoneshard wiki
Jump to navigation Jump to search
m
 
(7 intermediate revisions by the same user not shown)
Line 22: Line 22:
|Rings =  
|Rings =  
|#default = float:right;
|#default = float:right;
}}}}{{#switch: {{:Weapon_data|{{{1}}}|WeaponType}}
}}}}{{#ifeq: {{:Weapon_data|{{{1}}}}}|Data does not exist.||{{#vardefine:Datastring|{{:Weapon_data|{{{1}}}}}}}<!--
-->{{#switch: {{#explode: {{#var:Datastring}}|;|1}}
|Sword
|Sword
|Axe
|Axe
Line 38: Line 39:
<!--
<!--
--- WEAPON PROPERTIES ---
--- WEAPON PROPERTIES ---
-->{{#vardefine:Range|{{:Weapon_data|{{{1}}}|Range}}}}<!--
-->{{#vardefine:Range|{{#explode: {{#var:Datastring}}|;|8}}}}<!--
-->{{#vardefine:Armor Damage|{{:Weapon_data|{{{1}}}|Armor Damage}}}}<!--
-->{{#vardefine:Weapon Damage|{{#explode: {{#var:Datastring}}|;|9}}}}<!--
-->{{#vardefine:Armor Penetration|{{:Weapon_data|{{{1}}}|Armor Penetration}}}}<!--
-->{{#vardefine:Armor Damage|{{#explode: {{#var:Datastring}}|;|10}}}}<!--
-->{{#vardefine:Bodypart Damage|{{:Weapon_data|{{{1}}}|Bodypart Damage}}}}<!--
-->{{#vardefine:Armor Penetration|{{#explode: {{#var:Datastring}}|;|11}}}}<!--
-->{{#vardefine:Accuracy|{{:Weapon_data|{{{1}}}|Accuracy}}}}<!--
-->{{#vardefine:Bodypart Damage|{{#explode: {{#var:Datastring}}|;|12}}}}<!--
-->{{#vardefine:Magic Power|{{:Weapon_data|{{{1}}}|Magic Power}}}}<!--
-->{{#vardefine:Accuracy|{{#explode: {{#var:Datastring}}|;|26}}}}<!--
-->{{#vardefine:Crit Chance|{{:Weapon_data|{{{1}}}|Crit Chance}}}}<!--
-->{{#vardefine:Crit Chance|{{#explode: {{#var:Datastring}}|;|27}}}}<!--
-->{{#vardefine:Crit Efficiency|{{:Weapon_data|{{{1}}}|Crit Efficiency}}}}<!--
-->{{#vardefine:Crit Efficiency|{{#explode: {{#var:Datastring}}|;|28}}}}<!--
-->{{#vardefine:Block Chance|{{:Weapon_data|{{{1}}}|Block Chance}}}}<!--
-->{{#vardefine:Block Chance|{{#explode: {{#var:Datastring}}|;|29}}}}<!--
-->{{#vardefine:Block Power|{{:Weapon_data|{{{1}}}|Block Power}}}}<!--
-->{{#vardefine:Block Power|{{#explode: {{#var:Datastring}}|;|30}}}}<!--
-->{{#vardefine:Counter Chance|{{:Weapon_data|{{{1}}}|Counter Chance}}}}<!--
-->{{#vardefine:Counter Chance|{{#explode: {{#var:Datastring}}|;|31}}}}<!--
-->{{#vardefine:Fumble Chance|{{:Weapon_data|{{{1}}}|Fumble Chance}}}}<!--
-->{{#vardefine:Fumble Chance|{{#explode: {{#var:Datastring}}|;|32}}}}<!--
-->{{#vardefine:Dodge Chance|{{:Weapon_data|{{{1}}}|Dodge Chance}}}}<!--
-->{{#vardefine:Dodge Chance|{{#explode: {{#var:Datastring}}|;|33}}}}<!--
-->{{#vardefine:Bleed Chance|{{:Weapon_data|{{{1}}}|Bleed Chance}}}}<!--
-->{{#vardefine:Bleed Chance|{{#explode: {{#var:Datastring}}|;|34}}}}<!--
-->{{#vardefine:Daze Chance|{{:Weapon_data|{{{1}}}|Daze Chance}}}}<!--
-->{{#vardefine:Daze Chance|{{#explode: {{#var:Datastring}}|;|35}}}}<!--
-->{{#vardefine:Stun Chance|{{:Weapon_data|{{{1}}}|Stun Chance}}}}<!--
-->{{#vardefine:Stun Chance|{{#explode: {{#var:Datastring}}|;|36}}}}<!--
-->{{#vardefine:Knockback Chance|{{:Weapon_data|{{{1}}}|Knockback Chance}}}}<!--
-->{{#vardefine:Knockback Chance|{{#explode: {{#var:Datastring}}|;|37}}}}<!--
-->{{#vardefine:Immobilization Chance|{{:Weapon_data|{{{1}}}|Immobilization Chance}}}}<!--
-->{{#vardefine:Immobilization Chance|{{#explode: {{#var:Datastring}}|;|38}}}}<!--
-->{{#vardefine:Stagger Chance|{{:Weapon_data|{{{1}}}|Stagger Chance}}}}<!--
-->{{#vardefine:Stagger Chance|{{#explode: {{#var:Datastring}}|;|39}}}}<!--
-->{{#vardefine:Energy|{{:Weapon_data|{{{1}}}|Energy}}}}<!--
-->{{#vardefine:Energy|{{#explode: {{#var:Datastring}}|;|40}}}}<!--
-->{{#vardefine:Energy Restoration|{{:Weapon_data|{{{1}}}|Energy Restoration}}}}<!--
-->{{#vardefine:Energy Restoration|{{#explode: {{#var:Datastring}}|;|41}}}}<!--
-->{{#vardefine:Skills Energy Cost|{{:Weapon_data|{{{1}}}|Skills Energy Cost}}}}<!--
-->{{#vardefine:Cooldowns Duration|{{#explode: {{#var:Datastring}}|;|42}}}}<!--
-->{{#vardefine:Spells Energy Cost|{{:Weapon_data|{{{1}}}|Spells Energy Cost}}}}<!--
-->{{#vardefine:Skills Energy Cost|{{#explode: {{#var:Datastring}}|;|43}}}}<!--
-->{{#vardefine:Cooldowns Duration|{{:Weapon_data|{{{1}}}|Cooldowns Duration}}}}<!--
-->{{#vardefine:Spells Energy Cost|{{#explode: {{#var:Datastring}}|;|44}}}}<!--
-->{{#vardefine:Arcanistic Power|{{:Weapon_data|{{{1}}}|Arcanistic Power}}}}<!--
-->{{#vardefine:Magic Power|{{#explode: {{#var:Datastring}}|;|45}}}}<!--
-->{{#vardefine:Astromantic Power|{{:Weapon_data|{{{1}}}|Astromantic Power}}}}<!--
-->{{#vardefine:Backfire Chance|{{#explode: {{#var:Datastring}}|;|46}}}}<!--
-->{{#vardefine:Chronomantic Power|{{:Weapon_data|{{{1}}}|Chronomantic Power}}}}<!--
-->{{#vardefine:Miracle Chance|{{#explode: {{#var:Datastring}}|;|47}}}}<!--
-->{{#vardefine:Cryomantic Power|{{:Weapon_data|{{{1}}}|Cryomantic Power}}}}<!--
-->{{#vardefine:Miracle Potency|{{#explode: {{#var:Datastring}}|;|48}}}}<!--
-->{{#vardefine:Electromantic Power|{{:Weapon_data|{{{1}}}|Electromantic Power}}}}<!--
-->{{#vardefine:Backfire Damage|{{#explode: {{#var:Datastring}}|;|49}}}}<!--
-->{{#vardefine:Geomantic Power|{{:Weapon_data|{{{1}}}|Geomantic Power}}}}<!--
-->{{#vardefine:Pyromantic Power|{{#explode: {{#var:Datastring}}|;|50}}}}<!--
-->{{#vardefine:Psionic Power|{{:Weapon_data|{{{1}}}|Psionic Power}}}}<!--
-->{{#vardefine:Geomantic Power|{{#explode: {{#var:Datastring}}|;|51}}}}<!--
-->{{#vardefine:Pyromantic Power|{{:Weapon_data|{{{1}}}|Pyromantic Power}}}}<!--
-->{{#vardefine:Venomantic Power|{{#explode: {{#var:Datastring}}|;|52}}}}<!--
-->{{#vardefine:Venomantic Power|{{:Weapon_data|{{{1}}}|Venomantic Power}}}}<!--
-->{{#vardefine:Electromantic Power|{{#explode: {{#var:Datastring}}|;|53}}}}<!--
-->{{#vardefine:Health Restoration|{{:Weapon_data|{{{1}}}|Health Restoration}}}}<!--
-->{{#vardefine:Cryomantic Power|{{#explode: {{#var:Datastring}}|;|54}}}}<!--
-->{{#vardefine:Life Drain|{{:Weapon_data|{{{1}}}|Life Drain}}}}<!--
-->{{#vardefine:Arcanistic Power|{{#explode: {{#var:Datastring}}|;|55}}}}<!--
-->{{#vardefine:Energy Drain|{{:Weapon_data|{{{1}}}|Energy Drain}}}}<!--
-->{{#vardefine:Astromantic Power|{{#explode: {{#var:Datastring}}|;|56}}}}<!--
-->{{#vardefine:Bonus Range|{{:Weapon_data|{{{1}}}|Bonus Range}}}}<!--
-->{{#vardefine:Psionic Power|{{#explode: {{#var:Datastring}}|;|57}}}}<!--
-->{{#vardefine:Damage Taken|{{:Weapon_data|{{{1}}}|Damage Taken}}}}<!--
-->{{#vardefine:Chronomantic Power|{{#explode: {{#var:Datastring}}|;|58}}}}<!--
-->{{#vardefine:Damage Reflection|{{:Weapon_data|{{{1}}}|Damage Reflection}}}}<!--
-->{{#vardefine:Health Restoration|{{#explode: {{#var:Datastring}}|;|59}}}}<!--
-->{{#vardefine:Healing Efficiency|{{:Weapon_data|{{{1}}}|Healing Efficiency}}}}<!--
-->{{#vardefine:Life Drain|{{#explode: {{#var:Datastring}}|;|60}}}}<!--
-->{{#vardefine:Noise Produced|{{:Weapon_data|{{{1}}}|Noise Produced}}}}<!--
-->{{#vardefine:Energy Drain|{{#explode: {{#var:Datastring}}|;|61}}}}<!--
-->{{#vardefine:Stealth|{{:Weapon_data|{{{1}}}|Stealth}}}}<!--
-->{{#vardefine:Bonus Range|{{#explode: {{#var:Datastring}}|;|62}}}}<!--
-->{{#vardefine:Backfire Chance|{{:Weapon_data|{{{1}}}|Backfire Chance}}}}<!--
-->{{#vardefine:Range Modifier|{{#explode: {{#var:Datastring}}|;|63}}}}<!--
-->{{#vardefine:Backfire Damage|{{:Weapon_data|{{{1}}}|Backfire Damage}}}}<!--
-->{{#vardefine:Damage Taken|{{#explode: {{#var:Datastring}}|;|64}}}}<!--
-->{{#vardefine:Miracle Chance|{{:Weapon_data|{{{1}}}|Miracle Chance}}}}<!--
-->{{#vardefine:Damage Reflection|{{#explode: {{#var:Datastring}}|;|65}}}}<!--
-->{{#vardefine:Miracle Potency|{{:Weapon_data|{{{1}}}|Miracle Potency}}}}
-->{{#vardefine:Healing Efficiency|{{#explode: {{#var:Datastring}}|;|66}}}}<!--
}}{{#switch: {{:Consumable_data|{{{1}}}|ItemType}}
-->{{#vardefine:Stealth|{{#explode: {{#var:Datastring}}|;|67}}}}<!--
-->{{#vardefine:Noise Produced|{{#explode: {{#var:Datastring}}|;|68}}}}
}}}}{{#switch: {{:Consumable_data|{{{1}}}|ItemType}}
|Food
|Food
|Beverages
|Beverages
Line 123: Line 126:
-->{{#vardefine:Max Health|{{:Consumable_data|{{{1}}}|Max Health}}}}
-->{{#vardefine:Max Health|{{:Consumable_data|{{{1}}}|Max Health}}}}
}}<!--
}}<!--
--- Load complete datastring into a variable - to only load from the Enemy data page once. ---
--- Load complete datastring into a variable - to only load from the Armor data page once. ---
-->{{#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 199: 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 246: 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;"> {{Translate|Range|Properties}}: <span style="{{#var:FloatRight}}">{{#ifexpr:{{#var:Range}}>0|{{c|+|+{{#var:Range}}%}}|{{c|-|{{#var:Range}}%}}}}</span></div>| }}<!--
-->{{#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.