Jump to content

Extension:WikiLovesMonuments

From mediawiki.org
MediaWiki extensions manual
WikiLovesMonuments
Release status: unmaintained
Implementation Parser function
Description Adds information and messages related to the Wiki Loves Monuments photographic contest
Author(s) Platonides
Latest version 0.1
MediaWiki 1.20+
License GNU General Public License 2.0
Download
Example www.wikilm.es
$wgWikiLovesMonumentsCountryPortlet
Quarterly downloads 1 (Ranked 128th)
Translate the WikiLovesMonuments extension if it is available at translatewiki.net

Wiki Loves Monuments provides information about the Wiki Loves Monument contests for MediaWiki.

Some features of this require cldr extension to be loaded.

Portlet

[edit]

It can add a sidebar portlet with links to all the local websites of the active WLM edition.

/**
 * Show the sidebar portlet with the countries participating in the active
 * WLM edition.
 * Values:
 *  - false -> Do not show the portlet.
 *  - true -> Show all the portlet with all the countries.
 *  - Country code or array of country codes -> Show all the countries but these
 *      (presumable because those would be self-links)
 */
$wgWikiLovesMonumentsCountryPortlet = false;


Statistics

[edit]

You can set $wgWikiLovesMonumentsCentralisedStatsId to the ID code for your country and it will automatically enable tracking your visits from the central WLM statistics server.

/**
 * Set to the piwik id of your country to automatically
 * track your pages at http://stats.wikilovesmonuments.org/
 */
$wgWikiLovesMonumentsCentralisedStatsId = false;

Parser functions

[edit]
  • {{#wlm-countries: year}}: Shows in text form the list of countries participating in WLM in year.
  • {{#wlm-country-count: year}}: Returns the number of countries participating in WLM in year.