Difference between revisions of "Template:Curse"
Jump to navigation
Jump to search
Rocketsoup (talk | contribs) |
Rocketsoup (talk | contribs) |
||
Line 10: | Line 10: | ||
{{#vardefine:curseSuffixLen|1}} | {{#vardefine:curseSuffixLen|1}} | ||
{{#ifeq:{{#sub:{{#var:curseLower}}|-3}}|ing|{{#vardefine:curseSuffixLen|3}}}} | {{#ifeq:{{#sub:{{#var:curseLower}}|-3}}|ing|{{#vardefine:curseSuffixLen|3}}}} | ||
− | {{#vardefine:cursePrefix | + | {{#vardefine:cursePrefix|{{#sub:{{{1}}}|0|{{#var:cursePrefixLen}}}}}} |
− | {{#vardefine:curseSuffix | + | {{#vardefine:curseSuffix|{{#sub:{{{1}}}|-{{#var:curseSuffixLen}}}}}} |
− | {{#vardefine:curseMiddle | + | {{#vardefine:curseMiddle|{{#sub:{{{1}}}|{{#var:cursePrefixLen}}|-{{#var:curseSuffixLen}}}}}} |
* 1 = {{{1}}} | * 1 = {{{1}}} |
Revision as of 10:05, 4 April 2020
Usage example:
{{Curse|heck}}