Difference between revisions of "Template:Test"
Jump to navigation
Jump to search
old>Realpsojed (testing new properties template) |
(updated consumable datastrings to 0.9.3.9) |
||
| (69 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<!-- | |||
--- If we're NOT on a page from this list, define the variable that will float values to the right. --- | |||
--><includeonly>{{#vardefine:FloatRight|{{#switch: {{ROOTPAGENAME}} | |||
|Swords | |||
|Axes | |||
|Maces | |||
|Daggers | |||
|Wands | |||
|Bows | |||
|Crossbows | |||
|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.