<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://deeppolitics.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AStr_sub_find%2Fdoc</id>
	<title>Template:Str sub find/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://deeppolitics.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AStr_sub_find%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://deeppolitics.org/index.php?title=Template:Str_sub_find/doc&amp;action=history"/>
	<updated>2026-11-30T04:15:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://deeppolitics.org/index.php?title=Template:Str_sub_find/doc&amp;diff=33042&amp;oldid=prev</id>
		<title>WikiSpooks&gt;Robin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://deeppolitics.org/index.php?title=Template:Str_sub_find/doc&amp;diff=33042&amp;oldid=prev"/>
		<updated>2016-03-19T04:58:35Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Template:str_sub_find&amp;#039;&amp;#039;&amp;#039; searches for a substring in a string at the given offset.&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
: &amp;lt;code&amp;gt;{{tlx|str sub find||&amp;lt;string1&amp;gt;|&amp;lt;string2&amp;gt;|&amp;lt;offset&amp;gt;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It returns 1, if &amp;#039;&amp;#039;string2&amp;#039;&amp;#039; is found in &amp;#039;&amp;#039;string1&amp;#039;&amp;#039; at the given &amp;#039;&amp;#039;offset&amp;#039;&amp;#039;, otherwise it will return empty string. This makes the result easy usable in [[mw:Help:Extension:ParserFunctions|Help:Extension:ParserFunctions]] like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#if:|}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&amp;lt;br /&amp;gt;Offset is zero-based and can be omitted if zero.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{#if: {{str sub find|abcdef|abc}} | Substring is found | Substring is not found }}&amp;lt;/nowiki&amp;gt; → {{#if:{{str sub find|abcdef|abc}}|Substring is found|Substring is not found}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{#if: {{str sub find|abcdef|abc|2}} | Substring is found | Substring is not found }}&amp;lt;/nowiki&amp;gt; → {{#if:{{str sub find|abcdef|abc|2}}|Substring is found|Substring is not found}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{#if: {{str sub find|abcdef|def}} | Substring is found | Substring is not found }}&amp;lt;/nowiki&amp;gt; → {{#if:{{str sub find|abcdef|def}}|Substring is found|Substring is not found}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{#if: {{str sub find|abcdef|def|3}} | Substring is found | Substring is not found }}&amp;lt;/nowiki&amp;gt; → {{#if:{{str sub find|abcdef|def|3}}|Substring is found|Substring is not found}}&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
{{string-handling templates}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
&lt;br /&gt;
[[lv:Veidne:str sub find]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSpooks&gt;Robin</name></author>
	</entry>
</feed>