Help:Category format

From semantic-mediawiki.org
Jump to: navigation, search
Category format
What:
List in columns, with first letters as section headers, in the style of MediaWiki category pages
Provided by:
Semantic MediaWiki
Added in version:
1.4.3
Removed in version:
still supported
Further Requirements:
none
Format name:
category
Authors:
David Loomer, Yaron Koren
Categories:
misc

The result format category is used to format query results in the manner of MediaWiki's category pages.

Parameters

Parameter Type Default Description
limit Whole number 20 The maximum number of results to return
offset Whole number 0 The offset of the first result
headers Text show Display the headers/property names
mainlabel Text no The label to give to the main page name
link Text all Show values as links
intro Text empty The text to display before the query results, if there are any
outro Text empty The text to display after the query results, if there are any
default Text empty The text to display if there are no query results
columns Whole number empty The number of columns in which to display results (default is 3)

Example

{{#ask: [[Category:City]] [[located in::Germany]] 
| format=category
}}

This produces the following output:

B

F

M

S





This documentation page applies to all SMW versions from 1.4.3 to the most current version.
      Other languages: de, fr

Help:Category format en 1.4.3


Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox