<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.americanmusicclub.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AString-handling_templates</id>
	<title>Template:String-handling templates - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.americanmusicclub.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AString-handling_templates"/>
	<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;action=history"/>
	<updated>2026-04-06T22:12:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=18075&amp;oldid=prev</id>
		<title>Amc-admin: 87 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=18075&amp;oldid=prev"/>
		<updated>2016-11-19T04:54:06Z</updated>

		<summary type="html">&lt;p&gt;87 revisions imported&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;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:54, 19 November 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Amc-admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=5631&amp;oldid=prev</id>
		<title>Amc-admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=5631&amp;oldid=prev"/>
		<updated>2016-11-19T00:55:52Z</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;{{Navbox with collapsible groups&lt;br /&gt;
| name = String-handling templates&lt;br /&gt;
| state = {{{state|expanded}}}&lt;br /&gt;
| bodyclass = plainlist&lt;br /&gt;
| title = String-handling templates&lt;br /&gt;
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------- Trimming -------------------------&amp;gt;&lt;br /&gt;
| abbr1 = trim&lt;br /&gt;
| sect1 = [[Trimming (computer programming)|Trimming]]&lt;br /&gt;
| content1 =&lt;br /&gt;
 {{Navbox |child&lt;br /&gt;
&lt;br /&gt;
  | group1 = By counting&lt;br /&gt;
  | list1 =&lt;br /&gt;
   {{Aligned table |fullwidth=on |style=text-align:left; |col1width=50%;&lt;br /&gt;
    | {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|str mid}}       | To return a substring specified by position and length.&lt;br /&gt;
       | {{tl|trunc}}         | To trim down to a specified number of characters.&lt;br /&gt;
       | {{tl|str left}}      | To trim down to a specified number of characters or duplicate the string to a specified number.&lt;br /&gt;
       | {{tl|str crop}}      | To crop a specified number of characters off the end.&lt;br /&gt;
       | {{tl|chop head and tail}} | To crop a specified number of characters off the beginning and end.&lt;br /&gt;
      }}&lt;br /&gt;
    | {{Aligned table&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|str right}}     | To trim the first specified number of characters.&lt;br /&gt;
       | {{tl|str rightc}}    | To return a number of characters from the end, returns a parameter if the string is empty.&lt;br /&gt;
       | {{tl|str rightmost}} | To trim down to the last specified number of characters.&lt;br /&gt;
       | {{tl|str sub old}}   | To trim down to a specified number, starting at a given number from the left.&lt;br /&gt;
       | {{tl|str sub new}}   | Select a substr based on starting and ending index.&lt;br /&gt;
       | {{tl|str index}}     | Returns a given character from a string, but not accented letters.&lt;br /&gt;
   }} }}&lt;br /&gt;
&lt;br /&gt;
  | group2 = By checking&lt;br /&gt;
  | list2 =&lt;br /&gt;
   {{Aligned table |fullwidth=on |style=text-align:left; |col1width=50%;&lt;br /&gt;
    | {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|trim}}                | To trim any leading or trailing whitespace&lt;br /&gt;
       | {{tl|str letter/trim}}     | To trim down to the beginning letters.&lt;br /&gt;
       | {{tl|str number/trim}}     | To trim down to the beginning numbers.&lt;br /&gt;
       | {{tl|trim brackets}}       | To trim any leading or trailing square brackets.&lt;br /&gt;
      }}&lt;br /&gt;
    | {{Aligned table&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|first word}}          | To trim down to the first space.&lt;br /&gt;
       | {{tl|remove first word}}   | To remove anything before the first space.&lt;br /&gt;
       | {{tl|last word}}           | To trim down from the last space.&lt;br /&gt;
       | {{tl|remove last word}}    | To remove anything after the last space.&lt;br /&gt;
   }} }}&lt;br /&gt;
&lt;br /&gt;
  | group3 = Dedicated&lt;br /&gt;
  | list3 =&lt;br /&gt;
   {{Aligned table |fullwidth=on |style=text-align:left; |col1width=50%;&lt;br /&gt;
    | {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|delink}}              | Removes wikilink brackets (wikicode).&lt;br /&gt;
       | {{tl|remove file prefix}}  | Removes &amp;quot;File:&amp;quot; (or &amp;quot;Image:&amp;quot;) from filenames.&lt;br /&gt;
       | {{tl|PAGENAMEBASE}}        | To trim off any parenthesis text at the end of a string (disambiguation).&lt;br /&gt;
       | {{tl|title disambig text}} | Returns text in parenthesis at the end of a string (disambiguation).&lt;br /&gt;
      }}&lt;br /&gt;
    | {{Aligned table&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|WikiProjectbasename}} | Removes &amp;quot;WikiProject&amp;quot; from a pagename.&lt;br /&gt;
       | {{tl|remove unranked}}     | Removes the string &amp;quot;unranked_&amp;quot; from the left of a string (taxonomy).&lt;br /&gt;
       | {{tl|ship prefix}}         | Returns the length of a ship&amp;#039;s name prefix, if listed (ship names).&lt;br /&gt;
       | {{tl|title year}}          | Returns the 4-digit year from a pagename, if any.&lt;br /&gt;
   }} }}&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----------- Insertion, replacement, length --------------&amp;gt;&lt;br /&gt;
| abbr2 = IRL&lt;br /&gt;
| sect2 = Insertion, replacement and length&lt;br /&gt;
| content2 =&lt;br /&gt;
 {{Aligned table |style=margin:0 auto 0;text-align:left;&lt;br /&gt;
  |  &amp;lt;!---(Insertion, replacement)---&amp;gt;&lt;br /&gt;
    {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
     | {{tl|strloc insert}} | Inserts a string at character location strloc, or appends if strloc&amp;lt;{{=}}0.&lt;br /&gt;
     | {{tl|loop}}          | Repeat character string a specified number of times.&lt;br /&gt;
     | {{tl|repeat}}        | Repeat a string a specified number of times.&lt;br /&gt;
     | {{tl|replace}}       | Returns the string, after replacing &amp;#039;&amp;#039;all&amp;#039;&amp;#039; occurrences of a specified string with another string.&lt;br /&gt;
     | {{tl|str rep}}       | Returns the string, after replacing the first occurrence of a specified string with another string.&lt;br /&gt;
    }}&lt;br /&gt;
  |  &amp;lt;!---(Length)---&amp;gt;&lt;br /&gt;
    {{Aligned table&lt;br /&gt;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
     | {{tl|str len}}       | Returns a string&amp;#039;s length.&lt;br /&gt;
     | {{tl|iflenge}}       | [if len]gth [g]reater than or [e]qual to.&lt;br /&gt;
     | {{tl|str ≥ len}}     | To check if a string is &amp;quot;longer or equally long&amp;quot; or &amp;quot;shorter&amp;quot; than a given length.&lt;br /&gt;
     | {{tl|str ≤ len}}     | To check if a string is &amp;quot;shorter or equally long&amp;quot; or &amp;quot;longer&amp;quot; than a given length.&lt;br /&gt;
     | {{tl|str ≠ len}}     | To check if a string is &amp;quot;not equal&amp;quot; or &amp;quot;equal&amp;quot; to a given length.&lt;br /&gt;
     | {{tl|str ≤ ≥ len}}   | To check if a string is &amp;quot;shorter&amp;quot;, &amp;quot;equal&amp;quot;, or &amp;quot;longer&amp;quot; than a given length.&lt;br /&gt;
 }} }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----------------- Analysis, technical -------------------&amp;gt;&lt;br /&gt;
| abbr3 = anlys/tech&lt;br /&gt;
| sect3 = Analysis and technical&lt;br /&gt;
| content3 =&lt;br /&gt;
 {{Aligned table |style=margin:0 auto 0;text-align:left;&lt;br /&gt;
  |  &amp;lt;!---(Analysis)---&amp;gt;&lt;br /&gt;
    {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
     | {{tl|str endswith}}  | To check if a string ends with a given string.&lt;br /&gt;
     | {{tl|str find}}&amp;lt;br/&amp;gt;{{tl|strfind short}} |style2.2=vertical-align:middle;|&amp;#039;&amp;#039;Returns the numerical location of a given string in a string.&amp;#039;&amp;#039;&lt;br /&gt;
     | {{tl|str find0}}     | Zero-based substring search.&lt;br /&gt;
     | {{tl|str sub find}}  | Searches a substring in a string at the given offset.&lt;br /&gt;
     | {{tl|str letter}}    | Returns the number of letters that begin a string.&lt;br /&gt;
     | {{tl|str number}}    | Returns the number of numbers that begin a string.&lt;br /&gt;
     | {{tl|str gtr str}}   | Compares two strings for alphabetical order, and returns a value accordingly.&lt;br /&gt;
    }}&lt;br /&gt;
  |  &amp;lt;!---(Analysis cont&amp;#039;d)---&amp;gt;&lt;br /&gt;
    {{Aligned table&lt;br /&gt;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
     | {{tl|ASCII code}}    | Returns the ASCII value of a single character.&lt;br /&gt;
     | {{tl|a or an}}       | Takes a noun and produces the appropriate indefinite article, based on whether the first letter is a vowel.&lt;br /&gt;
     | &amp;amp;nbsp; | &amp;amp;nbsp;&lt;br /&gt;
     &amp;lt;!---(Technical)---&amp;gt;&lt;br /&gt;
     | [[Module:String]]    | &lt;br /&gt;
     | [[mw:Help:Magic words|...Magic words]] | {{noitalic|About &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{padleft:&amp;amp;#124;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
     | [[mw:Help:Extension:ParserFunctions|...ParserFunctions]] | {{noitalic|About &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#titleparts:&amp;amp;#124;}}, {{#expr:&amp;amp;#124;}}, {{#ifeq:&amp;amp;#124;}}, &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; etc.}}&lt;br /&gt;
 }} }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--------------------- (disabled) ------------------------&amp;gt;&lt;br /&gt;
&amp;lt;!----&lt;br /&gt;
| group12 = Feature requests&lt;br /&gt;
| list12 =&lt;br /&gt;
* [[bugzilla:6455]] – Set $wgPFEnableStringFunctions = true on WMF wikis&lt;br /&gt;
* [[bugzilla:26092]] – Enable or install string parsing wikimarkup functionality on WMF wikis&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----Not in a navbox:&lt;br /&gt;
| group13 = [[Wikipedia:Template sandbox and test cases|Sandboxes, testcases]]&lt;br /&gt;
| list13 =&lt;br /&gt;
* {{tl|Str find/sandbox}}&lt;br /&gt;
* {{tl|Str index/getchar/sandbox}}&lt;br /&gt;
* {{tl|Str index/getchar/testcases}}&lt;br /&gt;
* {{tl|Str index/sandbox}}&lt;br /&gt;
* {{tl|Str index/testcases}}&lt;br /&gt;
* {{tl|Str index any/sandbox}}&lt;br /&gt;
* {{tl|Str index any/testcases}}&lt;br /&gt;
* {{tl|Str left/sandbox}}&lt;br /&gt;
* {{tl|Str len/core/sandbox}}&lt;br /&gt;
* {{tl|Str len/sandbox}}&lt;br /&gt;
* {{tl|Str len/testcases}}&lt;br /&gt;
* {{tl|Str rightc/testcases}}&lt;br /&gt;
* {{tl|Str ≠ len/sandbox}}&lt;br /&gt;
* {{tl|Str ≠ len/testcases}}&lt;br /&gt;
 -----&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----------------------- below ---------------------------&amp;gt;&lt;br /&gt;
| belowclass = hlist&lt;br /&gt;
| below =&lt;br /&gt;
* [[:Category:String manipulation templates]]&lt;br /&gt;
* [[m:Category:String templates]]&lt;br /&gt;
* [[:commons:Category:String manipulation templates]]&lt;br /&gt;
&lt;br /&gt;
| tracking = no &amp;lt;!--(keep all these string templates (by /doc pages) out of the tracking category)--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;{{Documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Amc-admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=18074&amp;oldid=prev</id>
		<title>208.108.154.64 at 12:26, 21 October 2016</title>
		<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=18074&amp;oldid=prev"/>
		<updated>2016-10-21T12:26:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Navbox with collapsible groups&lt;br /&gt;
| name = String-handling templates&lt;br /&gt;
| state = {{{state|expanded}}}&lt;br /&gt;
| bodyclass = plainlist&lt;br /&gt;
| title = String-handling templates&lt;br /&gt;
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!---------------------- Trimming -------------------------&amp;gt;&lt;br /&gt;
| abbr1 = trimmmmm&lt;br /&gt;
| sect1 = [[Trimming (computer programming)|Trimming]]&lt;br /&gt;
| content1 =&lt;br /&gt;
 {{Navbox |child&lt;br /&gt;
&lt;br /&gt;
  | group1 = By counting&lt;br /&gt;
  | list1 =&lt;br /&gt;
   {{Aligned table |fullwidth=on |style=text-align:left; |col1width=50%;&lt;br /&gt;
    | {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|str mid}}       | To return a substring specified by position and length.&lt;br /&gt;
       | {{tl|trunc}}         | To trim down to a specified number of characters.&lt;br /&gt;
       | {{tl|str left}}      | To trim down to a specified number of characters or duplicate the string to a specified number.&lt;br /&gt;
       | {{tl|str crop}}      | To crop a specified number of characters off the end.&lt;br /&gt;
       | {{tl|chop head and tail}} | To crop a specified number of characters off the beginning and end.&lt;br /&gt;
      }}&lt;br /&gt;
    | {{Aligned table butterst&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|str right}}     | To trim the first specified number of characters.&lt;br /&gt;
       | {{tl|str rightc}}    | To return a number of characters from the end, returns a parameter if the string is empty.&lt;br /&gt;
       | {{tl|str rightmost}} | To trim down to the last specified number of characters.&lt;br /&gt;
       | {{tl|str sub old}}   | To trim down to a specified number, starting at a given number from the left.&lt;br /&gt;
       | {{tl|str sub new}}   | Select a substr based on starting and ending index.&lt;br /&gt;
       | {{tl|str index}}     | Returns a given character from a string, but not accented letters.&lt;br /&gt;
   }} }}&lt;br /&gt;
&lt;br /&gt;
  | group2 = By checking&lt;br /&gt;
  | list2 =&lt;br /&gt;
   {{Aligned table |fullwidth=on |style=text-align:left; |col1width=50%;&lt;br /&gt;
    | {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|trim}}                | To trim any leading or trailing whitespace&lt;br /&gt;
       | {{tl|str letter/trim}}     | To trim down to the beginning letters.&lt;br /&gt;
       | {{tl|str number/trim}}     | To trim down to the beginning numbers.&lt;br /&gt;
       | {{tl|trim brackets}}       | To trim any leading or trailing square brackets.&lt;br /&gt;
      }}&lt;br /&gt;
    | {{Aligned table&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|first word}}          | To trim down to the first space.&lt;br /&gt;
       | {{tl|remove first word}}   | To remove anything before the first space.&lt;br /&gt;
       | {{tl|last word}}           | To trim down from the last space.&lt;br /&gt;
       | {{tl|remove last word}}    | To remove anything after the last space.&lt;br /&gt;
   }} }}&lt;br /&gt;
&lt;br /&gt;
  | group3 = Dedicated&lt;br /&gt;
  | list3 =&lt;br /&gt;
   {{Aligned table |fullwidth=on |style=text-align:left; |col1width=50%;&lt;br /&gt;
    | {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|delink}}              | Removes wikilink brackets (wikicode).&lt;br /&gt;
       | {{tl|remove file prefix}}  | Removes &amp;quot;File:&amp;quot; (or &amp;quot;Image:&amp;quot;) from filenames.&lt;br /&gt;
       | {{tl|PAGENAMEBASE}}        | To trim off any parenthesis text at the end of a string (disambiguation).&lt;br /&gt;
       | {{tl|title disambig text}} | Returns text in parenthesis at the end of a string (disambiguation).&lt;br /&gt;
      }}&lt;br /&gt;
    | {{Aligned table&lt;br /&gt;
       |col1style=width:12.5em;text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
       | {{tl|WikiProjectbasename}} | Removes &amp;quot;WikiProject&amp;quot; from a pagename.&lt;br /&gt;
       | {{tl|remove unranked}}     | Removes the string &amp;quot;unranked_&amp;quot; from the left of a string (taxonomy).&lt;br /&gt;
       | {{tl|ship prefix}}         | Returns the length of a ship&amp;#039;s name prefix, if listed (ship names).&lt;br /&gt;
       | {{tl|title year}}          | Returns the 4-digit year from a pagename, if any.&lt;br /&gt;
   }} }}&lt;br /&gt;
 }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----------- Insertion, replacement, length --------------&amp;gt;&lt;br /&gt;
| abbr2 = IRL&lt;br /&gt;
| sect2 = Insertion, replacement and length&lt;br /&gt;
| content2 =&lt;br /&gt;
 {{Aligned table |style=margin:0 auto 0;text-align:left;&lt;br /&gt;
  |  &amp;lt;!---(Insertion, replacement)---&amp;gt;&lt;br /&gt;
    {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
     | {{tl|strloc insert}} | Inserts a string at character location strloc, or appends if strloc&amp;lt;{{=}}0.&lt;br /&gt;
     | {{tl|loop}}          | Repeat character string a specified number of times.&lt;br /&gt;
     | {{tl|repeat}}        | Repeat a string a specified number of times.&lt;br /&gt;
     | {{tl|replace}}       | Returns the string, after replacing &amp;#039;&amp;#039;all&amp;#039;&amp;#039; occurrences of a specified string with another string.&lt;br /&gt;
     | {{tl|str rep}}       | Returns the string, after replacing the first occurrence of a specified string with another string.&lt;br /&gt;
    }}&lt;br /&gt;
  |  &amp;lt;!---(Length)---&amp;gt;&lt;br /&gt;
    {{Aligned table&lt;br /&gt;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
     | {{tl|str len}}       | Returns a string&amp;#039;s length.&lt;br /&gt;
     | {{tl|iflenge}}       | [if len]gth [g]reater than or [e]qual to.&lt;br /&gt;
     | {{tl|str ≥ len}}     | To check if a string is &amp;quot;longer or equally long&amp;quot; or &amp;quot;shorter&amp;quot; than a given length.&lt;br /&gt;
     | {{tl|str ≤ len}}     | To check if a string is &amp;quot;shorter or equally long&amp;quot; or &amp;quot;longer&amp;quot; than a given length.&lt;br /&gt;
     | {{tl|str ≠ len}}     | To check if a string is &amp;quot;not equal&amp;quot; or &amp;quot;equal&amp;quot; to a given length.&lt;br /&gt;
     | {{tl|str ≤ ≥ len}}   | To check if a string is &amp;quot;shorter&amp;quot;, &amp;quot;equal&amp;quot;, or &amp;quot;longer&amp;quot; than a given length.&lt;br /&gt;
 }} }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----------------- Analysis, technical -------------------&amp;gt;&lt;br /&gt;
| abbr3 = anlys/tech&lt;br /&gt;
| sect3 = Analysis and technical&lt;br /&gt;
| content3 =&lt;br /&gt;
 {{Aligned table |style=margin:0 auto 0;text-align:left;&lt;br /&gt;
  |  &amp;lt;!---(Analysis)---&amp;gt;&lt;br /&gt;
    {{Aligned table |style=padding-right:2.5em;&lt;br /&gt;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
     | {{tl|str endswith}}  | To check if a string ends with a given string.&lt;br /&gt;
     | {{tl|str find}}&amp;lt;br/&amp;gt;{{tl|strfind short}} |style2.2=vertical-align:middle;|&amp;#039;&amp;#039;Returns the numerical location of a given string in a string.&amp;#039;&amp;#039;&lt;br /&gt;
     | {{tl|str find0}}     | Zero-based substring search.&lt;br /&gt;
     | {{tl|str sub find}}  | Searches a substring in a string at the given offset.&lt;br /&gt;
     | {{tl|str letter}}    | Returns the number of letters that begin a string.&lt;br /&gt;
     | {{tl|str number}}    | Returns the number of numbers that begin a string.&lt;br /&gt;
     | {{tl|str gtr str}}   | Compares two strings for alphabetical order, and returns a value accordingly.&lt;br /&gt;
    }}&lt;br /&gt;
  |  &amp;lt;!---(Analysis cont&amp;#039;d)---&amp;gt;&lt;br /&gt;
    {{Aligned table&lt;br /&gt;
     |col1style=text-align:right;white-space:nowrap;padding-right:0.75em; |col2style=font-style:italic;&lt;br /&gt;
     | {{tl|ASCII code}}    | Returns the ASCII value of a single character.&lt;br /&gt;
     | {{tl|a or an}}       | Takes a noun and produces the appropriate indefinite article, based on whether the first letter is a vowel.&lt;br /&gt;
     | &amp;amp;nbsp; | &amp;amp;nbsp;&lt;br /&gt;
     &amp;lt;!---(Technical)---&amp;gt;&lt;br /&gt;
     | [[Module:String]]    | &lt;br /&gt;
     | [[mw:Help:Magic words|...Magic words]] | {{noitalic|About &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{padleft:&amp;amp;#124;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
     | [[mw:Help:Extension:ParserFunctions|...ParserFunctions]] | {{noitalic|About &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#titleparts:&amp;amp;#124;}}, {{#expr:&amp;amp;#124;}}, {{#ifeq:&amp;amp;#124;}}, &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; etc.}}&lt;br /&gt;
 }} }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--------------------- (disabled) ------------------------&amp;gt;&lt;br /&gt;
&amp;lt;!----&lt;br /&gt;
| group12 = Feature requests&lt;br /&gt;
| list12 =&lt;br /&gt;
* [[bugzilla:6455]] – Set $wgPFEnableStringFunctions = true on WMF wikis&lt;br /&gt;
* [[bugzilla:26092]] – Enable or install string parsing wikimarkup functionality on WMF wikis&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----Not in a navbox:&lt;br /&gt;
| group13 = [[Wikipedia:Template sandbox and test cases|Sandboxes, testcases]]&lt;br /&gt;
| list13 =&lt;br /&gt;
* {{tl|Str find/sandbox}}&lt;br /&gt;
* {{tl|Str index/getchar/sandbox}}&lt;br /&gt;
* {{tl|Str index/getchar/testcases}}&lt;br /&gt;
* {{tl|Str index/sandbox}}&lt;br /&gt;
* {{tl|Str index/testcases}}&lt;br /&gt;
* {{tl|Str index any/sandbox}}&lt;br /&gt;
* {{tl|Str index any/testcases}}&lt;br /&gt;
* {{tl|Str left/sandbox}}&lt;br /&gt;
* {{tl|Str len/core/sandbox}}&lt;br /&gt;
* {{tl|Str len/sandbox}}&lt;br /&gt;
* {{tl|Str len/testcases}}&lt;br /&gt;
* {{tl|Str rightc/testcases}}&lt;br /&gt;
* {{tl|Str ≠ len/sandbox}}&lt;br /&gt;
* {{tl|Str ≠ len/testcases}}&lt;br /&gt;
 -----&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!----------------------- below ---------------------------&amp;gt;&lt;br /&gt;
| belowclass = hlist&lt;br /&gt;
| below =&lt;br /&gt;
* [[:Category:String manipulation templates]]&lt;br /&gt;
* [[m:Category:String templates]]&lt;br /&gt;
* [[:commons:Category:String manipulation templates]]&lt;br /&gt;
&lt;br /&gt;
| tracking = no &amp;lt;!--(keep all these string templates (by /doc pages) out of the tracking category)--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;{{Documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>208.108.154.64</name></author>
	</entry>
	<entry>
		<id>https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=18022&amp;oldid=prev</id>
		<title>123.54.185.80 at 05:12, 22 January 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=18022&amp;oldid=prev"/>
		<updated>2013-01-22T05:12:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;big&amp;gt;List of templates in {{cat|String manipulation templates}}.&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;==Templates==&lt;br /&gt;
===[[Trim (programming)|Trimming]] templates===&lt;br /&gt;
&lt;br /&gt;
* {{tl|Trunc}} – To trim down to a specified number of characters.&lt;br /&gt;
* {{tl|Str left}} – To trim down to a specified number of characters, or duplicate the string to a specified number.&lt;br /&gt;
* {{tl|Str crop}} – To crop a specified number of characters off the end.&lt;br /&gt;
* {{tl|Chop head and tail}} — To crop a specified number of characters off the beginning and end.&lt;br /&gt;
* {{tl|Trim}} — To trim any leading or trailing whitespace.&lt;br /&gt;
* {{tl|First word}} — To trim down to the first space.&lt;br /&gt;
* {{tl|Remove first word}} — To remove anything before the first space.&lt;br /&gt;
* {{tl|Str letter/trim}} — To trim down to the beginning letters.&lt;br /&gt;
* {{tl|Str number/trim}} — To trim down to the beginning numbers.&lt;br /&gt;
* {{tl|Title without disambig}} — To trim off any parenthesis text at the end of a string.&lt;br /&gt;
* {{tl|Title disambig text}} – Returns text in parenthesis at the end of a string.&lt;br /&gt;
* {{tl|Str right}} — To trim the first specified number of characters.&lt;br /&gt;
* {{tl|Str rightc}} — To return a number of characters from the end, returns a parameter if the string is empty.&lt;br /&gt;
* {{tl|Str rightmost}} — To trim down to the last specified number of characters.&lt;br /&gt;
* {{tl|Str sub}} — To trim down to a specified number, starting at a given number from the left, less than 50.&lt;br /&gt;
* {{tl|Substr any}} — To trim down to a specified number, starting at a given number from the left, less than 50, can extract accented letters.&lt;br /&gt;
* {{tl|Str sub long}} — To trim down to a specified number, starting at a given number from the left, less than 100.&lt;br /&gt;
* {{tl|trim}} — Removes [[whitespace]] ({{tl|Strip whitespace}} does so too, but is less effective)&lt;br /&gt;
&lt;br /&gt;
===Inserting strings===&lt;br /&gt;
&lt;br /&gt;
* {{[[Template:Strloc insert|Strloc insert]]}} - Inserts a string at character location strloc, or appends if strloc&amp;lt;=0.&lt;br /&gt;
* {{[[Template:Strloc prefix|Strloc prefix]]}} - Extracts string prefix up to location strloc, or whole string if strloc&amp;lt;=0.&lt;br /&gt;
* {{[[Template:Str rep|Str rep]]}} — Returns the string, replacing the first occurrence of a specified string, with another string. Requires a match.&lt;br /&gt;
* {{[[Template:Str repc|Str repc]]}} — Returns the string, replacing the first occurrence of a specified string, with another string, if there is one.&lt;br /&gt;
* {{[[Template:Repeat|Repeat]]}} — Repeat character string n times&lt;br /&gt;
&lt;br /&gt;
===Analyzing strings templates===&lt;br /&gt;
&lt;br /&gt;
* {{tl|Str endswith}} – To check if a string ends with a given string.&lt;br /&gt;
* {{tl|Str find}} – Returns the numerical location of a given string in a string, up to 50 characters.&lt;br /&gt;
* {{tl|Str find long}} – Returns the numerical location of a given string in a string, up to 80 characters.&lt;br /&gt;
* {{tl|Strfind short}} – Searches for a short string in a longer (up to 99 char) string. Performs faster than {{tl|str find}}&lt;br /&gt;
* {{tl|Str find0}} – Very fast zero-based substring search with string support up to 90 characters.&lt;br /&gt;
* {{tl|Str sub find}} – Searches a substring in a string at the given offset.&lt;br /&gt;
* {{tl|Str index}} – Returns a given character from a string, but not accented letters.&lt;br /&gt;
* {{tl|Str index any}} – Returns a given character from a string, but not a space.&lt;br /&gt;
* {{tl|Chr}} – Returns a given character from a string, including a space.&lt;br /&gt;
* {{tl|Str len}} – Returns a string&amp;#039;s length. Can count up to 500 characters.&lt;br /&gt;
* {{tl|Strlen quick}} – Gets string length quickly (better performance), up to 70 long.&lt;br /&gt;
* {{tl|Strlen short}} – Gets length of short strings (1-50), using only 2 expansion levels.&lt;br /&gt;
* {{tl|Str letter}} — Returns the number of letters that begin a string.&lt;br /&gt;
* {{tl|Str number}} — Returns the number of numbers that begin a string.&lt;br /&gt;
* {{tl|Ship prefix}} — Returns the length of a ship name prefix, if listed.&lt;br /&gt;
&lt;br /&gt;
===String length comparison templates===&lt;br /&gt;
&lt;br /&gt;
* {{tl|Str ≥ len}} – To check if a string is &amp;quot;longer or equally long&amp;quot; or &amp;quot;shorter&amp;quot; than a given length.&lt;br /&gt;
* {{tl|Str ≤ len}} – To check if a string is &amp;quot;shorter or equally long&amp;quot; or &amp;quot;longer&amp;quot; than a given length.&lt;br /&gt;
* {{tl|Str ≠ len}} – To check if a string is &amp;quot;not equal&amp;quot; or &amp;quot;equal&amp;quot; to a given length.&lt;br /&gt;
* {{tl|Str ≤ ≥ len}} – To check if a string is &amp;quot;shorter&amp;quot;, &amp;quot;equal&amp;quot;, or &amp;quot;longer&amp;quot; than a given length.&lt;br /&gt;
&lt;br /&gt;
==Test cases==&lt;br /&gt;
[[Wikipedia:Template sandbox and test cases|Sandboxes and test cases]]:&lt;br /&gt;
&lt;br /&gt;
* {{tl|Str find/sandbox}}&lt;br /&gt;
* {{tl|Str index/getchar/sandbox}}&lt;br /&gt;
* {{tl|Str index/getchar/testcases}}&lt;br /&gt;
* {{tl|Str index/sandbox}}&lt;br /&gt;
* {{tl|Str index/testcases}}&lt;br /&gt;
* {{tl|Str index any/sandbox}}&lt;br /&gt;
* {{tl|Str index any/testcases}}&lt;br /&gt;
* {{tl|Str left/sandbox}}&lt;br /&gt;
* {{tl|Str len/core/sandbox}}&lt;br /&gt;
* {{tl|Str len/sandbox}}&lt;br /&gt;
* {{tl|Str len/testcases}}&lt;br /&gt;
* {{tl|Str rightc/testcases}}&lt;br /&gt;
* {{tl|Str ≠ len/sandbox}}&lt;br /&gt;
* {{tl|Str ≠ len/testcases}}&lt;br /&gt;
&lt;br /&gt;
==Technical developments==&lt;br /&gt;
&lt;br /&gt;
* [[mw:Help:Magic words]] – About &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{padleft:|}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* [[mw:Help:Extension:ParserFunctions]] – About &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#titleparts:|}}, {{#expr:|}}, {{#ifeq:|}}, &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; etc.&lt;br /&gt;
&lt;br /&gt;
;Feature requests:&lt;br /&gt;
&lt;br /&gt;
* [[bugzilla:6455]] - Set $wgPFEnableStringFunctions = true on WMF wikis&lt;br /&gt;
* [[bugzilla:26092]] - Enable or install string parsing wikimarkup functionality on WMF wikis&lt;br /&gt;
&lt;br /&gt;
Future:&lt;br /&gt;
* [[mw:Lua scripting]] ([[mw:Lua scripting/status#catlinks|status]]?)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Documentation shared content templates]]&lt;br /&gt;
[[Category:String manipulation templates| ]]&lt;br /&gt;
&lt;br /&gt;
[[bs:Šablon:Niz šabloni]]&lt;br /&gt;
[[gu:ઢાંચો:String templates see also text]]&lt;br /&gt;
[[jv:Cithakan:String templates see also]]&lt;br /&gt;
[[nso:Template:String templates see also text]]&lt;br /&gt;
[[zh:Template:字符串模板參見文字]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>123.54.185.80</name></author>
	</entry>
</feed>