<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ADelink%2Fdoc</id>
	<title>Template:Delink/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.randombell.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ADelink%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Template:Delink/doc&amp;action=history"/>
	<updated>2026-04-05T15:06:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.randombell.com/index.php?title=Template:Delink/doc&amp;diff=1735&amp;oldid=prev</id>
		<title>Randombell: Created page with &quot;{{cascade-protected template}} {{Documentation subpage}} {{lua|Module:Delink}} &lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&gt;   This template removes links from wikitext. It de-links wikilinks and URL links, removes HTML comments, and normalises whitespace. It handles most wikitext correctly, including category links, the colon trick, the pipe trick (normal and reverse), nested wikilinks, and inva...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.randombell.com/index.php?title=Template:Delink/doc&amp;diff=1735&amp;oldid=prev"/>
		<updated>2025-08-19T18:21:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{cascade-protected template}} {{Documentation subpage}} {{lua|Module:Delink}} &amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;   This template removes links from wikitext. It de-links wikilinks and URL links, removes HTML comments, and normalises whitespace. It handles most wikitext correctly, including category links, the &lt;a href=&quot;/index.php?title=Help:Colon_trick&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Colon trick (page does not exist)&quot;&gt;colon trick&lt;/a&gt;, the &lt;a href=&quot;/index.php?title=Help:Pipe_trick&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Pipe trick (page does not exist)&quot;&gt;pipe trick&lt;/a&gt; (normal and reverse), nested wikilinks, and inva...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{cascade-protected template}}&lt;br /&gt;
{{Documentation subpage}}&lt;br /&gt;
{{lua|Module:Delink}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This template removes links from wikitext. It de-links wikilinks and URL links, removes HTML comments, and normalises whitespace. It handles most wikitext correctly, including category links, the [[Help:Colon trick|colon trick]], the [[Help:Pipe trick|pipe trick]] (normal and reverse), nested wikilinks, and invalid link characters.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
* Basic&lt;br /&gt;
*: {{tlx|delink|&amp;#039;&amp;#039;text&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
* All parameters&lt;br /&gt;
*: &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{delink&lt;br /&gt;
| 1          =&lt;br /&gt;
| wikilinks  = no&lt;br /&gt;
| urls       = no&lt;br /&gt;
| comments   = no&lt;br /&gt;
| whitespace = no&lt;br /&gt;
| refs       = yes&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; - the text to be de-linked.&lt;br /&gt;
*&amp;lt;code&amp;gt;wikilinks&amp;lt;/code&amp;gt;&lt;br /&gt;
*: - if set to &amp;quot;no&amp;quot;, &amp;quot;n&amp;quot;, &amp;quot;false&amp;quot;, or &amp;quot;0&amp;quot;, wikilinks are not de-linked.&lt;br /&gt;
*: - if set to &amp;quot;target&amp;quot;, wikilinks are reduced to the target portion of a wikilink ({{elc|{{vr|{{var|target}}}}|{{vr|{{var|label}}}}}} → {{samp|{{vr|{{var|target}}}}}})&lt;br /&gt;
*&amp;lt;code&amp;gt;urls&amp;lt;/code&amp;gt; - if set to &amp;quot;no&amp;quot;, &amp;quot;n&amp;quot;, &amp;quot;false&amp;quot;, or &amp;quot;0&amp;quot;, URL links are not de-linked.&lt;br /&gt;
*&amp;lt;code&amp;gt;comments&amp;lt;/code&amp;gt; - if set to &amp;quot;no&amp;quot;, &amp;quot;n&amp;quot;, &amp;quot;false&amp;quot;, or &amp;quot;0&amp;quot;, HTML comments are not removed.&lt;br /&gt;
*&amp;lt;code&amp;gt;whitespace&amp;lt;/code&amp;gt; - if set to &amp;quot;no&amp;quot;, &amp;quot;n&amp;quot;, &amp;quot;false&amp;quot;, or &amp;quot;0&amp;quot;, whitespace is not normalised. The normalisation makes the whitespace of the resulting text look as if it had been put through the MediaWiki parser. For example, single newlines are converted to a single space, but double newlines are left alone.&lt;br /&gt;
*&amp;lt;code&amp;gt;refs&amp;lt;/code&amp;gt; - (experimental) if set to &amp;quot;yes&amp;quot;, &amp;quot;y&amp;quot;, &amp;quot;true&amp;quot;, or &amp;quot;1&amp;quot;, removes references. This is not recommended, as only the &amp;lt;sup&amp;gt;[1]&amp;lt;/sup&amp;gt;, &amp;lt;sup&amp;gt;[2]&amp;lt;/sup&amp;gt;, etc. markers will be removed - the references themselves will still appear at the end of the page. There is no known workaround for this problem as of April 2014.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{delink|[[Foo]]}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{delink|[[Foo]]}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{delink|[[Foo|Bar]]}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{delink|[[Foo|Bar]]}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{delink|[[Foo|Bar]]|wikilinks=target}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{delink|[[Foo|Bar]]|wikilinks=target}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{delink|[[Foo]], [[bar]], and [[baz]].}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{delink|[[Foo]], [[bar]], and [[baz]].}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{delink|I visited [https://www.example.com example.com].}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{delink|I visited [https://www.example.com example.com].}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{delink|Foo}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{delink|Foo}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Non-examples==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Output&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline&amp;gt;{{delink|https://www.example.com}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{delink|https://www.example.com}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*{{tl|trim brackets}}&lt;br /&gt;
*{{tl|delink question hyphen-minus}}&lt;br /&gt;
* {{tl|Linked}} – links if not already linked&lt;br /&gt;
&lt;br /&gt;
{{String-handling templates|delink}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Randombell</name></author>
	</entry>
</feed>