Difference between revisions of "Template:Curse"

From Co-Optitude Wiki
Jump to navigation Jump to search
Line 13: Line 13:
 
{{#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}}}}}}
<span class="rsCurse"><span class="rsCursePrefix">{{#var:cursePrefix}}</span><span class="rsCurseMiddle">{{#var:curseMiddle}}</span><span class="rsCurseSuffix">{{#var:curseSuffix}}</span>
+
 
 +
* 1 = {{{1}}}
 +
* curseLower = {{#var:curseLower}}
 +
* cursePrefixLen = {{#var:cursePrefixLen}}
 +
* curseSuffixLen = {{#var:curseSuffixLen}}
 +
* cursePrefix = {{#var:cursePrefix}}
 +
* curseMiddle = {{#var:curseMiddle}}
 +
* curseSuffix = {{#var:curseSuffix}}
 +
 
 +
<span class="rsCurse"><span class="rsCursePrefix">{{#var:cursePrefix}}</span><span class="rsCurseMiddle">{{#var:curseMiddle}}</span><span class="rsCurseSuffix">{{#var:curseSuffix}}</span></span>
 
</includeonly>
 
</includeonly>

Revision as of 10:04, 4 April 2020

Usage example:

{{Curse|heck}}