Semantic MediaWiki and related extensions
|
The format is to display pages in a hierarchical outline form, using one or more of the pages' properties as outline headers.
For example, with phab-view
as template name, the outline
format will generate two distinct templates phab-view-header
and phab-view-item
to be used for the output with -header
and -item
being a fixed affix to distinguish the output level of the result content.
The ...-header
template will provide additional information and includes:
#outlinelevel
the level of the header being processed (depends on the iteration level invoked by the outlineproperties
parameter)#itemcount
provides a count information for the items assigned to the the level#userparam
The ...-item
template will also provide additional information such as:
#itemsection
section number of the item#itemsubject
the subject (aka page) of the item processed#itemsubjectraw
the raw page title which can be used for further processing#userparam
content provided by a user via the #ask
userparam
parameterUse introtemplate
\ outrotemplate
to display a template before or after the query results. These can only be used in combination with the template
paramter
Using a template can provide means to individually style the result output, for example a simple list can be turned into a phabricator task list.