Template:Str right: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>WOSlinker
m Protected Template:Str right: Highly visible template ([edit=sysop] (indefinite) [move=sysop] (indefinite))
meta>Dragons flight
Lua Implementation. This has some quirky rules, 0-based, etc...
Line 1: Line 1:
<includeonly>{{{{{|safesubst:}}}Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{{2}}}|{{{{{|safesubst:}}}#expr:{{{{{|safesubst:}}}Str len|nocategory={{{nocategory|}}}|{{{1}}}}}-{{{2}}}}}}}</includeonly><noinclude>
<includeonly>{{{{{|safesubst:}}}#ifexpr: {{{2|0}}} < 0
|{{{1}}}  
|{{{{{|safesubst:}}}#ifexpr: {{{2|0}}}+1 > {{{{{|safesubst:}}}#invoke:String|len|s={{{1}}}}} | |
{{{{{|safesubst:}}}#Invoke:String|sub|s={{{1}}}|{{{{{|safesubst:}}}#expr:{{{2|0}}}+1}}|nocategory={{{nocategory|}}}}} }}
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 04:04, 25 February 2013