Sjabloon:Strfind short
Versie door Ahenket (overleg | bijdragen) op 18 jul 2013 om 08:03 (Nieuwe pagina aangemaakt met '{{#Invoke:String|find|source={{{1|}}}|{{{2}}}}}<noinclude> {{documentation}} Category:Wikipedia formatting and function templates Category:Templates with min...')
{{#Invoke:String|find|source=|{{{2}}}}}
[bewerken] [ ] Template documentation
The Template:Strfind_short finds the location, in parameter {1} of the string {2}. If the string is not found, the result is zero (0), indicating no match.
- Usage: {{strfind short|abcdef|bcd}} {{#invoke:in5|in5|1=}} → {{#invoke:String|str_find|source=abcdef|bcd}}
- {{strfind short|123456789.|45}} → {{#Invoke:String|find|source=123456789.|45}}
- {{strfind short|x+2.437-6|2.43}} → {{#Invoke:String|find|source=x+2.437-6|2.43}}
- {{strfind short|:***abcd**|*ab}} → {{#Invoke:String|find|source=:***abcd**|*ab}}
Examples
The following are examples:
- {{strfind short|abcdef|bcd}} {{#invoke:in5|in5|1=}} → {{#Invoke:String|find|source=abcdef|bcd}}
- {{strfind short|Fast Forward (film)|(}} {{#invoke:in5|in5|1=}} → {{#Invoke:String|find|source=Fast Forward (film)|(}}
- {{strfind short|Fast Forward Longer (film)|(}} → {{#Invoke:String|find|source=Fast Forward Longer (film)|(}}
- {{strfind short|A Funny Thing Happened on the Way to the Forum (film)|(}} → {{#Invoke:String|find|source=A Funny Thing Happened on the Way to the Forum (film)|(}}
- {{strfind short|abcdef|x}} {{#invoke:in5|in5|1=}} → {{#Invoke:String|find|source=abcdef|x}}
- {{strfind short|abcdef|xyz}} {{#invoke:in5|in5|1=}} → {{#Invoke:String|find|source=abcdef|xyz}}
See also
- {{Str find}} - searches strings, but with expansion depth of 18 or more
{{#invoke: Navbox | navbox }}
The above documentation is transcluded from Sjabloon:Strfind short/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |