Template:Str startswith
| This template, module and/or subpages are based on or ported over completely to BattleTechWiki, using the Creative Commons Licensed content from this page on Wikipedia (The original authors of this page are shown on here). |
| This template uses Lua: |
This is the {{Str startswith}} meta-template.
It returns "yes" if the second parameter is the start of the first parameter. Both parameters are trimmed before use.
Examples[edit]
{{Str startswith|foo (bar)|foo}}→ yes{{Str startswith|foo|bar}}→{{Str startswith|(bar)|foo (bar)}}→{{Str startswith|foo bar | foo }}→ yes
Border cases:
{{Str startswith}}→{{Str startswith||}}→{{Str startswith|| }}→{{Str startswith| |}}→

