Difference between revisions of "Template:Str endswith"
Jump to navigation
Jump to search
en>Amalthea (create template; return "yes" if the first parameter string ends with the second parameter string.) |
en>Amalthea m (trim input) |
||
| Line 1: | Line 1: | ||
| − | {{#ifeq: {{str left|{{{1|}}}|{{#expr:{{str len|{{{1|}}}}}-{{str len|{{{2|}}}}}}}}}{{{2|}}} | {{{1|}}} | + | {{#ifeq: {{str left|{{{1|}}}|{{#expr:{{str len|{{{1|}}}}}-{{str len|{{{2|}}}}}}}}}{{{str trim|{{{2|}}}}} | {{str trim|{{{1|}}}}} |
| yes | | yes | ||
}}<noinclude> | }}<noinclude> | ||
Revision as of 13:02, 19 May 2009
{{#ifeq: {Template:Str trim | Template:Str trim
| yes
}}
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |