Template:Str find/doc

From Path of Exile Wiki
Revision as of 15:23, 13 June 2023 by Vinifera7 (talk | contribs) (Vinifera7 moved page Template:Str find short/doc to Template:Str find/doc without leaving a redirect: Leaving no redirect from old name, since this template is currently unused)
Jump to navigation Jump to search

This subpage provides documentation for Template:Str find.

Lua logo

This template uses the following modules:

{{str find short|target|string}} outputs the position in target where string first appears (e.g. an output of "3" would mean beginning at the third character in target). If string is not found, it outputs zero (0).

Examples

Example Output
{{str find short|abcdef|bcd}} Template:Str find short
{{str find short|abcdefedcba|b}} Template:Str find short
{{str find short|123456789.|45}} Template:Str find short
{{str find short|x+2.437-6|2.43}} Template:Str find short
{{str find short|:***abcd**|*ab}} Template:Str find short
{{str find short|Fast Forward (film)|(}} Template:Str find short
{{str find short|Fast Forward Longer (film)|(}} Template:Str find short
{{str find short|A Funny Thing Happened on the Way to the Forum (film)|(}} Template:Str find short
{{str find short|abcdef|x}} Template:Str find short
{{str find short|abcdef|xyz}} Template:Str find short
This template was adapted from Template:Strfind short on Wikipedia.
Adaptation is noted for reference and attribution only. This template may differ from the original in function or in usage.