Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
Parameter valuesep
| |
---|---|
This help page explains how to specify a separator between the values for properties from different printout statements to display the output of the query. | |
Keywords | |
This help page explains the usage of the valuesep
parameter when using result format "Plainlist"Outputs results in a comma separated list, with additional outputs shown in parentheses. The output does not provide class attributes to HTML elements (default for queries without printout statements). to display the output of your queries.
This parameter allows to specify a different separator between the returned values to the properties specified with the printout statements of the query. The default separator used if this parameter was not specified is a comma ",
". Note that prior to Semantic MediaWiki 2.5.3Released on 8 July 2017 and compatible with MW 1.23.0 - 1.29.x. the default value was changed from a space.1
Example[edit]
|format=plainlist
since it is the default in case no printout statement, i.e. |?SomeProperty
was added to the query.
<nowiki> tag[edit]
- Syntax
{{#ask: [[Category:City]] [[Located in::Germany]] |?Has point of interest=POI |?Has zoo=Zoo |format=plainlist |valuesep=<nowiki> and </nowiki> }}
- Result
Berlin (POI: Brandenburg Gate and Museumsinsel and Reichstag, Zoo: Tierpark Berlin and Zoologischer Garten Berlin), Cologne, Frankfurt (Zoo: Zoo Frankfurt), Munich (POI: Dom zu Unserer Lieben Frau and Schloss Nymphenburg, Zoo: Tierpark Hellabrunn), Stuttgart (Zoo: Wilhelma), Würzburg
HTML character entities[edit]
- Syntax
{{#ask: [[Category:City]] [[Located in::Germany]] |?Has point of interest=POI |?Has zoo=Zoo |format=plainlist |valuesep= and  }}
- Result
Berlin (POI: Brandenburg Gate and Museumsinsel and Reichstag, Zoo: Tierpark Berlin and Zoologischer Garten Berlin), Cologne, Frankfurt (Zoo: Zoo Frankfurt), Munich (POI: Dom zu Unserer Lieben Frau and Schloss Nymphenburg, Zoo: Tierpark Hellabrunn), Stuttgart (Zoo: Wilhelma), Würzburg
 
,  
and  
denote a thin space, an en space and an em space respectively, where a thin space is a quarter of the point size, an en space is half the point size and an em space is equal to the point size of the current font. If the output should not be broken at spaces
(non-breaking space) is used.
See also[edit]
- Help page on parameter
sep
- Help page on parameter
propsep
- Help page on configuration parameter
$smwgResultFormatsFeatures
Sets whether features for some result formats should be extended
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2522