Difference between revisions of "Template:Str endswith"

From MINR.ORG WIKI
m (Protected Template:Str endswith: Highly-visible template (over 1000 transclusions) (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
(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 06:10, 8 September 2012

yes

Template documentation[create]