Help:Ol format

Ol format
Numbered list, with additional outputs shown in parentheses
Further Information
Provided by: Semantic MediaWiki
Added: 0.7
Removed: still supported
Requirements: none
Format name: ol
Indicates whether the result format is enabled by default upon installation of the respective extension.
Authors: Markus Krötzsch
Categories: misc
Table of Contents

The result format ol is very similar to the result formats list and ul and is used to format query results as numbered lists.


Parameter Type Default Description
sep text empty The separator for values
template text empty The name of a template with which to display the printouts
template arguments text empty Sets how the named arguments are passed to the template
named args yes/no no Name the arguments passed to the template
columns whole number 1 The number of columns in which to display results (default is $1)
userparam text empty A value passed into each template call, if a template is used
introtemplate text empty The name of a template to display before the query results, if there are any
outrotemplate text empty The name of a template to display after the query results, if there are any
import-annotation yes/no no Additional annotated data are to be copied during the parsing of a subject

The use of templates for formatting is explained in Help:Template format.


{{#ask: [[Category:City]] [[located in::Germany]] 
| ?population
| ?area#km² = Size in km²
| format=ol


  1. Berlin (Population 3,520,061, Size in km² 891.85 km²
    344.34 sqmi
  2. Cologne
  3. Frankfurt (Population 679,664, Size in km² 248.31 km²
    95.87 sqmi
  4. Munich (Population 1,353,186, Size in km² 310.43 km²
    119.86 sqmi
  5. Stuttgart (Population 606,588, Size in km² 207.36 km²
    80.06 sqmi
  6. Würzburg

This documentation page applies to all SMW versions from 0.7 to the most current version.
      Other languages: defrzh-hans

Help:Ol format en 0.7