Template:Str startswith
Sarna News

- Bad 'Mechs - Thresher Mk II
- HEXTECH Wave 9 Review - Winding Rivers, Tall Walls, and Underground Tunnels
- Hired Steel and Making MechWarrior 5: Clans Cinematics with Constantin & Bernhard of TMC
- Your BattleTech News Round-Up For December, 2024
- Community Outreach - Caterwauling On CamoSpecs With Matt "00Dawg" Frederiksen
- Read more →
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| |}}
→