<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ATrim_quotes%2Fdoc</id>
	<title>Template:Trim quotes/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ATrim_quotes%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Trim_quotes/doc&amp;action=history"/>
	<updated>2026-04-08T05:52:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Trim_quotes/doc&amp;diff=13141&amp;oldid=prev</id>
		<title>Caleb Cooper: Text replacement - &quot;[[WP:&quot; to &quot;[[Wikipedia:WP:&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Trim_quotes/doc&amp;diff=13141&amp;oldid=prev"/>
		<updated>2020-10-21T08:13:25Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;[[WP:&amp;quot; to &amp;quot;[[Wikipedia:WP:&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:13, 21 October 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Commons Import}}&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Commons Import}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This template trims matched pairs of leading and trailing single (&#039;) and double (&quot;) quotes and whitespace from a string. The string should be passed as the first unnamed parameter or using {{para|1}} or {{para|s}} if your string contains any &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; signs. &amp;lt;!--You may [[WP:SUBST|substitute]] this template - that is, if used as {{tlxs|trim brackets}}, the resulting wikicode is &quot;clean&quot;.--&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This template trims matched pairs of leading and trailing single (&#039;) and double (&quot;) quotes and whitespace from a string. The string should be passed as the first unnamed parameter or using {{para|1}} or {{para|s}} if your string contains any &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; signs. &amp;lt;!--You may [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Wikipedia:&lt;/ins&gt;WP:SUBST|substitute]] this template - that is, if used as {{tlxs|trim brackets}}, the resulting wikicode is &quot;clean&quot;.--&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Usage ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Trim_quotes/doc&amp;diff=12991&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} {{shortcut|Template:Trimq}} {{lua|Module:Trim quotes}} {{Commons Import}}  This template trims matched pairs of leading and trailing single (&#039;) and d...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Trim_quotes/doc&amp;diff=12991&amp;oldid=prev"/>
		<updated>2020-10-20T17:20:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{shortcut|Template:Trimq}} {{lua|Module:Trim quotes}} {{Commons Import}}  This template trims matched pairs of leading and trailing single (&amp;#039;) and d...&amp;quot;&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;
{{shortcut|Template:Trimq}}&lt;br /&gt;
{{lua|Module:Trim quotes}}&lt;br /&gt;
{{Commons Import}}&lt;br /&gt;
&lt;br /&gt;
This template trims matched pairs of leading and trailing single (&amp;#039;) and double (&amp;quot;) quotes and whitespace from a string. The string should be passed as the first unnamed parameter or using {{para|1}} or {{para|s}} if your string contains any &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; signs. &amp;lt;!--You may [[WP:SUBST|substitute]] this template - that is, if used as {{tlxs|trim brackets}}, the resulting wikicode is &amp;quot;clean&amp;quot;.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{tlx|trim quotes|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}} = &amp;#039;&amp;#039;text&amp;#039;&amp;#039; with any leading or trailing quotes 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 quotes|2=1=&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}} or {{tlx|1=trim quotes|2=s=&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}} = &amp;#039;&amp;#039;text&amp;#039;&amp;#039; with any leading or trailing quotes removed.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
*{{tlx|trim quotes|&amp;lt;nowiki&amp;gt;1= &amp;#039;Play it, Sam.&amp;#039; &amp;lt;/nowiki&amp;gt;}} produces &amp;lt;code&amp;gt;{{trim quotes|1= &amp;#039;Play it, Sam.&amp;#039; }}&amp;lt;/code&amp;gt;.&lt;br /&gt;
*{{tlx|trim quotes|&amp;lt;nowiki&amp;gt;1= &amp;quot;&amp;quot;Jimmy&amp;#039;s&amp;quot;&amp;quot;&amp;lt;/nowiki&amp;gt;}} produces &amp;lt;code&amp;gt;{{trim quotes|1= &amp;quot;&amp;quot;Jimmy&amp;#039;s&amp;quot;&amp;quot; }}&amp;lt;/code&amp;gt;&lt;br /&gt;
*{{tlx|trim quotes|&amp;lt;nowiki&amp;gt;1= Alex said &amp;quot;hello&amp;quot;&amp;lt;/nowiki&amp;gt;}} produces &amp;lt;code&amp;gt;{{trim quotes|1= Alex said &amp;quot;hello&amp;quot; }}&amp;lt;/code&amp;gt; (since the quotes aren&amp;#039;t at the beginning and end of the string)&lt;br /&gt;
*{{tlx|trim quotes|&amp;lt;nowiki&amp;gt;1=&amp;#039;&amp;#039;zut alors!&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;}} produces &amp;lt;code&amp;gt;{{trim quotes|1= &amp;#039;&amp;#039;zut alors!&amp;#039;&amp;#039; }}&amp;lt;/code&amp;gt; (the double-apostrophe that would otherwise display the phrase in italics is removed)&lt;br /&gt;
*{{tlx|trim quotes|&amp;lt;nowiki&amp;gt;1=&amp;#039;&amp;#039;&amp;#039;This place is not a place of honor&amp;#039;&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;}} produces &amp;lt;code&amp;gt;{{trim quotes|1= &amp;#039;&amp;#039;&amp;#039;This place is not a place of honor&amp;#039;&amp;#039;&amp;#039; }}&amp;lt;/code&amp;gt; (the triple-apostrophe that would otherwise display the phrase in boldface is removed)&lt;br /&gt;
*{{tlx|trim quotes|&amp;lt;nowiki&amp;gt;1=&amp;quot;fish&amp;quot; and &amp;quot;chips&amp;quot;&amp;lt;/nowiki&amp;gt;}} produces &amp;lt;code&amp;gt;{{trim quotes|1=&amp;quot;fish&amp;quot; and &amp;quot;chips&amp;quot;}}&amp;lt;/code&amp;gt; (the quotes at the beginning and end are removed, those in the middle are unaffected)&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 matched pairs of leading and trailing single and double quotes 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|trim}}&lt;br /&gt;
&lt;br /&gt;
{{String-handling templates |trim quotes}}&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{sandbox other||&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>