Template:Str endswith
From Hymnopedia
yes
These are other templates, used for fun stuff such as references.[edit] [ ]
Template documentation

This is the {{str endswith}} meta-template.
It returns "yes" if the first parameter ends with the second parameter. It uses both {{str left}} and {{str len}}, so it's subject to their limitations. Both parameters are trimmed before use.
Examples
- {{str endswith|foo (bar)|(bar)}} → yes
- {{str endswith|foo|bar}} →
- {{str endswith|(bar)|foo (bar)}} →
- {{str endswith|foo bar | bar}} → yes
- border cases
- {{str endswith}} → yes
- {{str endswith|<i/>|<i/>}} → yes
- {{str endswith|<i/>| }} → yes
- {{str endswith| |<i/>}} → yes
- {{str endswith|[499 characters]X|X}} → yes
- {{str endswith|[499 characters]X|Y}} →
- {{str endswith|[499 characters]X|[same 499 characters]X}} → yes
- {{str endswith|[499 characters]X|[same 499 characters]Y}} →
- {{str endswith|[500 characters]X|X}} →
- {{str endswith|[500 characters]X|Y}} →
See also
Template loop detected: Template:Documentation/core2id:Templat:Str endswith
The above documentation is transcluded from Template:Str endswith/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |