Extension:ArticlePlaceholder

Article Placeholders are automatically generated content pages in Wikipedia or other mediawiki projects displaying data from Wikidata. They are clearly not actual articles but collections of data on topics which do not have an article yet. This project is mostly aimed at smaller Wikipedias with a small contributor base in order to increase access to free and open knowledge by using Wikidata’s resources. One of the objectives is to adjust the Article Placeholders so they suit the overall Wikipedia layout while at the same time making it clear that they are generated articles and not written by a human. The reader should then be encouraged to create or translate an article on the topic. In the long run Article Placeholder may lower the amount of unmaintained articles generated by bots.

Article Placeholder is a mediawiki extension.

Special Page
The extension sets up a special Page (Special:AboutTopic) on a Wikibase client, which uses facts from the connected Wikibase repo page (item) to generate a simple content page (if none already exist) on the client. This page encourages the reader to write an article - in future versions it should use the data the article placeholder is displaying. If the page does exist the user is redirected to the article.

Installation
Please keep in mind the extension is work in progress, it may not have all the functionalities expected.

Dependencies
The ArticlePlaceholder extension requires the Wikibase Client extension, property connected to a Wikibase repository (or be one itself).

Some main functionalities require to have the following extensions installed, but will degrade if not present:
 * Scribunto, for the display of the content;
 * Cite, for the display of references.

Getting the code
You can clone the extension from Gerrit to the  folder of your MediaWiki installation:

$ cd extensions $ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ArticlePlaceholder

Configuration
This extension doesn't currently use the extension registration system, you need to install it using the legacy procedure.

Add to the end of your LocalSettings.php:

A mandatory setting is, the property to use to display the main image of an item (P18 on Wikidata) in your LocalSettings.php, too.

Replace P18 with the appropriate property.

An optional setting is, which takes a property ID and blacklists the references that use the given property. This is for example used for "imported from", the property indicating that the information was imported from a Wikipedia.

Links

 * Bachelor's thesis on "Generating Article Placeholders from Wikidata for Wikipedia: Increasing Access to Free and Open Knowledge"
 * Example for Ada Lovelace on WMF Labs
 * Phabricator project
 * Input on the Article Placeholder on Wikidata
 * Pilot project to set up Article Placeholder for species (German)