Template:Str endswith/doc: Difference between revisions

From wikiNonStop
Content added Content deleted
m (move high-use template to top)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{Documentation subpage}}
{{Documentation subpage}}
{{Lua|Module:String}}
{{Lua|Module:String}}
{{Lua|Module:StringW}}


This is the {{tl|str endswith}} meta-template.
This is the {{tl|str endswith}} meta-template.

Latest revision as of 11:36, 24 August 2024

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)}} → yes
  • {{str endswith|foo|bar}}
  • {{str endswith|(bar)|foo (bar)}}
  • {{str endswith|foo bar | bar}} → yes
border cases
  • {{str endswith}} → yes
  • {{str endswith||}} → yes
  • {{str endswith|| }} → yes
  • {{str endswith| |}} → yes

See also