Help:Plainlist format – parameter sep

From Linux Web Expert

Revision as of 18:41, 9 April 2020 by >Kghbln (chg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameter sepProperty "Has name" (as page type) with input value "Parameter sep" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
This help page explains how to specify a separator between the results displayed with the output of the query.
Keywords
separator · plainlist · sep · result format · parameter

This help page explains the usage of the sep 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 pages found by the query condition of the query. The default separator used if this parameter was not specified is a comma ",".

Example

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

Syntax
{{#ask:
 [[Category:City]]
 [[Located in::Germany]]
 |sep=<nowiki> and </nowiki>
}}
Result


HTML character entities

Syntax
{{#ask:
 [[Category:City]]
 [[Located in::Germany]]
 |sep=&thinsp;and&thinsp;
}}
Result


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