Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Template:Categorytree

From Appropedia
Jump to navigation Jump to search
View projects, howtos and other pages about Categorytree
If you cannot make the category tree expand, just click on [[:Category:{{{1}}}]] to view the page directly. (This can happen if your browser has javascript turned off.)



Under construction orange.jpg This page is under construction - please check back later.

Optional comment: 19:30, 16 November 2011 (PST). Need to get the optional parameters working. See examples below for current status.


Usage[edit]

For use on topic articles. Perhaps in or above the "See also" section?

{{categorytree|Solar}}

gives:

View projects, howtos and other pages about Categorytree
If you cannot make the category tree expand, just click on Category:Solar to view the page directly. (This can happen if your browser has javascript turned off.)
Solar
  ESCO


Or choosing colors, for the greywater page:

{{categorytree
|Greywater
|LightGrey
|DarkSlateGray}}

gives:

border
1px solid DarkSlateGray; text-align: center; -moz-border-radius:5px;"
View projects, howtos and other pages about Categorytree
If you cannot make the category tree expand, just click on [[:Category:Greywater

]] to view the page directly. (This can happen if your browser has javascript turned off.)


Simpler versions[edit]

Note: We have a choice of the parser function version, which can be used in templates in this form:

{{#categorytree:{{{1}}}|mode=pages}}

as well as the standard form, which cannot take an argument in a template (and maybe can't be used at allTemplate:Verify):

<categorytree>water<categorytree>

...so there now seems less need for a template to simplify adding a standard categorytree. This template is used to provide an explanation along with a standard presentation.

See also[edit]