<?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_new%2Fdoc</id>
	<title>Template:Str sub new/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_new%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://deeppolitics.org/index.php?title=Template:Str_sub_new/doc&amp;action=history"/>
	<updated>2026-11-30T04:59:14Z</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_new/doc&amp;diff=33044&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_new/doc&amp;diff=33044&amp;oldid=prev"/>
		<updated>2016-03-19T04:59:03Z</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;!-- Categories and interwikis go at the bottom of this page. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Selects a sub-string from the target string based on selected indices.  The indices are 1-based.  If the end index is omitted, it returns the rest of the string.  One can also specify negative indices, in which case the substr is selected by counting from the end of the string.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{str sub new|target_string|start_index|end_index}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str sub new|1234567890|3|7}}&amp;lt;/nowiki&amp;gt; = {{str sub new|1234567890|3|7}}&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str sub new|1234567890|3|-3}}&amp;lt;/nowiki&amp;gt; = {{str sub new|1234567890|3|-3}}&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str sub new|1234567890|3}}&amp;lt;/nowiki&amp;gt; = {{str sub new|1234567890|3}}&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str sub new|1234567890|12}}&amp;lt;/nowiki&amp;gt; = {{str sub new|1234567890|12|nocategory=1}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|str sub}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{string-handling templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSpooks&gt;Robin</name></author>
	</entry>
</feed>