Template:Endswith
From Fallen London Wiki (Staging)
yes
Template documentation (for the above template, sometimes hidden or invisible)
This is the endswith template.
It returns "yes" if the first parameter ends with the second parameter. Both parameters are trimmed before use.
Examples
- {{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
Visit Template:Endswith/doc to edit this text! (How does this work?)