<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>https://fa.islamicdata.ru/index.php?action=history&amp;feed=atom&amp;title=%D8%A7%D9%84%DA%AF%D9%88%3AStr_mid%2Fdoc</id>
	<title>الگو:Str mid/doc - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="https://fa.islamicdata.ru/index.php?action=history&amp;feed=atom&amp;title=%D8%A7%D9%84%DA%AF%D9%88%3AStr_mid%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://fa.islamicdata.ru/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Str_mid/doc&amp;action=history"/>
	<updated>2026-05-04T19:11:49Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://fa.islamicdata.ru/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Str_mid/doc&amp;diff=2616&amp;oldid=prev</id>
		<title>imported&gt;Adminm: ۱ نسخه واردشده</title>
		<link rel="alternate" type="text/html" href="https://fa.islamicdata.ru/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Str_mid/doc&amp;diff=2616&amp;oldid=prev"/>
		<updated>2018-03-03T16:33:51Z</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;tr class=&quot;diff-title&quot; lang=&quot;fa&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;نسخهٔ ۳ مارس ۲۰۱۸، ساعت ۱۹:۳۳&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fa&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(بدون تفاوت)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Adminm</name></author>
	</entry>
	<entry>
		<id>https://fa.islamicdata.ru/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Str_mid/doc&amp;diff=2615&amp;oldid=prev</id>
		<title>imported&gt;Jdaloner: Updated transclusion of navbox.</title>
		<link rel="alternate" type="text/html" href="https://fa.islamicdata.ru/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:Str_mid/doc&amp;diff=2615&amp;oldid=prev"/>
		<updated>2014-12-16T20:55:42Z</updated>

		<summary type="html">&lt;p&gt;Updated transclusion of navbox.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&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;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
Characters in the source string are counted: the first is index {{code|1=1}}, the last one is index {{code|length of string}}. The substring requested can be defined by these two indexes. Also, the substring can be defined by one index, and the substring length. The options are:&lt;br /&gt;
&amp;lt;nowiki&amp;gt; {{str mid|&amp;lt;string&amp;gt;|&amp;lt;index of first character&amp;gt;|&amp;lt;length of substring&amp;gt;|&amp;lt;index of last character&amp;gt;}} &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
It returns a part of the &amp;lt;string&amp;gt;, starting with character on position &amp;#039;&amp;#039;index&amp;#039;&amp;#039;, length &amp;lt;sublength&amp;gt;, last character returned is end index.&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz|5|3}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz|5|3}}&lt;br /&gt;
&lt;br /&gt;
If parameter 2 is omitted, start is from character 1:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz||5}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz||5}}&lt;br /&gt;
&lt;br /&gt;
If parameter 3 is omitted, the whole rest of the string is returned:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz|15}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz|15}}&lt;br /&gt;
&lt;br /&gt;
=== Counting from the end ===&lt;br /&gt;
By entering a &amp;#039;&amp;#039;negative value&amp;#039;&amp;#039;, the index is counted &amp;#039;&amp;#039;from the end&amp;#039;&amp;#039;:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz|-7|4}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz|-7|4}}&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz|-7}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz|-7}}&lt;br /&gt;
&lt;br /&gt;
=== Instead if substring length, use index for last character ===&lt;br /&gt;
By using parameter {{para|4|&amp;#039;&amp;#039;n&amp;#039;&amp;#039;}}, a number, you do not ask for substring length, but the last character (as counted from the start of the input string):&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz|5||7}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz|5||7}}&lt;br /&gt;
&lt;br /&gt;
===Spaces are kept===&lt;br /&gt;
In the returned substring, spaces are kept:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;gt;{{str mid|I like this.|2|6}}&amp;lt;&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; &amp;gt;{{str mid|I like this,|2|6}}&amp;lt;&lt;br /&gt;
But the input string is trimmed:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;&amp;gt;{{str mid|   I like this.   |2|6}}&amp;lt;&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; &amp;gt;{{str mid|   I like this.   |2|6}}&amp;lt;&lt;br /&gt;
&lt;br /&gt;
===Error messages===&lt;br /&gt;
When the ranges (either param2 or the substring length) is out impossible in the string, an error is returned:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz|30}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz|30|ignore errors=false|no category=true}}&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz|0|45}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz|5|45|ignore errors=false|no category=true}}&lt;br /&gt;
The error can be suppressed by using {{para|ignore errors|true}}. A blank (empty string) will be returned:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{str mid|Abcdefghijklmnopqrstuvwxyz|0|45|ignore errors=true}}&amp;lt;/nowiki&amp;gt; &amp;amp;rarr; {{str mid|Abcdefghijklmnopqrstuvwxyz|5|45|ignore errors=true}}&lt;br /&gt;
&lt;br /&gt;
====Error category====&lt;br /&gt;
* {{para|no category|true}} switches off category adding.&lt;br /&gt;
* {{para|error category|&amp;lt;nowiki&amp;gt;[[Category:Your category name]]&amp;lt;/nowiki&amp;gt;}} sets the category to be added when in case of an error.&amp;lt;br/&amp;gt;&lt;br /&gt;
::Default is [[:Category:Errors reported by Module String]].&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|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Jdaloner</name></author>
	</entry>
</feed>