Difference between revisions of "Template:Curse"
Jump to navigation
Jump to search
Rocketsoup (talk | contribs) |
Rocketsoup (talk | contribs) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
-->{{#vardefine:curseLower|{{lc:{{{1}}}}}}}<!-- | -->{{#vardefine:curseLower|{{lc:{{{1}}}}}}}<!-- | ||
-->{{#vardefine:cursePrefixLen|1}}<!-- | -->{{#vardefine:cursePrefixLen|1}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|0|7}}|motherf|{{#vardefine:cursePrefixLen|7}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|0|6}}|bullsh|{{#vardefine:cursePrefixLen|6}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|0|5}}|dumbf|{{#vardefine:cursePrefixLen|5}}}}<!-- | ||
-->{{#ifeq:{{#sub:{{#var:curseLower}}|0|2}}|sh|{{#vardefine:cursePrefixLen|2}}}}<!-- | -->{{#ifeq:{{#sub:{{#var:curseLower}}|0|2}}|sh|{{#vardefine:cursePrefixLen|2}}}}<!-- | ||
-->{{#vardefine:curseSuffixLen|1}}<!-- | -->{{#vardefine:curseSuffixLen|1}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-7}}|goddamn|{{#vardefine:curseSuffixLen|4}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-4}}|head|{{#vardefine:curseSuffixLen|4}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-4}}|hole|{{#vardefine:curseSuffixLen|4}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-4}}|face|{{#vardefine:curseSuffixLen|4}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-4}}|shit|{{#vardefine:curseSuffixLen|0}}}}<!-- | ||
-->{{#ifeq:{{#sub:{{#var:curseLower}}|-3}}|ing|{{#vardefine:curseSuffixLen|3}}}}<!-- | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-3}}|ing|{{#vardefine:curseSuffixLen|3}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-3}}|est|{{#vardefine:curseSuffixLen|3}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-3}}|ass|{{#vardefine:curseSuffixLen|0}}}}<!-- | ||
+ | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|ch|{{#vardefine:curseSuffixLen|2}}}}<!-- | ||
-->{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|ed|{{#vardefine:curseSuffixLen|2}}}}<!-- | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|ed|{{#vardefine:curseSuffixLen|2}}}}<!-- | ||
-->{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|er|{{#vardefine:curseSuffixLen|2}}}}<!-- | -->{{#ifeq:{{#sub:{{#var:curseLower}}|-2}}|er|{{#vardefine:curseSuffixLen|2}}}}<!-- | ||
-->{{#ifeq:{{#var:curseLower}}|shit|{{#vardefine:curseSuffixLen|0}}}}<!-- | -->{{#ifeq:{{#var:curseLower}}|shit|{{#vardefine:curseSuffixLen|0}}}}<!-- | ||
-->{{#vardefine:cursePrefix|{{#sub:{{{1}}}|0|{{#var:cursePrefixLen}}}}}}<!-- | -->{{#vardefine:cursePrefix|{{#sub:{{{1}}}|0|{{#var:cursePrefixLen}}}}}}<!-- | ||
− | -->{{#vardefine:curseSuffix|{{# | + | -->{{#vardefine:curseSuffix|{{#ifeq:{{#var:curseSuffixLen}}|0||{{#sub:{{{1}}}|{{#expr:-1*{{#var:curseSuffixLen}}}}}}}}}}<!-- |
-->{{#vardefine:curseMiddle|{{#sub:{{{1}}}|{{#var:cursePrefixLen}}|{{#expr:-1*{{#var:curseSuffixLen}}}}}}}}<!-- | -->{{#vardefine:curseMiddle|{{#sub:{{{1}}}|{{#var:cursePrefixLen}}|{{#expr:-1*{{#var:curseSuffixLen}}}}}}}}<!-- | ||
− | + | Debug: | |
* 1 = {{{1}}} | * 1 = {{{1}}} | ||
* curseLower = {{#var:curseLower}} | * curseLower = {{#var:curseLower}} | ||
Line 24: | Line 35: | ||
* curseMiddle = {{#var:curseMiddle}} | * curseMiddle = {{#var:curseMiddle}} | ||
* curseSuffix = {{#var:curseSuffix}} | * curseSuffix = {{#var:curseSuffix}} | ||
− | |||
--><span class="rsCurse"><!-- | --><span class="rsCurse"><!-- | ||
--><span class="rsCursePrefix">{{#var:cursePrefix}}</span><!-- | --><span class="rsCursePrefix">{{#var:cursePrefix}}</span><!-- |
Latest revision as of 19:43, 9 May 2020
Usage example:
{{Curse|heck}}