Extension:WikiLovesMonuments

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
WikiLovesMonuments

Release status:Extension status stable

ImplementationTemplate:Extension#type Parser function
DescriptionTemplate:Extension#description Adds information and messages related to the Wiki Loves Monuments photographic contest
Author(s)Template:Extension#username Platonides
Latest versionTemplate:Extension#version 0.1
MediaWikiTemplate:Extension#mediawiki 1.20 and earlier
LicenseTemplate:Extension#license GPL v2
Download
ExampleTemplate:Extension#example www.wikilm.es
ParametersTemplate:Extension#parameters

$wgWikiLovesMonumentsCountryPortlet

Hooks usedTemplate:Extension#hook
SkinBuildSidebar

Translate the WikiLovesMonuments extension if it is available at translatewiki.net

Check usage and version matrix;

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.