$smwg­Support­Section­Tag

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgSupportSectionTag
Description Sets whether Semantic MediaWiki registers its own section parser tag
Default setting
true
Software Semantic MediaWiki
Since version
Until version still available
Configuration Configuration is missing
Keyword section tag


$smwgSupportSectionTag is a configuration parameter that sets whether Semantic MediaWiki registers its own section parser tag. The configuration parameter was introduced in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..

When enabled, Semantic MediaWiki registers a parser tag that wraps its content in an HTML "<section>" element. On pages in the property namespace the wrapper additionally carries the "smw-property-specification" class, which Semantic MediaWiki uses to manage how that content is presented on the property page.

As of Semantic MediaWiki 7.0.0Released on 4 June 2026 and compatible with MW 1.43.x - 1.46.x. this parser tag is named "<smwsection>". In Semantic MediaWiki 3.0.0 to 6.x it is named "<section>". The rendered output is the same in either case; only the wikitext tag name changed. The tag was renamed1 so that it no longer collides with the "<section>" tag registered by other extensions such as Labeled Section Transclusion. With the collision resolved, disabling this parameter is rarely necessary on Semantic MediaWiki 7.0.0 and later.

Default setting[edit]

$smwgSupportSectionTag = true;

This means that Semantic MediaWiki registers its section parser tag.

Changing the default setting[edit]

To modify the setting to this configuration parameter, add the following line to your "LocalSettings.php" file:

$smwgSupportSectionTag = false;

This means that Semantic MediaWiki does not register its section parser tag. Before Semantic MediaWiki 7.0.0Released on 4 June 2026 and compatible with MW 1.43.x - 1.46.x. this was primarily useful to let another extension that registers a "<section>" tag, such as Labeled Section Transclusion, handle that tag instead.


References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:6938