<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.americanmusicclub.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=208.108.154.64</id>
	<title>The Official Website for Mark Eitzel &amp; American Music Club - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.americanmusicclub.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=208.108.154.64"/>
	<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/wiki/Special:Contributions/208.108.154.64"/>
	<updated>2026-04-08T22:38:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=18074</id>
		<title>Template:String-handling templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/index.php?title=Template:String-handling_templates&amp;diff=18074"/>
		<updated>2016-10-21T12:26:47Z</updated>

		<summary type="html">&lt;p&gt;208.108.154.64: &lt;/p&gt;
&lt;hr /&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&#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 &#039;&#039;all&#039;&#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&#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;|&#039;&#039;Returns the numerical location of a given string in a string.&#039;&#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&#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>
</feed>