Difference between revisions of "Template:Category tree both/doc"

From blackwiki
Jump to navigation Jump to search
imported>84user
 
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(2 intermediate revisions by 2 users not shown)
Line 13: Line 13:
 
* {{tlx|category tree both|<code>title</code>}} - uses <code>title</code> as the category page name
 
* {{tlx|category tree both|<code>title</code>}} - uses <code>title</code> as the category page name
  
* Paramater '''''1''''' = optional (default is name of the category page it is placed on), name of root category for both trees. By default the name of the category page it is placed on is used. For example '''{{tlx|Category tree both|2=Astronomy}}''' will make the browser render the template as two boxes, the left side showing subcategories of Astronomy, the right showing parents of Astronomy.
+
* Parameter '''''1''''' = optional (default is name of the category page it is placed on), name of root category for both trees. By default the name of the category page it is placed on is used. For example, '''{{tlx|Category tree both|2=Astronomy}}''' will make the browser render the template as two boxes, the left side showing subcategories of Astronomy, the right showing parents of Astronomy.
  
 
===See also===
 
===See also===
Line 20: Line 20:
 
* [[mw:Extension:CategoryTree]]
 
* [[mw:Extension:CategoryTree]]
 
* [[:Commons:Template:Category tree both]] - original version from Wikimedia Commons
 
* [[:Commons:Template:Category tree both]] - original version from Wikimedia Commons
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Category navigational templates]]
 
 
[[Category:Category namespace templates]]
 
[[Category:Category namespace templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 00:59, 24 April 2020

This navigation template displays two showable lists: subcategories at the left and parent categories at the right.

Usage

  • namespace = category
  • placement = lower, just above categories
  • usage-notes = This template takes one unnamed optional parameter (1). By default parameter 1 is "{{PAGENAME}}", which expands to the current page.

Syntax

  • Parameter 1 = optional (default is name of the category page it is placed on), name of root category for both trees. By default the name of the category page it is placed on is used. For example, {{Category tree both|Astronomy}} will make the browser render the template as two boxes, the left side showing subcategories of Astronomy, the right showing parents of Astronomy.

See also