mediawiki/article-placeholder

Provides a special page with Wikibase information about a certain topic, with invitation to create an article for the topic

dev-master 2024-12-12 08:24 UTC

This package is auto-updated.

Last update: 2024-12-17 02:00:22 UTC


README

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.