Extension:WikiLovesMonuments

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
WikiLovesMonuments

Release status: stable

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 and earlier
License GPL v2
Download
Example www.wikilm.es
Parameters

$wgWikiLovesMonumentsCountryPortlet

Hooks used
SkinBuildSidebar

Translate the WikiLovesMonuments extension if possible

Check usage and version matrix; code metrics

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 | edit source]

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 | edit source]

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 | edit source]

  • {{#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.