Template:Str endswith/doc
< Template:Str endswith
Jump to navigation
Jump to search
Revision as of 16:44, 25 September 2022 by Gwyneth Llewelyn (talk | contribs) (Shamelessly copied from wikipedia.org and adapted for SL Wiki)
This is a documentation subpage for Template:Str endswith. It contains usage information, categories and other content or metadata that is not part of the original template. |
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
Template:String-handling templates