<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ar">
	<id>https://ar.wikivahdat.com/w/index.php?action=history&amp;feed=atom&amp;title=%D9%82%D8%A7%D9%84%D8%A8%3AStr_%E2%89%A5_len%2Fdoc</id>
	<title>قالب:Str ≥ len/doc - تاريخ المراجعة</title>
	<link rel="self" type="application/atom+xml" href="https://ar.wikivahdat.com/w/index.php?action=history&amp;feed=atom&amp;title=%D9%82%D8%A7%D9%84%D8%A8%3AStr_%E2%89%A5_len%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://ar.wikivahdat.com/w/index.php?title=%D9%82%D8%A7%D9%84%D8%A8:Str_%E2%89%A5_len/doc&amp;action=history"/>
	<updated>2026-04-19T13:51:47Z</updated>
	<subtitle>تاريخ التعديل لهذه الصفحة في الويكي</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://ar.wikivahdat.com/w/index.php?title=%D9%82%D8%A7%D9%84%D8%A8:Str_%E2%89%A5_len/doc&amp;diff=17775&amp;oldid=prev</id>
		<title>Wikivahdat: مراجعة واحدة</title>
		<link rel="alternate" type="text/html" href="https://ar.wikivahdat.com/w/index.php?title=%D9%82%D8%A7%D9%84%D8%A8:Str_%E2%89%A5_len/doc&amp;diff=17775&amp;oldid=prev"/>
		<updated>2022-12-07T04:01: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;ar&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;ar&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>Wikivahdat</name></author>
	</entry>
	<entry>
		<id>https://ar.wikivahdat.com/w/index.php?title=%D9%82%D8%A7%D9%84%D8%A8:Str_%E2%89%A5_len/doc&amp;diff=17774&amp;oldid=prev</id>
		<title>ar&gt;Wikivahdat: mark high-use</title>
		<link rel="alternate" type="text/html" href="https://ar.wikivahdat.com/w/index.php?title=%D9%82%D8%A7%D9%84%D8%A8:Str_%E2%89%A5_len/doc&amp;diff=17774&amp;oldid=prev"/>
		<updated>2021-11-20T09:14:15Z</updated>

		<summary type="html">&lt;p&gt;mark high-use&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحة جديدة&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{high-use}}{{Lua|Module:String}}&lt;br /&gt;
&amp;lt;!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE----&amp;gt;&lt;br /&gt;
This is the {{tl|str ≥ len}} meta-template.&lt;br /&gt;
&lt;br /&gt;
It helps other templates check if a string is &amp;quot;longer or equally long&amp;quot; vs. &amp;quot;shorter&amp;quot; than a given length.&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
This template takes 3 to 4 unnamed parameters.&lt;br /&gt;
&lt;br /&gt;
Here is how to check if the string &amp;quot;abcde&amp;quot; is 4 characters or more:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{str ≥ len | abcde | 4&lt;br /&gt;
| Equal or longer.&lt;br /&gt;
| Shorter.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which returns this:&lt;br /&gt;
&lt;br /&gt;
:{{str ≥ len | abcde | 4&lt;br /&gt;
| Equal or longer.&lt;br /&gt;
| Shorter.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Templates have a problem handling parameter data that contains equal signs &amp;quot;&amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt;&amp;quot;. But that is easily solved by using numbered parameters. Here we check if the string &amp;quot;ab=cde&amp;quot; is 100 characters or more:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{str ≥ len &lt;br /&gt;
| 1 = ab=cde &lt;br /&gt;
| 2 = 100&lt;br /&gt;
| 3 = Equal &amp;quot;=&amp;quot; or longer.&lt;br /&gt;
| 4 = Shorter, not &amp;quot;=&amp;quot;.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which returns this:&lt;br /&gt;
&lt;br /&gt;
:{{str ≥ len &lt;br /&gt;
| 1 = ab=cde &lt;br /&gt;
| 2 = 100&lt;br /&gt;
| 3 = Equal &amp;quot;=&amp;quot; or longer.&lt;br /&gt;
| 4 = Shorter, not &amp;quot;=&amp;quot;.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
It probably is a good habit to always use the numbered parameters, since you might not know beforehand exactly how the data will look that your template will feed to this meta-template.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{str ≥ len &lt;br /&gt;
| 1 = A string&lt;br /&gt;
| 2 = A length&lt;br /&gt;
| 3 = Data to return/render when &amp;quot;longer than or equally long&amp;quot;.&lt;br /&gt;
| 4 = Data to return/render when &amp;quot;shorter than&amp;quot;.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Empty or undefined strings are considered to be of 0 length.&lt;br /&gt;
&lt;br /&gt;
Length values below 0 are considered to be 0.&lt;br /&gt;
&lt;br /&gt;
===Technical details===&lt;br /&gt;
The potential alternative templates names &amp;lt;nowiki&amp;gt;{{str &amp;gt;= len}} or (for the opposite) {{str &amp;lt; len}}&amp;lt;/nowiki&amp;gt; do not work in MediaWiki.&lt;br /&gt;
&lt;br /&gt;
[[Help:Template|Templates]] have problems to handle parameter data that contains pipes &amp;quot;&amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;&amp;quot;, unless the pipe is inside another template &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{name|param1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or inside a piped link &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Help:Template|help]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Thus templates can not handle [[Help:Table|wikitables]] as input unless you escape them by using the {{tn|!}} template. This makes it hard to use wikitables as parameters to templates. Instead the usual solution is to use &amp;quot;[[Help:HTML in wikitext|HTML wikimarkup]]&amp;quot; for the table code, which is more robust.&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
{{String-handling templates |IRL}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----CATEGORIES BELOW THIS LINE, PLEASE:----&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>ar&gt;Wikivahdat</name></author>
	</entry>
</feed>