How to add dynamic content to an OSHWiki article

From OSHWiki
Jump to: navigation, search


DynamicPageList

DynamicPageList can used for custom listings. This has many options, see the manual for details.

The following example lists the 5 most recent articles:

<dpl>
  namespace=
  ordermethod=firstedit
  count=5
  order=descending
  allowcachedresults=true
</dpl>

Include the contents of one article inside another

The following markup is used to include the contents of an article called Article123 in the current Article

{{:Article123}}

Adding a Table of Contents

A table of contents is automatically added to any page which has more than three headings. To disable the TOC for a particular page add the following markup:

__NOTOC__

Category tree

The Category Tree extension is used to display an expandable tree of categories.

The following markup displays a tree of OSHCategories and hides to root of the tree:

{{#categorytree:OSHCategories|hideroot|mode=pages}}

e.g.

Contributors

Deroiste