<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AStrfind_short%2Fdoc</id>
	<title>Template:Strfind short/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AStrfind_short%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Strfind_short/doc&amp;action=history"/>
	<updated>2026-04-06T21:25:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Strfind_short/doc&amp;diff=40731&amp;oldid=prev</id>
		<title>imported&gt;GKFX: elaborate</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Strfind_short/doc&amp;diff=40731&amp;oldid=prev"/>
		<updated>2021-12-29T13:01:58Z</updated>

		<summary type="html">&lt;p&gt;elaborate&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Lua|Module:String}}&lt;br /&gt;
&lt;br /&gt;
{{tlx|strfind short|&amp;#039;&amp;#039;target&amp;#039;&amp;#039;|&amp;#039;&amp;#039;string&amp;#039;&amp;#039;}} outputs the position in &amp;#039;&amp;#039;target&amp;#039;&amp;#039; where &amp;#039;&amp;#039;string&amp;#039;&amp;#039; first appears (e.g. an output of &amp;quot;3&amp;quot; would mean beginning at the third character in &amp;#039;&amp;#039;target&amp;#039;&amp;#039;). If &amp;#039;&amp;#039;string&amp;#039;&amp;#039; is not found, it outputs zero (0). The word &amp;quot;short&amp;quot; in the title is a relic of the pre-[[WP:Lua|Lua]] implementation and has no meaning for the current version. This template is a simple wrapper around {{ml|string|find|section=#find}}, which may be used directly for more options.&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Use {{pf|ifexpr}} to concisely determine if this outputs zero, which lets you check if one string contains another. For example, Does &amp;quot;A Funny Thing Happened on the Way to the Forum (film)&amp;quot; contain &amp;quot;on the&amp;quot;?&lt;br /&gt;
{{markup|&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{#ifexpr: {{strfind short|&lt;br /&gt;
    A Funny Thing Happened on the Way to the Forum (film)|on the}}&lt;br /&gt;
    | It does. | It doesn&amp;#039;t. }}&amp;lt;/nowiki&amp;gt;|{{#ifexpr: {{strfind short|&lt;br /&gt;
    A Funny Thing Happened on the Way to the Forum (film)|on the}}&lt;br /&gt;
    | It does. | It doesn&amp;#039;t. }}}}&amp;lt;!-- Template:Mra --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sample output:&lt;br /&gt;
{{Aligned table |class=nowrap&lt;br /&gt;
 |col1style=text-align:left; padding-right:2.0em; |col2style=text-align:center;| row1header = yes&lt;br /&gt;
 | Example | Output&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}abcdef {{!}}bcd{{))}}&amp;lt;/code&amp;gt;      |  {{strfind short|abcdef|bcd}}&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}123456789. {{!}}45{{))}}&amp;lt;/code&amp;gt;   |  {{strfind short|123456789.|45}}&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}x+2.437-6 {{!}}2.43{{))}}&amp;lt;/code&amp;gt;  |  {{strfind short|x+2.437-6|2.43}}&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}:***abcd** {{!}}*ab{{))}}&amp;lt;/code&amp;gt;  |  {{strfind short|:***abcd**|*ab}}&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}Fast Forward (film) {{!}}( {{))}}&amp;lt;/code&amp;gt;  |  {{strfind short|Fast Forward (film)|(}}&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}Fast Forward Longer (film) {{!}}( {{))}}&amp;lt;/code&amp;gt;  |  {{strfind short|Fast Forward Longer (film)|(}}&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}A Funny Thing Happened on the Way to the Forum (film) {{!}}( {{))}}&amp;lt;/code&amp;gt;  |  {{strfind short|A Funny Thing Happened on the Way to the Forum (film)|(&amp;lt;!--?: |1 --&amp;gt;}}&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}abcdef {{!}}x{{))}}&amp;lt;/code&amp;gt;        |  {{strfind short|abcdef|x}}&lt;br /&gt;
 | &amp;lt;code&amp;gt;{{((}}strfind short {{!}}abcdef {{!}}xyz{{))}}&amp;lt;/code&amp;gt;      |  {{strfind short|abcdef|xyz}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{String-handling templates |anlys/tech}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!-- Categories below this line, please: --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;GKFX</name></author>
	</entry>
</feed>