<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AString_templates_see_also_text</id>
	<title>Template:String templates see also text - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AString_templates_see_also_text"/>
	<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=Template:String_templates_see_also_text&amp;action=history"/>
	<updated>2026-08-17T07:30:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.freecapitalists.org/index.php?title=Template:String_templates_see_also_text&amp;diff=14500&amp;oldid=prev</id>
		<title>John James: Created page with &quot;Trimming templates:  * {{tl|Trunc}} – To trim down to a specified number of characters. * {{tl|Str left}} – To trim down to a specified number of chara...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=Template:String_templates_see_also_text&amp;diff=14500&amp;oldid=prev"/>
		<updated>2011-04-27T13:31:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Trim_(programming)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Trim (programming) (page does not exist)&quot;&gt;Trimming&lt;/a&gt; templates:  * {{tl|Trunc}} – To trim down to a specified number of characters. * {{tl|Str left}} – To trim down to a specified number of chara...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&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 trim the first specified number of characters, 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;
&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;
&lt;br /&gt;
Analyzing strings:&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 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;
[[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 stuff:&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;
&amp;lt;noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>John James</name></author>
	</entry>
</feed>