$smwgShowFactbox

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgShowFactbox
Description Sets in which cases the factbox should be shown below a page
Default setting See below
Software Semantic MediaWiki
Since version
Until version still available
Configuration Facts display · Interface settings
Keyword factbox


$smwgShowFactbox is a configuration parameter that sets in which cases the factbox should be shown below a page. The configuration parameter was introduced in Semantic MediaWiki 0.7Released on 28 April 2007 and compatible with MW 1.8.x - 1.10.x..

The behaviour switches __SHOWFACTBOX__ and __HIDEFACTBOX__ can be used to control the display of the factbox on individual pages.

Default setting[edit]

$smwgShowFactbox = SMW_FACTBOX_HIDDEN;

This means that the factbox is never shown.

Available options[edit]

  • SMW_FACTBOX_HIDDEN – Do not show factboxes
  • SMW_FACTBOX_NONEMPTY – Show factboxes only if they have some content
  • SMW_FACTBOX_SPECIAL – Show factboxes only if they contain special properties
  • SMW_FACTBOX_SHOWN – Always show factboxes

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:

Enable the factbox to be always shown if it is not empty
$smwgShowFactbox = SMW_FACTBOX_NONEMPTY;
Enable the factbox to be always shown
$smwgShowFactbox = SMW_FACTBOX_SHOWN;
Enable the factbox to be always shown if it contains special properties
$smwgShowFactbox = SMW_FACTBOX_SPECIAL;

See also[edit]

... more about "$smwgShowFactbox"
Semantic MediaWiki +
Facts display +  and Interface settings +
Sets in which cases the factbox should be shown below a page +
factbox +
Has subobject"Has subobject" is a predefined property representing a container construct and is provided by Semantic MediaWiki.