Template:Str find/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>TheFrz
(Created page with "{{Documentation subpage}} {{Lua|Module:String}} {{tlx|str find short|''target''|''string''}} outputs the position in ''target'' where ''string'' first appears (e.g. an output...")
 
>TheFrz
mNo edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{WikipediaTemplate|Strfind short}}
{{Lua|Module:String}}
{{Lua|Module:String}}



Revision as of 19:04, 11 July 2016

This subpage provides documentation for Template:Str find.

This template was adapted from Strfind short on Wikipedia.
Adaptation is noted for reference and attribution only. This template may differ from the original in function or in usage.

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|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