Extension:Semantic Extra Special Properties

The Semantic Extra Special Properties extension, when used with Semantic MediaWiki, adds some extra special properties to all content pages in the wiki. Having Semantic MediaWiki installed is a precondition for the SemanticExtraSpecialProperties extension; the code will not work without it. It was tested and is working with MW 1.18 and SMW 1.7.

Usage
This is a list of extra special properties that can be enabled. If enabled, they will be applied to all pages
 * EUSER: Contributing users
 * CUSER: User that first created a page
 * REVID: Current revision ID
 * VIEWS: Number of page views. Note that depending on local settings this value might not be very up to date. In case $wgDisableCounters is set to true this property will not be set
 * NREV: Estimated number of total revisions
 * TNREV: Estimated number of total revisions for the talk page, i.e. showing how much discussion is going on around this page
 * SUBP: subpages

Installation

 * 1) Download the files from GitHub as tar.gz or zip
 * 2) Create a directory   in your   directory.
 * 3) Extract the files to this   directory.
 * 4) Add   to the bottom of LocalSettings.php. By default, they are all turned off.
 * 5) Enable whatever properties you want to use in you wiki (see below)
 * 6) Installation can now be verified through Special:Version of your wiki.
 * 7) Run the database upgrade script on Special:SMWAdmin to apply new properties, without having to  wait for all pages to be edited by someone.

Configuration
Use  in LocalSettings.php to enable properties offered, like this:

...or to enable them all in one line:

Add  to LocalSettings.php to ignore all users with bot flag when creating the article author properties. This does not affect the article creator property.

Change log

 * 0.2.1
 * German translation by Kghbln
 * Better method to fetch list of EUSER (getContributors and getUser, instead of getLastNAuthors. Anonymous users will never be listed)


 * 0.2
 * Only tested with SMW 1.7 and MW 1.18.
 * Changed name for EUSER and and CUSER props in both English and Swedish, article -> page for clarity.
 * Using $smwgPageSpecialProperties2 to chose which properties to set, the same way as $smwgPageSpecialProperties is used for built in special properties
 * Ignoring _VIEWS if statistics are disables in LocalSettings.php
 * Added SUBP, NREV and TNREV


 * 0.1 First version