Template:Str endswith: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>AGK
m Protected Template:Str endswith: Highly-visible template (over 1000 transclusions) (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite))
meta>Wikid77
changed from Template:Str_left to use {padleft:| len(1) - len(2) |{1} }, to reduce expansion depth to 14 levels from 16.
Line 1: Line 1:
{{#ifeq: {{str left |nocategory={{{nocategory|}}} |{{{1|}}}|{{#expr:{{str len |nocategory={{{nocategory|}}} |{{{1|}}}}}-{{str len |nocategory={{{nocategory|}}} |{{{2|}}}}}}}}}{{str trim |nocategory={{{nocategory|}}} |{{{2|}}}}} | {{str trim |nocategory={{{nocategory|}}} |{{{1|}}}}}
{{#ifeq: {{padleft:|{{#expr:{{str len |nocategory={{{nocategory|}}} |{{{1|Abcdef}}}}}-{{str len |nocategory={{{nocategory|}}} |{{{2|ef}}}}} }}|{{{1|Abcdef}}} }}{{str trim |nocategory={{{nocategory|}}} |{{{2|ef}}}}} | {{str trim |nocategory={{{nocategory|}}} |{{{1|Abcdef}}}}}
   | yes
   | yes
}}<noinclude>
}}<noinclude>
{{documentation}}
{{documentation}}


<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 04:10, 8 September 2012