v7.0.0+
| Status: | effective |
| Progress: | 100% |
| Version: | 7.0.0+ |
$smwgShowFactboxEdit
From semantic-mediawiki.org
| Configuration parameter details: | |
| Name | $smwgShowFactboxEdit |
| Description | Sets in which cases the factbox should be shown when editing a page |
| Default setting | See below |
| Software | Semantic MediaWiki |
| Since version | |
| Until version | still available |
| Configuration | Facts display · Interface settings |
| Keyword | factbox |
$smwgShowFactboxEdit is a configuration parameter that sets in which cases the factbox should be shown when editing a page. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on 31 December 2007 and compatible with MW 1.9.x - 1.12.x..
The behaviour switches
__SHOWFACTBOX__ and __HIDEFACTBOX__ can be used to control the display of the factbox on individual pages.
Starting with Semantic MediaWiki 7.0.0Released on 4 June 2026 and compatible with MW 1.43.x - 1.46.x. this parameter accepts a plain string value instead of the
SMW_FACTBOX_* constants. The constant form still works but is deprecated and will be removed in Semantic MediaWiki 8.0.0Released on an unknown date and compatible with unknown versions of MediaWiki..1
Default setting[edit]
$smwgShowFactboxEdit = 'nonempty';
This means that the factbox is shown only if it has some content.
Available options[edit]
The option enabled by default is highlighted in bold.
'nonempty'(formerlySMW_FACTBOX_NONEMPTY) – Set that only those factboxes that have some content should be shown'special'(formerlySMW_FACTBOX_SPECIAL) – Set that only those factboxes that also contain special properties should be shown'hidden'(formerlySMW_FACTBOX_HIDDEN) – Sets that factboxes should not be shown'shown'(formerlySMW_FACTBOX_SHOWN) – Sets that factboxes should always be shown
Changing the default setting[edit]
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file:
- Never show the factbox when editing
$smwgShowFactboxEdit = 'hidden';
- Always show the factbox when editing
$smwgShowFactboxEdit = 'shown';
- Show the factbox when editing only if it contains special properties
$smwgShowFactboxEdit = 'special';
Legacy constant form (deprecated since 7.0.0)[edit]
The constant form below is deprecated since Semantic MediaWiki 7.0.0Released on 4 June 2026 and compatible with MW 1.43.x - 1.46.x. and will be removed in Semantic MediaWiki 8.0.0Released on an unknown date and compatible with unknown versions of MediaWiki.. Use the string form shown above instead. It is documented here for wikis still running the constant form.
$smwgShowFactboxEdit = SMW_FACTBOX_NONEMPTY;
See also[edit]
- Help page on the factbox
- Help page on configuration parameter
$smwgShowFactboxSets in which cases the factbox should be shown below a page - Help page on configuration parameter
$smwgFactboxFeaturesSets the behaviour of features related to the factbox
References
- ^ | | | | Semantic MediaWiki: GitHub pull request gh:smw:6792
... more about "$smwgShowFactboxEdit"
effective +
7.0.0 +
Semantic MediaWiki +
$smwgShowFactboxEdit +
Sets in which cases the factbox should be shown when editing a page +
factbox +
true +
Has subobject"Has subobject" is a predefined property representing a container construct and is provided by Semantic MediaWiki.
Citation resourceThis property is a special property in this wiki.
Citation referenceThis property is a special property in this wiki.
gh:smw:6792 +