Difference between revisions of "Template:Curse"

From Co-Optitude Wiki
Jump to navigation Jump to search
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:{{#sub:{{{1}}}|0|{{#var:cursePrefixLen}}}}}}
+
{{#vardefine:cursePrefix|{{#sub:{{{1}}}|0|{{#var:cursePrefixLen}}}}}}
{{#vardefine:curseSuffix:{{#sub:{{{1}}}|-{{#var:curseSuffixLen}}}}}}
+
{{#vardefine:curseSuffix|{{#sub:{{{1}}}|-{{#var:curseSuffixLen}}}}}}
{{#vardefine:curseMiddle:{{#sub:{{{1}}}|{{#var:cursePrefixLen}}|-{{#var:curseSuffixLen}}}}}}
+
{{#vardefine:curseMiddle|{{#sub:{{{1}}}|{{#var:cursePrefixLen}}|-{{#var:curseSuffixLen}}}}}}
  
 
* 1 = {{{1}}}
 
* 1 = {{{1}}}

Revision as of 10:05, 4 April 2020

Usage example:

{{Curse|heck}}