MediaWiki:Centralnotice-template-wlm2018 noextension

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

<style>

@font-face {

 font-family: 'Montserrat';
 font-style: normal;
 src: local('Montserrat'), local('Montserrat'), url(https://upload.wikimedia.org/wikipedia/donate/c/cd/Montserrat.woff2) format('woff2');}

/* Main banner container. Banner: background, border colour and width and adding a margin between banner and article header*/ .wlm-banner {

   position: relative;
   overflow: hidden;
   background: #f8f9fa;
   border: 1px solid #9E0101;
   border-radius: 2px;
   margin-bottom: 1em;
   cursor: pointer;
   color: #222;
   font-weight: 500;

}

/* Sets the minimum banner height. If img + logo-container margins > height. Banner will be larger*/

  1. cnotice-main {
   display: table;
   width: 100%;
   height: 80px; /* need to set height for height 100% to work on elements within it */

}

/*MOBILE - Adjust mobile height of banner*/ body.skin-minerva #cnotice-main {

   height: 100px;

}

/*IMPORTANT - don't touch*/ .cnotice-message-container, .cnotice-logo-container, .cnotice-misc-container {

   display: table-cell;
   height: 100%;
   vertical-align: middle;

}

/* --- Main message --- */ .cnotice-message {

   position: relative;
   margin: 0;
   line-height: 1.2;
   padding: 5px 5px 5px 5px;

}

@media (min-width: 1200px) {

   .cnotice-message {
        padding: 15px 0px 11px 30px;
   }

}

body.rtl .cnotice-message {

   padding: 5px 5px 5px 5px;

}

.cnotice-message p {

   margin: 0;
   color: #222;
   font-family: Arial, sans-serif;
   font-weight: bold;
   font-size: 100%;
   opacity: 1;
   text-align: center;
   padding-top: 10px;
   padding-bottom: 10px;

}

@media (min-width: 1200px) {

   .cnotice-message p { font-size: 120%; }

}


/* --- Logo Image text --- */ .cnotice-logo-container {

   width: 10%;

}

body.rtl .cnotice-logo-container {

   padding: 0 .25em 0 .9em;

}

.cnotice-logo-container img {

   opacity: 1;
   display: block;
   margin-left: 15%;
   margin-top: 2px;
   margin-bottom: 1px;

}

/*Misc containter stuff starts here*/ .cnotice-misc-container {

   width: 10%;
   padding-right: 40px;

}

/*Detects and adjusts for mobile skin */ body.skin-minerva .cnotice-misc-container {

   padding-right: 10px;
   padding-top: 30px;
   padding-bottom: 20px;

}


/* --- Close Options --- */

  1. cnotice-toggle-box-options {
   display: table-cell;
   font-size: .8em;
   text-transform: uppercase;
   width: 38px;
   height: 38px;
   border-radius: 19px;
   vertical-align: middle;

}

  1. cnotice-toggle-box {
   cursor: pointer;
   position: absolute;
   top: 2px;
   right: 3px;
   z-index: 1;
   opacity: .8;

}

body.rtl #cnotice-toggle-box {

   left: 3px;
   right: unset;

}

  1. cnotice-toggle-box:hover {
   opacity: 1;

}

/* --- Full Banner Link --- */ .wlm-banner a.wlm-mainlink {

   display: block;
   height: 100%;
   width: 100%;
   cursor: pointer;
   text-decoration: none;

}

.wlm-banner a.wlm-mainlink:hover {

   text-decoration: underline;

}

.cnotice-button {

   display: inline-block;
   border: 2px solid #36c;
   border-radius: 2px;
   color: #fff;
   padding: 5px 5px;
   text-align: center;
   font-weight: bold;
   text-decoration: none;
   font-size: 14px;
   margin: 4px 2px;
   -moz-transition-duration: 100ms; /* Firefox */
   -webkit-transition-duration: 100ms; /* Safari */
   transition-duration: 100ms;
   cursor: pointer;
   z-index: 1;
   min-width: 80px;

}

@media (min-width: 1100px) {

   .cnotice-button {
       min-width: 110px;
       width: 25%;
       margin: auto;
   }

}

/* --- Buttons --- */ .wlm-banner a.cnotice-buttonlink {

   cursor: pointer;
   text-decoration: none;
   color: #000;

}

.wlm-banner a.cnotice-buttonlink:hover {

   color: #fff;

}

.cnotice-button1 {

   background-color: #36c;
   border-color: #36c;
   color: #fff;

}

.cnotice-button1:hover {

   background-color: #447ff5;
   border-color: #447ff5;

}

.cnotice-button1:active {

   background-color: #2a4b8d;
   border-color: #2a4b8d;

}

.rtl .cnotice-button1 {

   left: 23px;
   right: auto;
   margin-left: 20px;

}

  1. cnotice-translation-link {
   position: absolute;
   right: 65px;
   bottom: 0px;
   font-size: 0.8em;
   white-space: nowrap;

}

  1. cnotice-translation-link:hover {
   text-decoration: underline;

}

.rtl #cnotice-translation-link {

   text-align: left;
   left: 65px;

} </style> <script type="text/javascript"> var cn_rewrite_url = function() {

 url = ;
 switch(Geo.country) {
  case 'AL':
    url = 'http://wikilovesmonuments.al/?pk_campaign=Centralnotice';
    break;
  case 'DZ':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Algeria';
    break;
  case 'AW':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Aruba';
    break;
  case 'AU':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Australia';
    break;
  case 'CC':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Australia';
    break;
  case 'CX':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Australia';
    break;
  case 'HM':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Australia';
    break;
  case 'NF':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Australia';
    break;
  case 'AT':
    url = 'https://www.wikidaheim.at/?pk_campaign=Centralnotice';
    break;
  case 'AZ':
    url = '//az.wikipedia.org/wiki/Vikipediya:Viki_Abid%C9%99l%C9%99ri_Sevir_2018';
    break;
  case 'BD':
    url = '//commons.wikimedia.org/wiki/Commons:WLMBD2018';
    break;
  case 'BO':
    url = 'http://wlm.wikimedia.org.bo/?pk_campaign=Centralnotice';
    break;
  case 'BR':
    url = '//pt.wikipedia.org/wiki/Wikip%C3%A9dia:Wiki_Loves_Monuments/Brasil';
    break;
  case 'CA':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Canada';
    break;
  case 'HR':
    url = '//hr.wikipedia.org/wiki/Wikipedija:Wiki_voli_spomenike';
    break;
  case 'DK':
    url = '//da.wikipedia.org/wiki/Wikipedia:Wiki_Loves_Monuments_2018';
    break;
  case 'FO':
    url = '//da.wikipedia.org/wiki/Wikipedia:Wiki_Loves_Monuments_2018';
    break;
  case 'EG':
    url = '//ar.wikipedia.org/wiki/%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7:%D8%A7%D9%84%D9%88%D9%8A%D9%83%D9%8A_%D8%AA%D9%87%D9%88%D9%89_%D8%A7%D9%84%D9%85%D8%B9%D8%A7%D9%84%D9%85_2018_/%D9%85%D8%B5%D8%B1';
    break;
  case 'FI':
    url = 'http://wlm.wikimedia.fi/?pk_campaign=Centralnotice';
    break;
  case 'AX':
    url = 'http://wlm.wikimedia.fi/?pk_campaign=Centralnotice';
    break;
  case 'BL':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'CP':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'GF':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'GP':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'MF':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'MQ':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'NC':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'PF':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'PM':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'RE':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'TF':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'WF':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'YT':
    url = 'http://wikilovesmonuments.fr/?pk_campaign=Centralnotice';
    break;
  case 'GE':
    url = '//ka.wikipedia.org/wiki/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90:%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%A1_%E1%83%A3%E1%83%A7%E1%83%95%E1%83%90%E1%83%A0%E1%83%A1_%E1%83%AB%E1%83%94%E1%83%92%E1%83%9A%E1%83%94%E1%83%91%E1%83%98_2018';
    break;
  case 'DE':
    url = 'http://wikilovesmonuments.de/?pk_campaign=Centralnotice';
    break;
  case 'GH':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Ghana';
    break;
  case 'GR':
    url = 'https://wlm.wikimedia.gr/?pk_campaign=Centralnotice';
    break;
  case 'IN':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_India';
    break;
  case 'IR':
    url = '//fa.wikipedia.org/wiki/%D9%88%DB%8C%DA%A9%DB%8C%E2%80%8C%D9%BE%D8%AF%DB%8C%D8%A7:%D9%88%DB%8C%DA%A9%DB%8C_%D8%AF%D9%88%D8%B3%D8%AA%D8%AF%D8%A7%D8%B1_%DB%8C%D8%A7%D8%AF%D9%85%D8%A7%D9%86%E2%80%8C%D9%87%D8%A7_%DB%B2%DB%B0%DB%B1%DB%B8_%D8%A7%DB%8C%D8%B1%D8%A7%D9%86';
    break;
  case 'IQ':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Iraq';
    break;
  case 'IE':
    url = 'http://wikimedia.ie/programme/wiki-loves-monuments-2017/?pk_campaign=Centralnotice';
    break;
  case 'IL':
    url = 'http://www.wlm.org.il/?pk_campaign=Centralnotice';
    break;
  case 'IT':
    url = 'https://wikilovesmonuments.wikimedia.it/concorso-fotografico-wlm/?pk_campaign=Centralnotice';
    break;
  case 'VA':
    url = 'https://wikilovesmonuments.wikimedia.it/concorso-fotografico-wlm/?pk_campaign=Centralnotice';
    break;
  case 'JO':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Levant';
    break;
  case 'XK':
    url = 'http://wikilovesmonuments.al/?pk_campaign=Centralnotice';
    break;
  case 'LV':
    url = 'http://wikilovesmonuments.lv/?pk_campaign=Centralnotice';
    break;
  case 'LB':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Levant';
    break;
  case 'MY':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Malaysia';
    break;
  case 'MT':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Malta';
    break;
  case 'MX':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Mexico';
    break;
  case 'MA':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Morocco/ar';
    break;
  case 'NP':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Nepal';
    break;
  case 'NG':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Nigeria';
    break;
  case 'NO':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Norway/nb';
    break;
  case 'BV':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Norway/nb';
    break;
  case 'SJ':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Norway/nb';
    break;
  case 'PK':
    url = 'http://wikilovespak.com/?pk_campaign=Centralnotice';
    break;
  case 'PS':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Levant';
    break;
  case 'PE':
    url = 'http://wikilovesmonuments.org.pe/?pk_campaign=Centralnotice';
    break;
  case 'PH':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_the_Philippines';
    break;
  case 'PL':
    url = 'http://wikiwakacje.pl/?pk_campaign=Centralnotice';
    break;
  case 'PT':
    url = '//pt.wikipedia.org/wiki/Wikip%C3%A9dia:Wiki_Loves_Monuments_Portugal';
    break;
  case 'RO':
    url = 'http://www.wikilovesmonuments.ro/?pk_campaign=Centralnotice';
    break;
  case 'RU':
    url = '//ru.wikivoyage.org/wiki/Wikivoyage:%D0%92%D0%B8%D0%BA%D0%B8_%D0%BB%D1%8E%D0%B1%D0%B8%D1%82_%D0%BF%D0%B0%D0%BC%D1%8F%D1%82%D0%BD%D0%B8%D0%BA%D0%B8_2018';
    break;
  case 'EA':
    url = 'https://www.wikilm.es/?pk_campaign=Centralnotice';
    break;
  case 'IC':
    url = 'https://www.wikilm.es/?pk_campaign=Centralnotice';
    break;
  case 'SE':
    url = 'http://wikilovesmonuments.se/?pk_campaign=Centralnotice';
    break;
  case 'CH':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Switzerland';
    break;
  case 'SY':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Levant';
    break;
  case 'TW':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Taiwan';
    break;
  case 'TH':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Thailand';
    break;
  case 'TN':
    url = '//commons.wikimedia.org/w/index.php?title=Commons:Wiki_Loves_Monuments_2018_in_Tunisia&uselang=fr';
    break;
  case 'UG':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Uganda';
    break;
  case 'UA':
    url = 'http://wikilovesmonuments.org.ua/?pk_campaign=Centralnotice';
    break;
  case 'AE':
    url = 'http://wluae.com/?pk_campaign=Centralnotice';
    break;
  case 'GB':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'AC':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'AI':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'BM':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'DG':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'FK':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'GG':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'GI':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'GS':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'IM':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'IO':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'JE':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'KY':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'MS':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'PN':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'SH':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'TA':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'TC':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'VG':
    url = 'http://www.wikilovesmonuments.org.uk/?pk_campaign=Centralnotice';
    break;
  case 'US':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_the_United_States';
    break;
  case 'AS':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_the_United_States';
    break;
  case 'GU':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_the_United_States';
    break;
  case 'MP':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_the_United_States';
    break;
  case 'PR':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_the_United_States';
    break;
  case 'UM':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_the_United_States';
    break;
  case 'VI':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_the_United_States';
    break;
  case 'GH':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Ghana';
    break;
  case 'TZ':
    url = '//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2018_in_Tanzania';
    break;
 }
if(url!=) $("div.wlm-banner a.wlm-mainlink").attr("href",url);

} $(document).ready(cn_rewrite_url); </script>

   <a class="wlm-mainlink" href="https://www.wikilovesmonuments.org/?pk_campaign=Centralnotice">
               <img src="//upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Wiki_Loves_Monuments_Logo_notext.svg/55px-Wiki_Loves_Monuments_Logo_notext.svg.png" alt="Banner logo" width="55px" height="55px">

Wiki Loves Monuments: Photograph a monument, help Wikipedia and win!

               <img src="//upload.wikimedia.org/wikipedia/commons/thumb/b/b2/%C3%96rebro_slott_resynth.jpg/77px-%C3%96rebro_slott_resynth.jpg"/>
   </a>
       <a href="#" title="Hide" onclick="mw.centralNotice.hideBanner();return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/donate/a/ac/Close_oojs.png" alt="Hide" /></a>