다른 명령
The <tvar name=1><categorytree></tvar> tag
Example. The result can be seen in the box below and on the right: </translate>
<categorytree mode="pages">oracle</categorytree>
oracle 분류가 없습니다
틀:Anchor <translate> The custom tag is called <tvar name=tag><categorytree></tvar>. For example, if you put <tvar name=code><categorytree>Foo</categorytree></tvar> on a wiki page, it will show the contents of category Foo as a dynamic tree on that page (see example to the right). The tag accepts the following attributes, using a HTML-like syntax:</translate>
- mode
- <translate> determines which pages are shown in the tree. This may be overridden by the use of the <tvar name=option>
namespaces
</tvar> option. Possible values:</translate>- categories
- <translate> show subcategories only (configuration constant <tvar name=const>
0
</tvar>)</translate> - pages
- <translate> show subcategories and pages, except images (configuration constant <tvar name=const>
10
</tvar>), limited to 200 pages</translate> - all
- <translate> show all pages, subcategories, images, etc. (configuration constant <tvar name=const>
20
</tvar>)</translate> - parents
- <translate> list parent categories instead of subcategories (configuration constant <tvar name=const>
100
</tvar>). This puts CategoryTree into "inverse" operation (supported since <tvar name=rev>틀:Rev</tvar>, July 2008).</translate>
- depth
- <translate> 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 <tvar name=maxdepth>틀:Phpi</tvar> option. (Introduced between <tvar name=rev1>틀:Rev</tvar> and <tvar name=rev2>틀:Rev</tvar>, Mar 30 2007; fully functional even with <tvar name=dynamic>틀:Phpi</tvar> since <tvar name=rev3>틀:Rev</tvar>, July 2008.)</translate>
onlyroot- <translate>
set this to "<tvar name=val>on</tvar>" to only show the "root" node of the tree initially. Equivalent to <tvar name=code>Deprecated as of <tvar name=rev2>틀:Rev</tvar>, July 2008: use <tvar name=code>depth="0"
</tvar>. (Introduced in <tvar name=rev1>틀:Rev</tvar>, March 13 2007.)depth="0"
</tvar> instead.</translate> - hideroot
- <translate> set this to "<tvar name=val>on</tvar>" to hide the "root" node of the tree, i.e. <tvar name=code>
hideroot=on
</tvar>. For example, it will not display the category name Foo.</translate> - hideprefix
- <translate> determines when the namespace prefix should be hidden from entries in the tree (since <tvar name=rev>틀:Rev</tvar>, July 2008). Possible values are:</translate>
- always
- <translate> always hide the prefix. Should be used only if all pages come from the same namespace (configuration constant <tvar name=const>
10
</tvar>).</translate> - never
- <translate> never hide the namespace prefix, not even for categories (configuration constant <tvar name=const>
0
</tvar>).</translate> - auto
- <translate> hide the namespace of categories if only categories are shown, as with <tvar name=code>
mode="categories"
</tvar> (configuration constant <tvar name=const>30
</tvar>). This is equivalent to the old default behavior (before Jun 2008).</translate> - categories
- <translate> always hide the namespace of categories, but show all other prefixes (configuration constant <tvar name=const>
20
</tvar>). This is the new default behavior (since <tvar name=rev>틀:Rev</tvar>, July 2008).</translate>
- showcount
- <translate> set this to "<tvar name=val>on</tvar>" to show the number of entries in subcategories, i.e. <tvar name=code>
showcount="on"
</tvar> (since <tvar name=rev>틀:Rev</tvar>, July 2008).</translate> <translate> This is disabled per default for category trees inlined on pages, but enabled per default in category listings and on <tvar name=1>Special:CategoryTree</tvar>.</translate> - notranslations
- <translate> set this to "<tvar name=1>on</tvar>" to hide all translations pages corresponding to the pages pertaining to the category, i.e. <tvar name=2>
notranslations="on"
</tvar> (since <tvar name=3>틀:Gerrit</tvar>, November 2019).</translate> <translate> This is disabled by default.</translate> <translate> If this option is set to "<tvar name=1>on</tvar>", instead of the different translations (e.g. Page, Page/en, Page/fr, Page/de) only the standard translation "Page" is displayed and all translations are suppressed.</translate> 틀:Note - namespaces
- <translate> a list of namespaces from which pages should be shown in the tree (since <tvar name=rev>틀:Rev</tvar>, July 2008). The entries in the list must be namespace names, separated by spaces. The main namespace can be represented by "<tvar name=val1>-</tvar>" or "<tvar name=val2>0</tvar>". Subcategories will be shown only if Category namespace is present on the list.</translate>
<translate>