Template:Str endswith/doc
Jump to navigation
Jump to search
{{#invoke:Message box|mbox}} {{#invoke:Lua banner|main}}
This is the {{str endswith}} meta-template.
It returns "yes" if the first parameter ends with the second parameter. Both parameters are trimmed before use.
Examples
{{str endswith|foo (bar)|(bar)}}
→{{str endswith|foo|bar}}
→{{str endswith|(bar)|foo (bar)}}
→{{str endswith|foo bar | bar}}
→
- border cases
{{str endswith}}
→{{str endswith||}}
→{{str endswith|| }}
→{{str endswith| |}}
→
See also
{{#invoke:Navbox|navbox}}