Template:Str startswith/doc
Appearance
| This is a documentation subpage for Template:Str startswith. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
| 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).