Extension:ArticlePlaceholder
ArticlePlaceholder Release status: beta |
|
---|---|
File:MagicUnicornLogo.png | |
Implementation | Special page |
Description | Provides a special page with information about a specific topic, inviting to create an article for the topic |
Author(s) | Lucie-Aimée Kaffee |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | >= 1.42 |
Composer | mediawiki/article-placeholder |
License | GNU General Public License 2.0 or later |
Download | |
Expand | |
Expand | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the ArticlePlaceholder extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The ArticlePlaceholder extension provides a special page with Wikidata information (or information from another Wikibase repo) about a certain topic inviting the reader to create an article for the topic.
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.
The documentation of the Lua Module used in ArticlePlaceholder to render the entities from Wikidata can be found at Extension:ArticlePlaceholder/Module:AboutTopic.
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 a work in progress, and it may not have all the functionalities as expected.
Dependencies
The ArticlePlaceholder extension requires the Wikibase Client extension, properly connected to a Wikibase repository (or be one itself).
Some main functionalities require the following extensions installed, but will degrade if not present:
Getting the code
You can clone the extension from Gerrit to the extensions/
folder of your MediaWiki installation:
$ cd extensions $ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ArticlePlaceholder
Configuration
Add to the end of your LocalSettings.php:
wfLoadExtension( 'ArticlePlaceholder' );
The setting ArticlePlaceholderImageProperty
sets the property used to display the main image of an item (P18 on Wikidata). It needs to be set in LocalSettings.php.
$wgArticlePlaceholderImageProperty = "P18";
Replace P18 with the appropriate value.
The optional setting ArticlePlaceholderReferencesBlacklist
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.
$wgArticlePlaceholderReferencesBlacklist = "P143";
The optional ArticlePlaceholderSearchEngineIndexed
setting configures whether placeholders will be indexable by search engines. Setting it to true
will unconditionally enable indexing, while setting it to false
will disable indexing. Setting it to an Item id serialization, like "Q3000"
, will make all placeholders for Items that have an id up Q3000 indexable (that includes Q42, but doesn't include Q5000).
$wgArticlePlaceholderSearchEngineIndexed = true;
Set-up
To use the functionalities of the special page and the Lua module, import (via Special:Import) the Template and Module AboutTopic. These are located in the extension folder in includes/Template. Read more on how to work with the display on Extension:ArticlePlaceholder/Module:AboutTopic.
Optionally to enable the ordering of properties on the ArticlePlaceholder pages, your Wiki needs a page with a list of sorted properties, an example can be found at Extension:ArticlePlaceholder/MediaWiki:Wikibase-SortedProperties. This page needs to be in the MediaWiki namespace with the the title Wikibase-SortedProperties.
Links
- Bachelor's thesis on "Generating Article Placeholders from Wikidata for Wikipedia: Increasing Access to Free and Open Knowledge"
- Examples:
- nn:Special:AboutTopic/Q845189 - Spotted turtle
- ht:Special:AboutTopic/Q14384 - Triceratops
- cy:Special:AboutTopic/Q815102 - Siege of Sydney Street
- gu:Special:AboutTopic/Q33866 - Theodore Roosevelt
- Phabricator project
- Input on the Article Placeholder on Wikidata
- Pilot project to set up Article Placeholder for species (German)
Notes
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
MagicUnicornLogo.png |
- Pages with script errors
- Pages with broken file links
- Beta status extensions
- Special page extensions
- Extensions with release branches compatibility policy
- Extensions supporting Composer
- GPL licensed extensions
- Extensions in Wikimedia version control
- ScribuntoExternalLibraries extensions
- ScribuntoExternalLibraryPaths extensions
- SidebarBeforeOutput extensions
- SpecialSearchResultsAppend extensions
- All extensions
- Extensions used on Wikimedia
- Wikibase extensions