Template:Endswith/doc

From Fallen London Wiki (Staging)

This is the endswith template.

It returns "yes" if the first parameter ends with the second parameter. Both parameters are trimmed before use.

Examples[edit]

  • {{endswith|foo (bar)|(bar)}} → yes
  • {{endswith|foo|bar}}
  • {{endswith|(bar)|foo (bar)}}
  • {{endswith|foo bar   |   bar}} → yes
border cases
  • {{endswith}} → yes
  • {{endswith|<i/>|<i/>}} → yes
  • {{endswith|<i/>| }} → yes
  • {{endswith| |<i/>}} → yes