<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ATrim_brackets%2Fdoc</id>
	<title>Template:Trim brackets/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ATrim_brackets%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Trim_brackets/doc&amp;action=history"/>
	<updated>2026-07-16T22:21:01Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Template:Trim_brackets/doc&amp;diff=3700667&amp;oldid=prev</id>
		<title>imported&gt;BigBullfrog：​←建立内容为“{{NoteTA|G1=MediaWiki}}{{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt; {{shortcut|Template:Trimbr…”的新页面</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Trim_brackets/doc&amp;diff=3700667&amp;oldid=prev"/>
		<updated>2021-06-17T20:10:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=WP:AES&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:AES（页面不存在）&quot;&gt;←&lt;/a&gt;建立内容为“{{NoteTA|G1=MediaWiki}}{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt; {{shortcut|Template:Trimbr…”的新页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{NoteTA|G1=MediaWiki}}{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{shortcut|Template:Trimbr}}&lt;br /&gt;
{{lua|Module:String}}&lt;br /&gt;
&lt;br /&gt;
This template trims leading and trailing square brackets and whitespace from a string. This is similar to {{tl|delink}}, but it won&amp;#039;t remove brackets from the middle of the string. The string should be passed as the first unnamed parameter or using {{para|1}} if your string contains any &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; signs. You may [[WP:SUBST|substitute]] this template - that is, if used as {{tlxs|trim brackets}}, the resulting wikicode is &amp;quot;clean&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{tlx|trim brackets|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}} = &amp;#039;&amp;#039;text&amp;#039;&amp;#039; with any leading or trailing square brackets removed (as long as &amp;#039;&amp;#039;text&amp;#039;&amp;#039; doesn&amp;#039;t contain any &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; signs).&lt;br /&gt;
&lt;br /&gt;
{{tlx|1=trim brackets|2=1=&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}} = &amp;#039;&amp;#039;text&amp;#039;&amp;#039; with any leading or trailing square brackets removed.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
*&amp;quot;{{tlx|trim brackets|&amp;lt;nowiki&amp;gt;1= [[abc]] &amp;lt;/nowiki&amp;gt;}}&amp;quot; produces &amp;quot;{{trim brackets|1= [[abc]] }}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;{{tlx|trim brackets|&amp;lt;nowiki&amp;gt;1= [[abc]], [[def]], and [[ghi]] &amp;lt;/nowiki&amp;gt;}}&amp;quot; produces &amp;quot;{{trim brackets|1= [[abc]], [[def]], and [[ghi]] }}&amp;quot;&amp;lt;br /&amp;gt;(&amp;quot;{{tlx|delink|&amp;lt;nowiki&amp;gt;1= [[abc]], [[def]], and [[ghi]] &amp;lt;/nowiki&amp;gt;}}&amp;quot; produces &amp;quot;{{delink|1= [[abc]], [[def]], and [[ghi]] }}&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
*&amp;quot;{{tlx|trim brackets|&amp;lt;nowiki&amp;gt;1= [[abc|xyz]] &amp;lt;/nowiki&amp;gt;}}&amp;quot; produces &amp;quot;{{trim brackets|1= [[abc|xyz]] }}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Template data ==&lt;br /&gt;
{{TemplateDataHeader}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
        &amp;quot;description&amp;quot;: &amp;quot;The template trims leading and trailing square brackets from a string.&amp;quot;,&lt;br /&gt;
        &amp;quot;params&amp;quot;: {&lt;br /&gt;
                &amp;quot;1&amp;quot;: {&lt;br /&gt;
                        &amp;quot;label&amp;quot;: &amp;quot;String&amp;quot;,&lt;br /&gt;
                        &amp;quot;description&amp;quot;: &amp;quot;The string to be trimmed&amp;quot;,&lt;br /&gt;
                        &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
                        &amp;quot;required&amp;quot;: true&lt;br /&gt;
                }&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|delink}}, which does nearly the exact same thing, but also removes balanced pairs of square brackets that aren&amp;#039;t leading and trailing and has additional options.&lt;br /&gt;
* {{tl|trim}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{String-handling templates |trim brackets}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:字符串處理模板]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;BigBullfrog</name></author>
	</entry>
</feed>