<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.tuxbox-neutrino.org/w/index.php?action=history&amp;feed=atom&amp;title=Hilfe%3ACategoryTree</id>
	<title>Hilfe:CategoryTree - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tuxbox-neutrino.org/w/index.php?action=history&amp;feed=atom&amp;title=Hilfe%3ACategoryTree"/>
	<link rel="alternate" type="text/html" href="https://wiki.tuxbox-neutrino.org/w/index.php?title=Hilfe:CategoryTree&amp;action=history"/>
	<updated>2026-04-07T19:14:52Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in TuxBoxWIKI</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.tuxbox-neutrino.org/w/index.php?title=Hilfe:CategoryTree&amp;diff=10376&amp;oldid=prev</id>
		<title>Dbt: Hilfe für KategorieBaum eingefügt, muss noch eingedeutscht werden, Funktion ist sehr Hilfreich für Sidebars!!!</title>
		<link rel="alternate" type="text/html" href="https://wiki.tuxbox-neutrino.org/w/index.php?title=Hilfe:CategoryTree&amp;diff=10376&amp;oldid=prev"/>
		<updated>2008-02-17T16:02:20Z</updated>

		<summary type="html">&lt;p&gt;Hilfe für KategorieBaum eingefügt, muss noch eingedeutscht werden, Funktion ist sehr Hilfreich für Sidebars!!!&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Usage ==&lt;br /&gt;
CategoryTree can be used in three ways: directly on the category pages, 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, 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 just do nothing. &lt;br /&gt;
&lt;br /&gt;
:'''''Note to bot users:''' bots and scripts that parse the HTML of category pages can use the &amp;lt;tt&amp;gt;notree&amp;lt;/tt&amp;gt; URL parameter to force the traditional output. However, HTML output is generally not stable, so it is recommended to change your script to use &amp;lt;tt&amp;gt;[[Extension:Query|query.php]]&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;[[Manual:api.php|api.php]]&amp;lt;/tt&amp;gt; to fetch category listings and similar.''&lt;br /&gt;
&lt;br /&gt;
=== The &amp;amp;lt;categorytree&amp;amp;gt; tag ===&lt;br /&gt;
Example:&amp;lt;pre&amp;gt;&amp;lt;categorytree mode=pages style=&amp;quot;float:right; clear:right; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;&amp;quot;&amp;gt;Manual&amp;lt;/categorytree&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;categorytree mode=pages style=&amp;quot;float:right; clear:right; margin-left:1ex; border:1px solid gray; padding:0.7ex; background-color:white;&amp;quot;&amp;gt;Hilfe&amp;lt;/categorytree&amp;gt;&lt;br /&gt;
The custom tag is called &amp;amp;lt;categorytree&amp;amp;gt;. For example, if you put&lt;br /&gt;
&amp;amp;lt;categorytree&amp;amp;gt;Foo&amp;amp;lt;/categorytree&amp;amp;gt; on a wiki page, it will show the contents&lt;br /&gt;
of category Foo as a dynamic tree on that page (see example to the right). The tag accepts the following&lt;br /&gt;
attributes, using a HTML-like syntax:&lt;br /&gt;
&lt;br /&gt;
;mode: can be &amp;quot;categories&amp;quot;, &amp;quot;pages&amp;quot; or &amp;quot;all&amp;quot; - see the ''[[#Modes|Modes]]'' section below for the meaning of each. The default for this attribute is controlled by &amp;lt;tt&amp;gt;$wgCategoryTreeDefaultMode&amp;lt;/tt&amp;gt;, and is initially set to &amp;lt;tt&amp;gt;CT_MODE_CATEGORIES&amp;lt;/tt&amp;gt;, the equivalent of setting the mode attribute to &amp;quot;categories&amp;quot;.&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.  ''(introduced between [[rev:r20410]] and [[rev:20840]], Mar 30 2007)'' - '''note:''' depth values greater than 1 do not (yet) work with $wgCategoryTreeDynamicTag enabled!&lt;br /&gt;
;onlyroot: set this to &amp;quot;on&amp;quot; to only show the &amp;quot;root&amp;quot; node of the tree initially. Equivalent to depth=&amp;quot;0&amp;quot;. ''(introduced in [[rev:20385]], March 13 2007)''&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. the mention of category Foo from the example.&lt;br /&gt;
;style: can be used to specify any CSS styles you would like for the tree.&lt;br /&gt;
&lt;br /&gt;
=== The &amp;lt;nowiki&amp;gt;{{#categorytree}}&amp;lt;/nowiki&amp;gt; parser function ===&lt;br /&gt;
Since [[rev:25825]] (2007-9-13), you can also use ''parser function'' 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;
&lt;br /&gt;
The special page is called Special:CategoryTree; there you can enter the&lt;br /&gt;
name of a category and then browse its content. The CategoryTree&lt;br /&gt;
extension also adds a tab for this special page to every category page.&lt;br /&gt;
&lt;br /&gt;
=== Modes ===&lt;br /&gt;
The category tree can be shown in different modes, determining what types of &amp;quot;leaves&amp;quot; the &amp;quot;tree&amp;quot; has:&lt;br /&gt;
* '''categories''' (constant &amp;lt;tt&amp;gt;CT_MODE_CATEGORIES&amp;lt;/tt&amp;gt;): show subcategories only&lt;br /&gt;
* '''pages''' (constant &amp;lt;tt&amp;gt;CT_MODE_PAGES&amp;lt;/tt&amp;gt;): show subcategories and pages, except images&lt;br /&gt;
* '''all''' (constant &amp;lt;tt&amp;gt;CT_MODE_ALL&amp;lt;/tt&amp;gt;): show all pages, subcategories, images, etc&lt;br /&gt;
&lt;br /&gt;
The CT_MODE_XXX constants can be used with configuration options (see below).&lt;br /&gt;
&lt;br /&gt;
== Weblinks ==&lt;br /&gt;
&lt;br /&gt;
*[[MW:Extension:CategoryTree#Usage|see more at Mediawiki Usage of CategoryTree]]&lt;/div&gt;</summary>
		<author><name>Dbt</name></author>
	</entry>
</feed>