<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATrim_leading%2Fdoc</id>
	<title>Template:Trim leading/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ATrim_leading%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Trim_leading/doc&amp;action=history"/>
	<updated>2026-08-10T18:35:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:Trim_leading/doc&amp;diff=171176&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Template Doc Creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:Trim_leading/doc&amp;diff=171176&amp;oldid=prev"/>
		<updated>2023-07-24T00:22:33Z</updated>

		<summary type="html">&lt;p&gt;Template Doc Creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go at the bottom of this page. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{tlx|Trim leading | &amp;amp;lt;input&amp;amp;gt;&amp;amp;nbsp;| &amp;amp;lt;prefix&amp;amp;gt;&amp;amp;nbsp;}}&lt;br /&gt;
&lt;br /&gt;
Trims up to six instances of &amp;amp;lt;prefix&amp;amp;gt; (such as: 0 or &amp;quot;anti-&amp;quot;) from the beginning of &amp;amp;lt;input&amp;amp;gt;. &amp;amp;lt;Prefix&amp;amp;gt; is set to &amp;quot;0&amp;quot; by default (for removing leading zeroes from numbers). Template will not properly work beyond the first whitespace in the input.&lt;br /&gt;
&lt;br /&gt;
=== Limitations === &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;New code should strongly consider {{ml|string|replace}} or {{ml|MultiReplace|main}}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* For backward compatibility, both the input and pattern string are trimmed of surrounding whitespace before processing begins. This means you cannot remove three instances of &amp;quot;the &amp;quot; from &amp;quot;the the the thing&amp;quot;; instead you will remove  one instance of &amp;quot;the&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{tlx|Trim leading |duck duck duck goose&amp;amp;nbsp;|duck }} &amp;amp;rarr; {{Trim leading |duck duck duck goose |duck }}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Trim leading | duckduckduckgoose&amp;amp;nbsp;|duck}} &amp;amp;rarr; {{Trim leading | duckduckduckgoose |duck}}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Trim leading | 00000034&amp;amp;nbsp;}} &amp;amp;rarr; {{Trim leading | 00000034 }}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Trim leading | aaaaaa34 | a&amp;amp;nbsp;}} &amp;amp;rarr; {{Trim leading | aaaaaa34 | a }}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Trim leading | U+0034 |U+}} &amp;amp;rarr; {{Trim leading | U+0034 |U+}}&lt;br /&gt;
&lt;br /&gt;
{{tlx|Trim leading |anti-anti-neutrino&amp;amp;nbsp;|anti-}} &amp;amp;rarr; {{Trim leading |anti-anti-neutrino |anti-}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{string-handling templates}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>