Extension: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 |
Parameters
$wgWikiLovesMonumentsCountryPortlet |
|
Hooks used
|
|
Quarterly downloads | 0 |
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
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
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
- {{#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.
- {{#wlm-country-website: country}}: Returns the website for the local contest country. If it doesn't know a url for the country, it will try to guess the commons page at https://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2012_in_XYZ