Difference between revisions of "Template:Test"
Jump to navigation
Jump to search
m (removed extra plus sign for Fatigue Change) |
(update consumable categories that have item properties used in this template. Other categories don't have them, but there are a few exceptions in those categories. TBD later) |
||
| Line 30: | Line 30: | ||
--- This template doesn't use Description, remove it for smaller size --- | --- 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}}}}}}}}}}<!-- | -->{{#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}}}} | -->{{#switch: {{ucfirst:{{#explode: {{#var:Datastring}}|;|2}}}} | ||
|Sword | |Sword | ||
| Line 95: | Line 96: | ||
--- This template doesn't use Description or MiddleText, remove it for smaller size --- | --- This template doesn't use Description or MiddleText, remove it for smaller size --- | ||
-->{{#vardefine:Datastring|{{#sub:{{#var:Datastring}}|0|{{#expr: {{#len:{{#var:Datastring}}}} - (1 + {{#len:{{#explode: {{#var:Datastring}}|§|-1}}}} + {{#len:{{#explode: {{#var:Datastring}}|§|-2}}}} ) }}}}}}<!-- | -->{{#vardefine:Datastring|{{#sub:{{#var:Datastring}}|0|{{#expr: {{#len:{{#var:Datastring}}}} - (1 + {{#len:{{#explode: {{#var:Datastring}}|§|-1}}}} + {{#len:{{#explode: {{#var:Datastring}}|§|-2}}}} ) }}}}}}<!-- | ||
--- Only define variables for items in categories that have item properties. --- | |||
-->{{#switch: {{ucfirst:{{#explode: {{#var:Datastring}}|§|3}}}} | -->{{#switch: {{ucfirst:{{#explode: {{#var:Datastring}}|§|3}}}} | ||
|Additive | |||
|Alcohol | |||
|Beverage | |||
|Drug | |||
|Food | |Food | ||
|Ingredient | |Ingredient | ||
|Medicine | |Medicine = | ||
<!-- | <!-- | ||
--- CONSUMABLE PROPERTIES --- | --- CONSUMABLE PROPERTIES --- | ||
| Line 167: | Line 171: | ||
--- This template doesn't use Description, remove it for smaller size --- | --- 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}}}}}}}}}}<!-- | -->{{#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}}}} | -->{{#switch: {{ucfirst:{{#explode: {{#var:Datastring}}|;|2}}}} | ||
|Shield | |Shield | ||
Revision as of 23:22, 29 January 2025
This template has no documentation. If you know how to use this template, please add some.