Template:Str find/doc
Template page
More actions
- Usage
- Returns the position (1 for the first character) of first appearance of substring in a text, 1 if not found.
- Note: if you want to edit this template, first try your modifications on {{Str find/sandbox}}.You can then test your edits in {{Str find/testcases}}.
When the new version is ready, you can move it to the main template.
- Examples
-
- {{Str find|Panthera (genus)|P}} → 1
- {{Str find|Panthera (genus)|a}} → 2
- {{Str find|Panthera (genus)|(}} → 10
- {{Str find|Panthera (genus)|=}} → 1
- Syntax
{{Str endswith | <text> | <substring> }}
- Parameters
-
- <text>
- the tested string
- <substring>
- the substring to be searched in the <text>