$smwgPlainList
Configuration parameter details: | |||
Name | $smwgPlainList | ||
Description | Sets whether the list format should provide class attributes to HTML elements | ||
Default setting | false |
||
(Other) available settings |
|
||
Software | Semantic MediaWiki | ||
Since version | |||
Until version | still available | ||
Configuration | Basic settings · Installation | ||
Keyword | result formats · list · list format |
$smwgPlainList
is a configuration parameter that sets whether result format "List"Outputs results in a comma separated list, with additional outputs shown in parentheses. The output introduces class attributes to HTML elements to facilitate easy individual styling. should provide class attributes to HTML elements, e.g. <span class="smw-format list-format">
for result list items.1 The configuration parameter was introduced in Semantic MediaWiki 3.1.2Released on 12 January 2020 and compatible with MW 1.31.0 - 1.33.x. and allows to disable the breaking changes to the list format, i.e. now providing class attributes, introduced with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x.2.
Default setting[edit]
$smwgPlainList = false;
This means that the list format will provide class attributes to HTML elements.
Changing the default setting[edit]
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Disables class attributes to HTML elements
$smwgPlainList = true;
This means that the list format will no longer provide class attributes to HTML elements.
See also[edit]
- Help page on result format "List"Outputs results in a comma separated list, with additional outputs shown in parentheses. The output introduces class attributes to HTML elements to facilitate easy individual styling.
- Help page on 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).
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:4367
- ^ Semantic MediaWiki: GitHub pull request gh:smw:3130