Difference between revisions of "Template:Test"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(flex layout works, added spacer)
 
(updated consumable datastrings to 0.9.3.9)
 
(71 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="display: flex;flex-direction:column;">
<!--
{{#switch: {{Properties_sort|{{:{{{1}}}|Properties1}}}}
--- If we're NOT on a page from this list, define the variable that will float values to the right. ---
|Propertygrp1 = <div style="order: 1;">
--><includeonly>{{#vardefine:FloatRight|{{#switch: {{ROOTPAGENAME}}
|Propertygrp2 = <div style="order: 2;">
|Swords
|Propertygrp3 = <div style="order: 3;">
|Axes
|Propertygrp4 = <div style="order: 4;">
|Maces
|Propertygrp5 = <div style="order: 5;">
|Daggers
|Propertygrp6 = <div style="order: 6;">
|Wands
|Propertygrp7 = <div style="order: 7;">
|Bows
|Propertygrp8 = <div style="order: 8;">
|Crossbows
|Propertygrp9 = <div style=
|Two-Handed Swords
|Two-Handed Axes
|Two-Handed Maces
|Spears
|Staves
|Headgear
|Chestpieces
|Gloves
|Belts
|Boots
|Shields
|Cloaks
|Amulets
|Rings
|Tools & Traps =
|#default = float:right;
}}}}<!--
--- Load complete datastring into a variable - only load from the Weapon data page once. ---
-->{{#ifeq: {{:Weapon_data|{{{1}}}}}|Data does not exist.||{{#vardefine:Datastring|{{:Weapon_data|{{{1}}}}}}}<!--
--- This template doesn't use Description, remove it for smaller size ---
-->{{#vardefine:Datastring|{{#sub:{{#var:Datastring}}|0|{{#expr: {{#len:{{#var:Datastring}}}} - {{#len:{{#explode: {{#var:Datastring}}|;|-1}}}}}}}}}}<!--
--- Only define variables for items in categories that have item properties. ---
-->{{#switch: {{ucfirst:{{#explode: {{#var:Datastring}}|;|2}}}}
|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}}}}<!--

Latest revision as of 01:41, 3 September 2025

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