Difference between revisions of "Template:Str endswith"

From [YSDC] Into The Deep
Jump to: navigation, search
(New template)
 
 
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: {{str left |nocategory={{{nocategory|}}} |{{{1|}}}|{{#expr:{{str len |nocategory={{{nocategory|}}} |{{{1|}}}}}-{{str len |nocategory={{{nocategory|}}} |{{{2|}}}}}}}}}{{trim |nocategory={{{nocategory|}}} |{{{2|}}}}} | {{trim |nocategory={{{nocategory|}}} |{{{1|}}}}}
 
   | yes
 
   | yes
 
}}<noinclude>
 
}}<noinclude>
  
 
</noinclude>
 
</noinclude>

Latest revision as of 10:08, 12 July 2012

{{#ifeq: {{ safesubst:#if:1|}} | {{ safesubst:#if:1|}}

 | yes

}}