Github mirror of MediaWiki extension ArticlePlaceholder - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
i18n
includes
modules
tests
.eslintrc.json
.gitignore
.gitreview
.phpcs.xml
.stylelintrc.json
ArticlePlaceholder.alias.php
CODE_OF_CONDUCT.md
COPYING
Gruntfile.js
README.md
composer.json
extension.json
package.json

README.md


Introduction to ArticlePlaceholder

The ArticlePlaceholder is a MediaWiki extension. Read the detailed documentation at https://www.mediawiki.org/wiki/Extension:ArticlePlaceholder

ArticlePlaceholder enables placeholder pages on Wikibase Client installations using data of the repository.

The file includes/Template/Wikidata-P18.xml shouldn't be used in production but is for testing purposes.

Installation

Dependencies

ArticlePlaceholder requires

  • MediaWiki
  • Wikibase Client, connected to a Wikibase Repo
  • Scribunto for the display of the content
  • Cite for the display of the references on a placeholder page
  • ContentTranslation (optional) for creating new articles based on existing ones in other languages

Configuration

wfLoadExtension( 'ArticlePlaceholder' );

needs to be set in the LocalSettings.php of your MediaWiki Installation.

There are multiple settings for the ArticlePlaceholder, which can be configured, a list can be found on the MediaWiki page of the extension.

Set-up

In order to be able to actually use the functionalities of the special page and the Lua module, it is necessary to import (via Special:Import or the importDump.php maintenance script) the Template and Module AboutTopic. These are located in the extension folder in includes/Template.

Optionally to enable the ordering of properties on the ArticlePlaceholder pages, your wiki needs a page with a list of sorted properties. This page needs to be called MediaWiki:Wikibase-SortedProperties.