<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="az">
	<id>https://wiki.anas.az/mediawiki/index.php?action=history&amp;feed=atom&amp;title=%C5%9Eablon%3AStrloc_prefix</id>
	<title>Şablon:Strloc prefix - Redaktə tarixçəsi</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.anas.az/mediawiki/index.php?action=history&amp;feed=atom&amp;title=%C5%9Eablon%3AStrloc_prefix"/>
	<link rel="alternate" type="text/html" href="https://wiki.anas.az/mediawiki/index.php?title=%C5%9Eablon:Strloc_prefix&amp;action=history"/>
	<updated>2026-05-09T23:15:47Z</updated>
	<subtitle>Vikidə bu səhifənin dəyişikliklər tarixçəsi</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.anas.az/mediawiki/index.php?title=%C5%9Eablon:Strloc_prefix&amp;diff=221&amp;oldid=prev</id>
		<title>imported&gt;Atakhanli: KU: Kateqoriya:Şablonlar:Sətirlərlə iş → Kateqoriya:Sətirlərlə iş şablonları</title>
		<link rel="alternate" type="text/html" href="https://wiki.anas.az/mediawiki/index.php?title=%C5%9Eablon:Strloc_prefix&amp;diff=221&amp;oldid=prev"/>
		<updated>2022-10-25T08:01:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/mediawiki/index.php?title=VP:KU&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;VP:KU (səhifə mövcud deyil)&quot;&gt;KU&lt;/a&gt;: &lt;a href=&quot;/mediawiki/index.php?title=Kateqoriya:%C5%9Eablonlar:S%C9%99tirl%C9%99rl%C9%99_i%C5%9F&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Kateqoriya:Şablonlar:Sətirlərlə iş (səhifə mövcud deyil)&quot;&gt;Kateqoriya:Şablonlar:Sətirlərlə iş&lt;/a&gt; → &lt;a href=&quot;/mediawiki/index.php?title=Kateqoriya:S%C9%99tirl%C9%99rl%C9%99_i%C5%9F_%C5%9Fablonlar%C4%B1&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Kateqoriya:Sətirlərlə iş şablonları (səhifə mövcud deyil)&quot;&gt;Kateqoriya:Sətirlərlə iş şablonları&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Yeni səhifə&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!--&lt;br /&gt;
-=============================================================&lt;br /&gt;
- Strloc_prefix - Get prefix up to strloc or entire string&lt;br /&gt;
-=============================================================&lt;br /&gt;
--                              (see NOTES at bottom)&lt;br /&gt;
--&amp;gt;{{#ifexpr: {{{strloc|7}}} &amp;gt; 0&lt;br /&gt;
  | {{padleft:|{{#expr:{{{strloc|7}}} }}|{{{1}}}}}&lt;br /&gt;
  | {{{1}}}&amp;lt;!--too long or strloc &amp;lt;= 0 (string not found) --&amp;gt;&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
--NOTES&lt;br /&gt;
--&lt;br /&gt;
-- NOTE A1: This template gets the prefix of a string up to&lt;br /&gt;
--      length strloc, or the entire string when strloc &amp;lt;= 0.&lt;br /&gt;
--      It allows the location strloc to be a variable amount&lt;br /&gt;
--      such as the result of a string search, because strloc&lt;br /&gt;
--      is used twice: once to check if the entire string will&lt;br /&gt;
--      be the result, or a 2nd time to limit the length of&lt;br /&gt;
--      string extracted to length strloc. Hence, if strloc is&lt;br /&gt;
--      set by a complex search or formula, then the use of&lt;br /&gt;
--      this template will be about twice as fast as coding the&lt;br /&gt;
--      logic directly.&lt;br /&gt;
--&lt;br /&gt;
-- NOTE N2: The expansion depth of this template is 2 levels,&lt;br /&gt;
--      with 1 level for being a template, and the 2nd level&lt;br /&gt;
--      needed to check the value of length strloc.&lt;br /&gt;
--&lt;br /&gt;
--------------------------------------------------------------&lt;br /&gt;
--HISTORY:&lt;br /&gt;
--07Feb2011 Created for string-prefix copy 2x times as fast.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
{{doc}}&lt;br /&gt;
[[Kateqoriya:Sətirlərlə iş şablonları]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Atakhanli</name></author>
	</entry>
</feed>