Open main menu

Difference between revisions of "Template:Str endswith"

en>SkyLined
(|nocategory={{{nocategory|}}} to allow pages to have errors but not end of up in the pages with errors category.)
m (12 revisions imported)
 
(8 intermediate revisions by 7 users not shown)
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:{{{1|a}}}{{{2|a}}}|{{{1|b}}}{{{2|b}}}|{{#invoke:String|endswith|source={{{1}}}|pattern={{{2}}} }}|yes<!--backward compatibility -->}}<noinclude>
  | yes
 
}}<noinclude>
 
 
 
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 01:25, 10 September 2019

{{#ifeq:aa|bb||yes}}

50px Template documentation[create]