Template:Str endswith: Difference between revisions
m
trim input
m>Amalthea (create template; return "yes" if the first parameter string ends with the second parameter string.) |
m>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> |