Template:Str endswith/doc: Difference between revisions
Jump to navigation
Jump to search
Shamelessly copied from wikipedia.org and adapted for SL Wiki |
m →See also: link to wikipedia |
||
Line 19: | Line 19: | ||
===See also=== | ===See also=== | ||
{{String-handling templates |anlys/tech}} | {{Wikipedia|String-handling templates |anlys/tech}} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
[[Category:String manipulation templates]] | [[Category:String manipulation templates]] | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 17:03, 11 February 2023
![]() |
This is a ![]() ![]() It contains usage information, ![]() |
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