<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://rosma.co.uk/mw/oba/index.php?action=history&amp;feed=atom&amp;title=Template%3AStr_index_any%2Fdoc</id>
	<title>Template:Str index any/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://rosma.co.uk/mw/oba/index.php?action=history&amp;feed=atom&amp;title=Template%3AStr_index_any%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://rosma.co.uk/mw/oba/index.php?title=Template:Str_index_any/doc&amp;action=history"/>
	<updated>2026-06-29T20:41:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>http://rosma.co.uk/mw/oba/index.php?title=Template:Str_index_any/doc&amp;diff=3879&amp;oldid=prev</id>
		<title>Smeeds at 12:41, 15 September 2012</title>
		<link rel="alternate" type="text/html" href="http://rosma.co.uk/mw/oba/index.php?title=Template:Str_index_any/doc&amp;diff=3879&amp;oldid=prev"/>
		<updated>2012-09-15T12:41:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:41, 15 September 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l31&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:String manipulation templates]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:String manipulation templates]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bn:টেমপ্লেট:Str index any]] &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[de:Vorlage:Str index]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[es:Plantilla:Str index]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[ja:Template:Str index any]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[ka:თარგი:Str index any]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[pt:Predefinição:Str index]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[ru:Шаблон:Str index]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[sl:Predloga:Str index any]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[ur:Template:Str index any]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key 4e2gbt_rosma1-mwzq_:diff::1.12:old-3833:rev-3879 --&gt;
&lt;/table&gt;</summary>
		<author><name>Smeeds</name></author>
	</entry>
	<entry>
		<id>http://rosma.co.uk/mw/oba/index.php?title=Template:Str_index_any/doc&amp;diff=3833&amp;oldid=prev</id>
		<title>Smeeds: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://rosma.co.uk/mw/oba/index.php?title=Template:Str_index_any/doc&amp;diff=3833&amp;oldid=prev"/>
		<updated>2012-09-15T12:21:27Z</updated>

		<summary type="html">&lt;p&gt;1 revision&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;
&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_index_any&amp;#039;&amp;#039;&amp;#039; extracts a specified nth character from a string, even allowing for accented letters or [[diacritics]] to be included in the string. The string can be any length, but position &amp;#039;&amp;#039;n&amp;#039;&amp;#039; (parameter 2) is limited to 500 at most.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
:: &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;str index any&amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;|&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt; = Returns the &amp;#039;&amp;#039;n&amp;#039;&amp;#039;-th character of &amp;#039;&amp;#039;text&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Supports a larger character set, allowing the text to have accented letters or other [[diacritic]]al marks.  Returns an error message for unknown characters. Returns &amp;amp;amp;#32; for a blank space, which can be converted to a simple space by [[Template:Xspace|xspace]].&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
* {{tlp| {{BASEPAGENAME}} |0123456789ABCDEF|15}} → {{ {{BASEPAGENAME}} |0123456789ABCDEF|15}}&lt;br /&gt;
* {{tlp| {{BASEPAGENAME}} |ÁBĆĎÉf-ABCDEF|4}} → {{ {{BASEPAGENAME}} |ÁBĆĎÉf-ABCDEF|4}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt; {{BASEPAGENAME}} |Very very...long string of 500 characteRs|499&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt; → R&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt; Str len |{{ {{BASEPAGENAME}} |a b|1&amp;lt;nowiki&amp;gt;}}}}&amp;lt;/nowiki&amp;gt; → {{ Str len |{{ {{BASEPAGENAME}} |a b|1}}}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt; Str len |{{ {{BASEPAGENAME}} |a b|2&amp;lt;nowiki&amp;gt;}}}}&amp;lt;/nowiki&amp;gt; → {{ Str len |{{ {{BASEPAGENAME}} |a b|2}}}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt; Str len |{{ {{BASEPAGENAME}} |a b|3&amp;lt;nowiki&amp;gt;}}}}&amp;lt;/nowiki&amp;gt; → {{ Str len |{{ {{BASEPAGENAME}} |a b|3}}}}&lt;br /&gt;
&lt;br /&gt;
The last example shows extraction of letter &amp;quot;b&amp;quot; with string length as 1. The prior example extracts a blank but considers the length as 5 for the 5 characters &amp;quot;&amp;amp;amp;#32;&amp;quot; even though there is only 1 space, and hence, &amp;lt;nowiki&amp;gt;{{str len|&amp;amp;amp;#32;}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str len|&amp;amp;#32;}}. If surrounded by 2 other characters, then the length might be totalled incorrectly as 7 (rather than 3 characters):&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt; Str len |&amp;lt;{{ {{BASEPAGENAME}} |a b|2&amp;lt;nowiki&amp;gt;}}&amp;gt;}}&amp;lt;/nowiki&amp;gt; → {{ Str len |&amp;lt;{{ {{BASEPAGENAME}} |a b|2}}&amp;gt;}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt; Str len |X{{ {{BASEPAGENAME}} |a b|2&amp;lt;nowiki&amp;gt;}}X}}&amp;lt;/nowiki&amp;gt; → {{ Str len |X{{ {{BASEPAGENAME}} |a b|2}}X}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt; Str len |X{{ Str index |a b|2&amp;lt;nowiki&amp;gt;}}X}}&amp;lt;/nowiki&amp;gt; → {{ Str len |X{{ Str index |a b|2}}X}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;X{{&amp;lt;/nowiki&amp;gt; {{BASEPAGENAME}} |a b|2&amp;lt;nowiki&amp;gt;}}X&amp;lt;/nowiki&amp;gt; → X{{ {{BASEPAGENAME}} |a b|2}}X&lt;br /&gt;
&lt;br /&gt;
The same string-length problem occurs when using template {{tl| Str index }}. There might be other quirks as well, but most cases work as expected.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
{{String templates see also}}&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;
[[bn:টেমপ্লেট:Str index any]] &lt;br /&gt;
[[de:Vorlage:Str index]]&lt;br /&gt;
[[es:Plantilla:Str index]]&lt;br /&gt;
[[ja:Template:Str index any]]&lt;br /&gt;
[[ka:თარგი:Str index any]]&lt;br /&gt;
[[pt:Predefinição:Str index]]&lt;br /&gt;
[[ru:Шаблон:Str index]]&lt;br /&gt;
[[sl:Predloga:Str index any]]&lt;br /&gt;
[[ur:Template:Str index any]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Smeeds</name></author>
	</entry>
</feed>