Help:Plainlist format – parameter propsep

From semantic-mediawiki.org
< Help:Plainlist format
Plainlist formatHelp:Plainlist format – parameter propsep
Parameter propsep
This help page explains how to specify a separator between the properties from different printout statements to display the output of the query.
Keywords
separator · plainlist · propsep · result format · parameter

This help page explains the usage of the propsep 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 properties specified with the printout statements of the query. The default separator used if this parameter was not specified is a comma ",".

Example[edit]

In the following examples the result format does not need to be specified explicitly with |format=plainlist since it is the default in case no printout statement, i.e. |?SomeProperty was added to the query.

<nowiki> tag[edit]

{{#ask:
 [[Category:City]]
 [[Located in::Germany]]
 |?Population
 |?Area#km²=Area
 |format=plainlist
 |propsep=<nowiki> / </nowiki> 
}}
Result

Berlin (PopulationThe number of inhabitants of some geographical place.: 3,520,061 / Area: 891.85 km²344.34 sqmi <br />), Cologne (PopulationThe number of inhabitants of some geographical place.: 1,080,394 / Area: 405.02 km²156.38 sqmi <br />), Frankfurt (PopulationThe number of inhabitants of some geographical place.: 679,664 / Area: 248.31 km²95.87 sqmi <br />), Munich (PopulationThe number of inhabitants of some geographical place.: 1,353,186 / Area: 310.43 km²119.86 sqmi <br />), Stuttgart (PopulationThe number of inhabitants of some geographical place.: 606,588 / Area: 207.35 km²80.06 sqmi <br />), Würzburg (PopulationThe number of inhabitants of some geographical place.: 126,635 / Area: 87.63 km²33.83 sqmi <br />)

HTML character entities[edit]

Syntax
{{#ask:
 [[Category:City]]
 [[Located in::Germany]]
 |?Population
 |?Area#km²=Area
 |format=plainlist
 |propsep=&thinsp;/&thinsp;
}}
Result

Berlin (PopulationThe number of inhabitants of some geographical place.: 3,520,061 / Area: 891.85 km²344.34 sqmi <br />), Cologne (PopulationThe number of inhabitants of some geographical place.: 1,080,394 / Area: 405.02 km²156.38 sqmi <br />), Frankfurt (PopulationThe number of inhabitants of some geographical place.: 679,664 / Area: 248.31 km²95.87 sqmi <br />), Munich (PopulationThe number of inhabitants of some geographical place.: 1,353,186 / Area: 310.43 km²119.86 sqmi <br />), Stuttgart (PopulationThe number of inhabitants of some geographical place.: 606,588 / Area: 207.35 km²80.06 sqmi <br />), Würzburg (PopulationThe number of inhabitants of some geographical place.: 126,635 / Area: 87.63 km²33.83 sqmi <br />)

The HTML character entities &thinsp;, &ensp; and &emsp; 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 &nbsp; (non-breaking space) is used.

See also[edit]