<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://deeppolitics.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AChop_head_and_tail%2Fdoc</id>
	<title>Template:Chop head and tail/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://deeppolitics.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AChop_head_and_tail%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://deeppolitics.org/index.php?title=Template:Chop_head_and_tail/doc&amp;action=history"/>
	<updated>2026-12-02T00:50:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://deeppolitics.org/index.php?title=Template:Chop_head_and_tail/doc&amp;diff=31787&amp;oldid=prev</id>
		<title>WikiSpooks&gt;Robin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://deeppolitics.org/index.php?title=Template:Chop_head_and_tail/doc&amp;diff=31787&amp;oldid=prev"/>
		<updated>2015-12-05T03:12:10Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&amp;lt;code&amp;gt;{{Tlx|Chop head and tail|&amp;lt;string&amp;gt;|&amp;lt;number&amp;gt;}}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template removes &amp;lt;number&amp;gt; characters from the start and end of &amp;lt;string&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
: {{Tlx|Chop head and tail|12345654321|3}} gives {{Chop head and tail|12345654321|3}}.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Unlinking ====&lt;br /&gt;
This template can be used to &amp;quot;unlink&amp;quot; a linked parameter.&lt;br /&gt;
&lt;br /&gt;
: {{Tlx|Chop head and tail|&amp;lt;nowiki&amp;gt;[[Einstein]]&amp;lt;/nowiki&amp;gt;|2}} results in {{Chop head and tail|[[Einstein]]}}.&lt;br /&gt;
&lt;br /&gt;
Because the default value of &amp;lt;number&amp;gt; is 2, this can be shortened to &amp;lt;code&amp;gt;{{Tlx|Chop head and tail|&amp;lt;nowiki&amp;gt;[[Einstein]]&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
* Expensive.&lt;br /&gt;
* When used on strings with characters that carry a meaning in wiki-layout, this template will interpret the character as a layout instruction ([[bugzilla:12974]]). For example, {{Tlx|Chop head and tail|&amp;lt;nowiki&amp;gt;[[123;456]]&amp;lt;/nowiki&amp;gt;}} renders as&amp;lt;br /&amp;gt;{{Chop head and tail|[[123;456]]}}&lt;br /&gt;
* Supports the character set as defined by {{tl|Str index/getchar}}, so that e.g. {{Tlx|Chop head and tail|&amp;lt;nowiki&amp;gt;[[Nürnberg]]&amp;lt;/nowiki&amp;gt;}} renders correctly as {{Chop head and tail|[[Nürnberg]]|nocategory=true}}. However, not all characters are in this set.&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
* {{tl|Unlink}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{String-handling templates |trim}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- CATEGORIES BELOW THIS LINE, PLEASE: --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>WikiSpooks&gt;Robin</name></author>
	</entry>
</feed>