வார்ப்புரு:Str endswith
Jump to navigation
Jump to search
This is the
{{str endswith}} meta-template.
yes
![]() | This template uses Lua: |
Template:Template link is being considered for merging with Template:Tlu. Please discuss this matter at this template's entry at templates for discussion to help reach a consensus. |
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