Properties that are planned to be included need to be specified in the "LocalSettings.php" file using the $sespgEnabledPropertyList array. By default the array is empty, i.e. no special property is being annotated to a page.
$sespgEnabledPropertyList = [
'_EUSER',
'_CUSER',
...
];Property identifiers (see "definitions.json" file) are used to specify which of the properties are enabled. An identifier is an internal ID which is not to be used during user interaction (e.g. handling in #ask queries) instead the property label should be used as reference.
Property labels differ according to the language the wiki was set up. An easy way to identify those used labels is to navigate to the "Special:Properies" page that lists all available properties including properties provided by this extension.
_EUSERadds a property called "Page author" which records all users that edited a page (expensive; use with care)_CUSERadds a property called "Page creator" which records the user that created a page_REVIDadds a property called "Revision ID" which records the current revision ID of a page_PAGEIDadds a property called "Page ID" which records the page ID of a page_NSIDadds a property called "Namespace ID" which records the namespace ID of a page_NSNAMEadds a property called "Namespace canonical name" which records the canonical namespace name of a page_PAGELGTHadds a property called "Page length" which records the page length of a page_NREVadds a property called "Number of revisions" which records estimated number of total revisions of a page_NTREVadds a property called "Number of talk page revisions" which records an estimated number of total revisions of a talk page_SUBPadds a property called "Subpage" which records all subpages to a page_USERREGadds a property called "User registration date" to user pages which records the user's registration date_USEREDITCNTadds a property called "User edit count" to user pages which records the user's edit count_USEREDITCNTNSadds a property called "User edit count per namespace" to user pages, which records the user's edit counts in all namespaces_USERBLOCKadds a property called "User block" to user pages which records the user's block status_USERRIGHTadds a property called "User right" to user pages which records the user's assigned rights_USERGROUPadds a property called "User group" to user pages which records the user's assigned groups_EXIFDATAadds properties called "Exif data" to file pages which records image metadata (Exif data)_LINKSTOadds a property called "Links to" which records a list of pages the current page links to
_SHORTURLadds a property called "Short URL" which records short URLs of a page if the ShortUrl extension is installed, and if there is a shortened URL for the current page_VIEWSadds a property called "Number of page views" which records the number of page views of a page if the HitCounters extension is installed. This is required starting with MediaWiki 1.25 and later. In earlier versions of MediaWiki this special property used to work out of the box if enabled. Note that depending on local settings this value might not be very up to date. If$wgDisableCountersis set to "true" this property will never be set._APPROVEDadds a property called "Approved revision" which records the approvement state of a page if the Approved Revs extension is installed_APPROVEDBYadds a property called "Approved by" which records the user that approved a page if the Approved Revs extension is installed_APPROVEDDATEadds a property called "Approved date" which records the date a page was approved if the Approved Revs extension is installed_APPROVEDSTATUSadds a property called "Approval status" which records the approvement status of a page if the Approved Revs extension is installed_PAGEIMGadds a property called "Page Images" which records PageImages of a page if the PageImages extension is installed
Setting $sespgUseFixedTables to "true" enables to setup properties as fixed properties in order to
improve data access. Doing so is recommended. Note that you have to run the "update.php" maintenance script
from your wiki's base directory after setting this parameter for the required tables to be created.
Running the data refresh afterwards is recommended as well and should be done every time a special property
is added to the $sespgEnabledPropertyList array.
Setting $sespgExcludeBotEdits to "true" causes bot edits via user accounts in usergroup "bot" to be ignored when storing
data for the special properties activated. However this does not affect the page creator property (_CUSER).
Details about available properties can be found in the "definitions.json" file. The file also contains information about the visibility (display in the Factbox etc.) of a property, to alter the characterisctics of non-subobject related properties one can set show to true for each definition.
Setting $sespgLabelCacheVersion to "false" will cease to use the special property label cache at all. Otherwise this is
used as an internal modifier to allow resetting the cache with an arbitrary version.
Setting $sespgLinksToEnabledNamespaces to a list of namespaces (in int) where the "Links to" property should be enabled.
For example, enabling the "Links to" proerty only in the Template and Module namespace:
$sespgLinksToEnabledNamespaces = [
10,
828
];Please note that users that are otherwise hidden to some usergroup might be revealed by this extension, as the _EUSER
property will list all authors for everyone.
The Exchangeable image file format (and thereof its Exif tags) can contain metadata about a location which can pose a privacy issue.
← README | Extension | Migration to 2.0.0 →