Difference between revisions of "Help:AddExtensions"

From Biowikifarm Metawiki
Jump to: navigation, search
(Created page with '{{WikihelpHeader}} '''These are some descriptions and explanations on some of the standard extensions which are available for all wikis in the biowikifarm''' ==CategoryTree exte...')
 
Line 15: Line 15:
 
{{#categorytree:<category name>)|depth=2|hideroot=on|showcount=on}}
 
{{#categorytree:<category name>)|depth=2|hideroot=on|showcount=on}}
 
</pre>
 
</pre>
 +
[[Category:Help]]
 +
[[Category:Extensions]]

Revision as of 16:28, 15 April 2010

Help sections
Contents · Semantic MediaWiki · Semantic Forms
Add Ontology · Semantic links and import/export features · Import external vocabulary
Other SemanticMW extensions · Other extensions


These are some descriptions and explanations on some of the standard extensions which are available for all wikis in the biowikifarm

CategoryTree extension

This extension is useful for displaying the structure of a category if this category contains various subcategories and subsubcategories. It is used by default in all category pages if these have subcategories. A detailed description is provided by MediaWiki

The page Homoptera of the Pest Information Wiki demonstrates how the extension can be used outside of category pages. There are some limitation in the use of this category which are not clear from reading the MediaWiki instructions and not all combinations of the attributes of the CategoryTree parser function work:

  • It is not possible to combine the 'mode' attribute with some of the other attributes, e.g. the following script results in the display of categories AND pages (as described for the attribute 'mode'), but shows only one depth level:
{{#categorytree::<category name>|mode=pages|depth=2}}
  • The attribute 'depth=2' displays 2 instead of only one depth level, however 'depth=3' does not show 3 depth levels.
  • Other combinations can work. In the following example the tree displays 2 depth levels, hides the root level and shows the number of subcategories in brackets behind each category:
{{#categorytree:<category name>)|depth=2|hideroot=on|showcount=on}}