Commons:Wiki Loves Monuments 2012/Mobile banner

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This page explains how to setup a Mobile banner for Wiki Loves Monuments 2012.


For users using a normal computer, we use the CentralNotice system to make them aware of Wiki Loves Monuments. For mobile users, we have a Wiki Loves Monuments mobile application.

Unfortunately, at the moment there is no CentralNotice-like system available for mobile devices, so we have to fallback to local banners. These banners can only be enabled on a per-language and per-project (though we will only focus on Wikipedia) basis. It's up to the local language Wikipedia community to decide if they want to enable them.


Edit your MediaWiki:Common.css to hide the banner for normal users (example):

/* Hide the mobile wlm banner on the normal site */
#mf-wlm-banner { display: none; }

Create the banner[edit]

Create a banner template and translate the text; see Sjabloon:Wiki Loves Monuments mobile banner as an example:

<includeonly>{{#ifeq:{{CURRENTMONTH}}|09|</includeonly><div {{#if:{{NAMESPACE}}||id="mf-wlm-banner"}} style="width:100%; background-color:#8E141A; color: white; font-family:helvetica neue, sans-serif; padding: 7px 0;" class="plainlinks">
<div style="float:left; margin-left: 5px">
[[File:Wiki Loves Monuments Logo notext.svg|35px|link=]]</div>
<div style="float:right; margin:-35px 12px 0 0; position:relative; bottom:-7px;">
 [[File:WLM phone half.png|25px|link=]]</div>
<div style="text-align:center; margin:-3.8em auto 0; padding:6px 0;font-size:.9em; line-height:.01em">
<span style="font-size: .9em">[ <span style="color: white">Join the photo contest that helps Wikipedia</span>]</span>
[ <span style="color: white">»Click here! for the free <span style="font-weight:bold">Android app</span>«</span>]</div>

Enable it at the main page[edit]

The template contains some logic to only show the banner in September so you can safely add it to your main page in August. You might need to do a dummy (null) edit to update the page in September (See an example on the Dutch Wikipedia).


Enabled at[edit]

Language code Enabled? Template
ca Yes Plantilla:Bàner Wiki Loves Monuments per a mòbils
de ? Vorlage:Wiki Loves Monuments mobile banner
es Yes Plantilla:Aviso WLM móvil
et Yes et:Mall:Wiki Loves Monuments mobile banner
nl Yes Sjabloon:Wiki Loves Monuments mobile banner
it Yes Template:WLM-banner-mobile
pl No Wikipedia:Wiki Lubi Zabytki/Banner Android