Difference between revisions of "Stratonian"

m
m
Line 1: Line 1:
{{#vardefineecho:text|hello: world}}<br><br>
+
{{#vardefine:profession|Butchery}}
{{#if:{{#pos:{{#var:text}}|:}}<!-- if ':' is in the text
+
 
-->|{{ucfirst:{{#explode:{{#var:text}}|:|0}}}}<!-- format string before ':'
+
{{#if:{{#ask:[[Category:Gathering Professions]][[{{#var:profession}}]]}}<!-- if the profession is a gathering profession
-->:{{sc|{{#sub:{{#var:text}}|{{#expr:{{#pos:{{#var:text}}|:}}+1}}}}}}<!-- format string after ':'
+
-->|[[Category:{{#var:profession}} Raw Materials]]}}
-->|{{sc|{{#var:text}}}}}}<!-- else format as normal -->
 

Revision as of 22:48, 30 August 2023