Template:Str endswith
Jump to navigation
Jump to search
This documentation is transcluded from Template:Str endswith/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
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}}
→ yes{{str endswith|(bar)|foo (bar)}}
→ yes{{str endswith|foo bar | bar}}
→
- border cases
{{str endswith}}
→{{str endswith||}}
→ yes{{str endswith|| }}
→ yes{{str endswith| |}}
→ yes
See also