$smwg­Plain­List

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgPlainList
Description Sets whether the list format should provide class attributes to HTML elements
Default setting
false
(Other) available settings
true

Disables the list format to provide class attributes to HTML elements

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 separates list, with additional outputs shown in parentheses. The output induces 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.

This configuration parameter is meant to assist in migrating from result format "List"Outputs results in a comma separates list, with additional outputs shown in parentheses. The output induces class attributes to HTML elements to facilitate easy individual styling. to result format "Plainlist"Outputs results in a comma separates list, with additional outputs shown in parentheses. The output does not provide class attributes to HTML elements (default for queries without printout statements). by allowing to gain more time to do the actual migration. However it is strongly recommended to migrate since not migrating could prevent from making use of class attributes to HTML elements in situations where they are actually needed.

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 separates list, with additional outputs shown in parentheses. The output induces class attributes to HTML elements to facilitate easy individual styling.
  • Help page on result format "Plainlist"Outputs results in a comma separates list, with additional outputs shown in parentheses. The output does not provide class attributes to HTML elements (default for queries without printout statements).

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:4367
  2. ^  Semantic MediaWiki: GitHub pull request gh:smw:3130