Difference between revisions of "Template:Test"
Jump to navigation
Jump to search
m |
(switch to uppercase first letter in category recognition) |
||
| 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}}}}}}}}}}<!-- | ||
-->{{#switch: {{#explode: {{#var:Datastring}}|;|2}} | -->{{#switch: {{ucfirst:{{#explode: {{#var:Datastring}}|;|2}}}} | ||
|Sword | |Sword | ||
|Axe | |Axe | ||
| Line 95: | Line 95: | ||
--- 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}}}} ) }}}}}}<!-- | ||
-->{{#switch: {{#explode: {{#var:Datastring}}|§|3}} | -->{{#switch: {{ucfirst:{{#explode: {{#var:Datastring}}|§|3}}}} | ||
|Food | |Food | ||
|Beverages | |Beverages | ||
| Line 167: | Line 167: | ||
--- 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}}}}}}}}}}<!-- | ||
-->{{#switch: {{#explode: {{#var:Datastring}}|;|2}} | -->{{#switch: {{ucfirst:{{#explode: {{#var:Datastring}}|;|2}}}} | ||
|Shield | |Shield | ||
|Headgear | |Headgear | ||
Revision as of 23:27, 28 January 2025
This template has no documentation. If you know how to use this template, please add some.