<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://asheron.info/wiki/index.php?action=history&amp;feed=atom&amp;title=How_To_Use_Category_Trees</id>
	<title>How To Use Category Trees - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://asheron.info/wiki/index.php?action=history&amp;feed=atom&amp;title=How_To_Use_Category_Trees"/>
	<link rel="alternate" type="text/html" href="https://asheron.info/wiki/index.php?title=How_To_Use_Category_Trees&amp;action=history"/>
	<updated>2026-04-15T08:29:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://asheron.info/wiki/index.php?title=How_To_Use_Category_Trees&amp;diff=104662&amp;oldid=prev</id>
		<title>imported&gt;Tlosk at 14:57, 20 May 2009</title>
		<link rel="alternate" type="text/html" href="https://asheron.info/wiki/index.php?title=How_To_Use_Category_Trees&amp;diff=104662&amp;oldid=prev"/>
		<updated>2009-05-20T14:57:15Z</updated>

		<summary type="html">&lt;p&gt;&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 09:57, 20 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&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;{{Related|Help:Contents|Wiki Markup Reference|List of Categories}}&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;{{Related|Help:Contents|Wiki Markup Reference|List of Categories}}&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;A Category Tree provides a dynamic view of category structure as a tree. You can collapse or hide the branches of the tree and specify whether to display just categories, or also the individual pages within the categories. This function requires the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[&lt;/del&gt;[http://www.mediawiki.org/wiki/Extension:CategoryTree CategoryTree Extension&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]&lt;/del&gt;] be installed.&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;A Category Tree provides a dynamic view of category structure as a tree. You can collapse or hide the branches of the tree and specify whether to display just categories, or also the individual pages within the categories. This function requires the [http://www.mediawiki.org/wiki/Extension:CategoryTree CategoryTree Extension] be installed.&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>imported&gt;Tlosk</name></author>
	</entry>
	<entry>
		<id>https://asheron.info/wiki/index.php?title=How_To_Use_Category_Trees&amp;diff=104661&amp;oldid=prev</id>
		<title>imported&gt;Tlosk at 14:57, 20 May 2009</title>
		<link rel="alternate" type="text/html" href="https://asheron.info/wiki/index.php?title=How_To_Use_Category_Trees&amp;diff=104661&amp;oldid=prev"/>
		<updated>2009-05-20T14:57:01Z</updated>

		<summary type="html">&lt;p&gt;&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 09:57, 20 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&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;{{Related|Help:Contents|Wiki Markup Reference|List of Categories}}&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;{{Related|Help:Contents|Wiki Markup Reference|List of Categories}}&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;A Category Tree provides a dynamic view of category structure as a tree. You can collapse or hide the branches of the tree and specify whether to display just categories, or also the individual pages within the categories.&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;A Category Tree provides a dynamic view of category structure as a tree. You can collapse or hide the branches of the tree and specify whether to display just categories, or also the individual pages within the categories&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. This function requires the [[http://www.mediawiki.org/wiki/Extension:CategoryTree CategoryTree Extension]] be installed&lt;/ins&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>imported&gt;Tlosk</name></author>
	</entry>
	<entry>
		<id>https://asheron.info/wiki/index.php?title=How_To_Use_Category_Trees&amp;diff=104660&amp;oldid=prev</id>
		<title>imported&gt;Tlosk: Help page for Category Trees</title>
		<link rel="alternate" type="text/html" href="https://asheron.info/wiki/index.php?title=How_To_Use_Category_Trees&amp;diff=104660&amp;oldid=prev"/>
		<updated>2009-05-20T14:54:33Z</updated>

		<summary type="html">&lt;p&gt;Help page for Category Trees&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RightToC}}&lt;br /&gt;
{{Related|Help:Contents|Wiki Markup Reference|List of Categories}}&lt;br /&gt;
&lt;br /&gt;
A Category Tree provides a dynamic view of category structure as a tree. You can collapse or hide the branches of the tree and specify whether to display just categories, or also the individual pages within the categories.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
CategoryTree can be used in three ways: &lt;br /&gt;
* directly on the category pages, &lt;br /&gt;
* as a &amp;quot;custom tag&amp;quot; (or &amp;quot;parser function&amp;quot;) to show a category structure in-line on a wiki page, &lt;br /&gt;
* and as a special page.&lt;br /&gt;
&lt;br /&gt;
The CategoryTree extension adds &amp;lt;nowiki&amp;gt;[+]&amp;lt;/nowiki&amp;gt; &amp;quot;expand&amp;quot; widgets to the subcategories listed on category pages. If Javascript is disabled, those widgets takes you to the category page.&lt;br /&gt;
&lt;br /&gt;
=== The &amp;amp;lt;categorytree&amp;amp;gt; tag ===&lt;br /&gt;
Example (click + box to expand the example of the Help Category to the right):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;categorytree mode=pages&amp;gt;Help&amp;lt;/categorytree&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;categorytree mode=pages depth=0 style=&amp;quot;float:right; clear:right; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;&amp;quot;&amp;gt;Help&amp;lt;/categorytree&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The custom tag is called &amp;amp;lt;categorytree&amp;amp;gt;. For example, if you put &amp;amp;lt;categorytree&amp;amp;gt;Foo&amp;amp;lt;/categorytree&amp;amp;gt; on a wiki page, it will show the contents of category Foo as a dynamic tree on that page (see example to the right). &amp;lt;span id=&amp;quot;options&amp;quot;&amp;gt;The tag accepts the following attributes, using a HTML-like syntax&amp;lt;/span&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
;mode: determines which pages are shown in the tree. This may be overridden by the use of the &amp;lt;tt&amp;gt;namespaces&amp;lt;/tt&amp;gt; option. Possible values:&lt;br /&gt;
:;categories: show subcategories only (configuration constant &amp;lt;tt&amp;gt;CT_MODE_CATEGORIES&amp;lt;/tt&amp;gt;)&lt;br /&gt;
:;pages: show subcategories and pages, except images (configuration constant &amp;lt;tt&amp;gt;CT_MODE_PAGES&amp;lt;/tt&amp;gt;)&lt;br /&gt;
:;all: show all pages, subcategories, images, etc  (configuration constant &amp;lt;tt&amp;gt;CT_MODE_ALL&amp;lt;/tt&amp;gt;)&lt;br /&gt;
:;parents: list parent categories instead of subcategories (configuration constant &amp;lt;tt&amp;gt;CT_MODE_PARENTS&amp;lt;/tt&amp;gt;). This puts CategoryTree into &amp;quot;inverse&amp;quot; operation. &lt;br /&gt;
;depth: determines how many levels of the tree are shown initially. Default is 1, 0 means only the root node. The maximum value depends on the mode specified, and on the $wgCategoryTreeMaxDepth option.&lt;br /&gt;
;&amp;lt;s&amp;gt;onlyroot&amp;lt;/s&amp;gt;: Deprecated as of July 2008: use &amp;lt;tt&amp;gt;depth=&amp;quot;0&amp;quot;&amp;lt;/tt&amp;gt; instead.&lt;br /&gt;
;hideroot: set this to &amp;quot;on&amp;quot; to hide the &amp;quot;root&amp;quot; node of the tree, i.e. &amp;lt;tt&amp;gt;hideroot=&amp;quot;on&amp;quot;&amp;lt;/tt&amp;gt;. It will not display the category Foo in the example.&lt;br /&gt;
;hideprefix: determines when the namespace prefix should be hidden from entries in the tree. Possible values are:&lt;br /&gt;
:;always: always hide the prefix. Should be used only if all pages come from the same namespace (configuration constant &amp;lt;tt&amp;gt;CT_MODE_CT_HIDEPREFIX_ALWAYS&amp;lt;/tt&amp;gt;).&lt;br /&gt;
:;never: never hide the namespace prefix, not even for categories (configuration constant &amp;lt;tt&amp;gt;CT_MODE_CT_HIDEPREFIX_NEVER&amp;lt;/tt&amp;gt;).&lt;br /&gt;
:;auto: hide the namespace of categories, if only categories are shown, as with &amp;lt;tt&amp;gt;mode=&amp;quot;categories&amp;quot;&amp;lt;/tt&amp;gt; (configuration constant &amp;lt;tt&amp;gt;CT_MODE_CT_HIDEPREFIX_AUTO&amp;lt;/tt&amp;gt;); This is equivalent to the old default behavior.&lt;br /&gt;
:;categories: always hide the namespace of categories, but show all other prefixes (configuration constant &amp;lt;tt&amp;gt;CT_MODE_CT_HIDEPREFIX_CATEGORIES&amp;lt;/tt&amp;gt;). This is the new default behavior.&lt;br /&gt;
;showcount: show the number of entries in subcategories. This is disabled per default for category trees inlined on pages, but enabled per default in category listings an on Special:CategoryTree.&lt;br /&gt;
;namespaces: a list of namespaces from which pages should be shown in the tree. The entries in the list must be namespace names, separated by spaces. The main namespaces can be represented by &amp;quot;-&amp;quot; or &amp;quot;0&amp;quot;. This overrides the &amp;lt;tt&amp;gt;mode&amp;lt;/tt&amp;gt; option.&lt;br /&gt;
;class, style, id, &amp;#039;&amp;#039;etc&amp;#039;&amp;#039;: The &amp;amp;lt;categorytree&amp;amp;gt; tag supports all standard HTML attributes for block elements.&lt;br /&gt;
&lt;br /&gt;
=== The &amp;lt;nowiki&amp;gt;{{#categorytree}}&amp;lt;/nowiki&amp;gt; parser function ===&lt;br /&gt;
You can also use &amp;#039;&amp;#039;parser function&amp;#039;&amp;#039; syntax to place a category tree on a page. This works just like the &amp;amp;lt;categorytree&amp;amp;gt; tag, using a different syntax, e.g. &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{#categorytree:Foo}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;; options can be specified using the syntax for named template parameters, e.g. &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{#categorytree:Foo|hideroot|mode=pages}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Using the parser function syntax has the advantage that it allows you to use magic words, templates and template parameters when specifying the category to show. Some examples:&lt;br /&gt;
* Using a magic variable to show &amp;quot;this pages&amp;quot; category tree (may be useful on category description pages): &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{#categorytree:{{PAGENAME}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* Using a template to specify the category: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{#categorytree:{{root category}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; - the name of the root category would be defined by the contents of Template:Root_category.&lt;br /&gt;
* Using a template parameter to specify the category, when using CategoryTree inside a template: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{#categorytree:{{{1}}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt; in Template:Baz can be called using &amp;lt;nowiki&amp;gt;{{Baz|Foo}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Special:CategoryTree page ===&lt;br /&gt;
The special page is called [[:Special:CategoryTree]]; there you can enter the name of a category and then browse its content.&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Tlosk</name></author>
	</entry>
</feed>