Difference between revisions of "Template:Test"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(flex layout works, added spacer)
 
m (bonus range shouldn't have %)
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="display: flex;flex-direction:column;">
<includeonly>{{#vardefine:FloatRight|{{#switch: {{ROOTPAGENAME}}
{{#switch: {{Properties_sort|{{:{{{1}}}|Properties1}}}}
|Swords
|Propertygrp1 = <div style="order: 1;">
|Axes
|Propertygrp2 = <div style="order: 2;">
|Maces
|Propertygrp3 = <div style="order: 3;">
|Daggers
|Propertygrp4 = <div style="order: 4;">
|Wands
|Propertygrp5 = <div style="order: 5;">
|Bows
|Propertygrp6 = <div style="order: 6;">
|Crossbows
|Propertygrp7 = <div style="order: 7;">
|Two-Handed Swords
|Propertygrp8 = <div style="order: 8;">
|Two-Handed Axes
|Propertygrp9 = <div style=
|Two-Handed Maces
|Spears
|Staves
|Headgear
|Chestpieces
|Gloves
|Belts
|Boots
|Shields
|Cloaks
|Amulets
|Rings
|Tools & Traps =
|#default = float:right;
}}}}{{#ifeq: {{:Weapon_data|{{{1}}}}}|Data does not exist.||{{#vardefine:Datastring|{{:Weapon_data|{{{1}}}}}}}<!--
-->{{#switch: {{#explode: {{#var:Datastring}}|;|1}}
|Sword
|Axe
|Mace
|Dagger
|Two-handed Sword
|Spear
|Two-handed Axe
|Two-handed Mace
|Bow
|Crossbow
|Staff
|Tool
|Lute =
<!--
--- WEAPON PROPERTIES ---
-->{{#vardefine:Range|{{#explode: {{#var:Datastring}}|;|8}}}}<!--
-->{{#vardefine:Weapon Damage|{{#explode: {{#var:Datastring}}|;|9}}}}<!--
-->{{#vardefine:Armor Damage|{{#explode: {{#var:Datastring}}|;|10}}}}<!--
-->{{#vardefine:Armor Penetration|{{#explode: {{#var:Datastring}}|;|11}}}}<!--
-->{{#vardefine:Bodypart Damage|{{#explode: {{#var:Datastring}}|;|12}}}}<!-

Latest revision as of 21:45, 20 June 2023

This template has no documentation. If you know how to use this template, please add some.