<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://commons.islamical.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ASuppress_categories%2Fdoc</id>
	<title>Template:Suppress categories/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://commons.islamical.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ASuppress_categories%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://commons.islamical.org/w/index.php?title=Template:Suppress_categories/doc&amp;action=history"/>
	<updated>2026-11-10T01:05:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://commons.islamical.org/w/index.php?title=Template:Suppress_categories/doc&amp;diff=6922&amp;oldid=prev</id>
		<title>Mojtabakd: creating a template</title>
		<link rel="alternate" type="text/html" href="https://commons.islamical.org/w/index.php?title=Template:Suppress_categories/doc&amp;diff=6922&amp;oldid=prev"/>
		<updated>2026-11-04T16:53:42Z</updated>

		<summary type="html">&lt;p&gt;creating a template&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Lua|Module:Suppress categories}}&lt;br /&gt;
{{TemplateBox&lt;br /&gt;
  |1        = 1&lt;br /&gt;
  |1label-en= input text&lt;br /&gt;
  |1type    = content&lt;br /&gt;
  |1stat    = required&lt;br /&gt;
&lt;br /&gt;
  |name               = Suppress categories&lt;br /&gt;
  |desc-td = Removes category links from wikitext, including categories generated by templates.&lt;br /&gt;
  |desc-td-en = This template strips categories from wikitext. It can also remove categories generated by transcluded templates.&lt;br /&gt;
  |desc               = This template strips [[w:en:Help:Category|categories]] from [[w:en:Help:Wiki markup|wikitext]]. For example, if passed the code &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;foo[[Category:Some category]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot;, it will return only &amp;quot;&amp;lt;code&amp;gt;foo&amp;lt;/code&amp;gt;&amp;quot;. It can be used to strip categories from templates as well; if passed the code &amp;quot;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{my template}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;quot;, it will return the template output minus the categories.&lt;br /&gt;
&lt;br /&gt;
The template properly handles categories escaped with the [[w:en:Help:Colon trick|colon trick]], categories whose names include invalid characters such as &amp;quot;&amp;lt;code&amp;gt;&amp;gt;&amp;lt;/code&amp;gt;&amp;quot;, and categories that are surrounded with [[w:en:WP:NOWIKI|nowiki]] tags. However, it does not support complex wikitext such as nested links or [[w:en:WP:MAGIC|magic words]] like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;__TOC__&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Even so, it should still remove the vast majority of categories from any given wikitext.&lt;br /&gt;
    |desc-td-en       = This template strips categories from wikitext. For example, if passed the code &amp;quot;&amp;lt;nowiki&amp;gt;foo[[Category:Some category]]&amp;lt;/nowiki&amp;gt;&amp;quot;, it will return only &amp;quot;foo&amp;quot;. It can be used to strip categories from templates as well; if passed the code &amp;quot;&amp;lt;nowiki&amp;gt;{{my template}}&amp;lt;/nowiki&amp;gt;&amp;quot;, it will return the template output minus the categories.&lt;br /&gt;
  |example            = &amp;lt;nowiki&amp;gt;foo[[Category:Piped link|bar]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
  |example-value      = {{suppress categories|foo[[Category:Piped link|bar]]}}&lt;br /&gt;
  |namespace          = all&lt;br /&gt;
  |usergroup          = all&lt;br /&gt;
  |useTemplateData    = only&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Mojtabakd</name></author>
	</entry>
</feed>