Actions

Template

Str endswith

From

Revision as of 09:26, 10 September 2016 by MarkAHershberger (Talk) (1 revision imported)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

yes

50px Template documentation[view] [edit] [history] [purge]

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