<?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=123.54.185.80</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=123.54.185.80"/>
	<link rel="alternate" type="text/html" href="https://wiki.americanmusicclub.com/wiki/Special:Contributions/123.54.185.80"/>
	<updated>2026-04-05T18:07:39Z</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=18022</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=18022"/>
		<updated>2013-01-22T05:12:04Z</updated>

		<summary type="html">&lt;p&gt;123.54.185.80: &lt;/p&gt;
&lt;hr /&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&#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>