Template:Str startswith
| Template documentation follows |
|---|
| Note: the template above may sometimes be partially or fully invisible. |
| Visit "Template:Str startswith/doc" to edit its documentation if it is available. (How does this work?) |
| 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
{{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| |}}→
See also
Lua error in Module:Navbox_with_collapsible_groups at line 6: attempt to call field 'with collapsible groups' (a nil value).