Difference between revisions of "Template:Curse"
Jump to navigation
Jump to search
Rocketsoup (talk | contribs) |
Rocketsoup (talk | contribs) |
||
Line 5: | Line 5: | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
− | <includeonly>{{#vardefine:curseLower|{{lc:{{{1}}}}}}}{{#vardefine:cursePrefixLen|1}}{{#ifeq:{{#sub:{{#var:curseLower}}|0|2}}|sh|{{#vardefine:cursePrefixLen|2}}}}{{#vardefine:curseSuffixLen|1}}{{#ifeq:{{#sub:{{#var:curseLower}}|-3}}|ing|{{#vardefine:curseSuffixLen|3}}}}{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|ed|{{#vardefine:curseSuffixLen|2}}}}{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|er|{{#vardefine:curseSuffixLen|2}}}}{{#ifeq:{{#var:curseLower}}|shit|{{#vardefine:curseSuffixLen|0}}}}{{#vardefine:cursePrefix|{{#sub:{{{1}}}|0|{{#var:cursePrefixLen}}}}}}{{#vardefine:curseSuffix|{{#sub:{{{1}}}|-{{#var:curseSuffixLen}}}}}}{{#vardefine:curseMiddle|{{#sub:{{{1}}}|{{#var:cursePrefixLen}}|-{{#var:curseSuffixLen}}}}}}<span class="rsCurse"><span class="rsCursePrefix">{{#var:cursePrefix}}</span><span class="rsCurseMiddle">{{#var:curseMiddle}}</span><span class="rsCurseSuffix">{{#var:curseSuffix}}</span></span></includeonly> | + | <includeonly>{{#vardefine:curseLower|{{lc:{{{1}}}}}}}{{#vardefine:cursePrefixLen|1}}{{#ifeq:{{#sub:{{#var:curseLower}}|0|2}}|sh|{{#vardefine:cursePrefixLen|2}}}}{{#vardefine:curseSuffixLen|1}}{{#ifeq:{{#sub:{{#var:curseLower}}|-3}}|ing|{{#vardefine:curseSuffixLen|3}}}}{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|ed|{{#vardefine:curseSuffixLen|2}}}}{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|er|{{#vardefine:curseSuffixLen|2}}}}{{#ifeq:{{#var:curseLower}}|shit|{{#vardefine:curseSuffixLen|0}}}}{{#vardefine:cursePrefix|{{#sub:{{{1}}}|0|{{#var:cursePrefixLen}}}}}}{{#vardefine:curseSuffix|{{#sub:{{{1}}}|{{#expr:-1*{{#var:curseSuffixLen}}}}}}}}{{#vardefine:curseMiddle|{{#sub:{{{1}}}|{{#var:cursePrefixLen}}|{{#expr:-1*{{#var:curseSuffixLen}}}}}}}}<span class="rsCurse"><span class="rsCursePrefix">{{#var:cursePrefix}}</span><span class="rsCurseMiddle">{{#var:curseMiddle}}</span><span class="rsCurseSuffix">{{#var:curseSuffix}}</span></span></includeonly> |
Revision as of 10:10, 4 April 2020
Usage example:
{{Curse|heck}}