"separator" parameter to the table and broadtable format | |
---|---|
This page describes the "separator" parameter to the table and broadtable format. | |
Keywords | |
Table of Contents | |
Semantic MediaWiki 2.2.0 introduced the "sep
" separator parameter for the table and broadtable result format. Thus one may use individual separators like ",
" or ";
" etc. to distinguish between different resulting values within a table cell instead of "<br />
" which was imperatively used in previous versions of Semantic MediaWiki and is still used as the default separator.1
Example without a specified sep
parameter (default)[edit]
{{#ask: [[Category:City]] [[Located in::Germany]] |?Has point of interest=Point of interest |mainlabel=City |sort=Has point of interest |headers=plain }}
This produces the following output:
City | Point of interest |
---|---|
Berlin | Brandenburg Gate Museumsinsel Reichstag |
Munich | Dom zu Unserer Lieben Frau Schloss Nymphenburg |
Example with a specified sep
parameter[edit]
{{#ask: [[Category:City]] [[Located in::Germany]] |?Has point of interest=Point of interest |mainlabel=City |sort=Has point of interest |headers=plain |sep=,  }}
This produces the following output:
City | Point of interest |
---|---|
Berlin | Brandenburg Gate, Museumsinsel, Reichstag |
Munich | Dom zu Unserer Lieben Frau, Schloss Nymphenburg |
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:988