MediaWiki:Centralnotice-template-POTY 2014 R1: Difference between revisions
No edit summary |
No edit summary |
||
Line 63: | Line 63: | ||
</div> |
</div> |
||
</div> |
</div> |
||
<div id="cn-poty-2014-container"> |
|||
<a id="cn-poty-2014-close" href="#" onclick="mw.centralNotice.hideBanner();return false;" title="{{int:Centralnotice-shared-hide}}">×</a> |
|||
<div id="cn-poty-2014-text"> |
|||
<a id="cn-poty-2014-link" href="//commons.wikimedia.org/wiki/Special:MyLanguage/Commons:Picture_of_the_Year/2014/Introduction">Round 1 of the Wikimedia Commons Picture of the Year competition ends January 31.<br /><b>Click here to learn more about the contest and vote for your favorite image.</b></a> |
|||
</div> |
|||
</div> |
|||
<script type="text/javascript"> |
|||
(function () { |
|||
'use strict'; |
|||
if (!window.wgUserName || !window.wgNoticeUserData) return; |
|||
if (wgNoticeUserData.editcount < 75) return; |
|||
if (wgNoticeUserData.registration <= '20150101000000') return; |
|||
var $cnContainer = $('#cn-poty-2014-container'); |
|||
if ($cnContainer.parents('#centralNotice.collapsed').length) return; |
|||
$cnContainer.show(); |
|||
// Language detection |
|||
var $a, href; |
|||
if (window.wgUserLanguage) { |
|||
$a = $('#cn-poty-2014-link'); |
|||
href = $a.attr('href'); |
|||
$a.attr('href', href + '?' + $.param({ uselang: wgUserLanguage })); |
|||
} |
|||
}); |
|||
</script> |
Revision as of 12:52, 23 January 2015
<style type="text/css">
- centralNotice.collapsed {
display: none; }
- cn-toggle-box {
float: right; }
- poty2010_round2_banner_2 {
position: relative; overflow: hidden; padding-top: 1em !important; margin-bottom: 0.5em !important; background-color:#6699CC; background-image:url('//upload.wikimedia.org/wikipedia/commons/8/87/Wikimedia_Commons_Picture_of_the_Year_2010_Banner_2.jpeg'); background-position: top center; border: solid 1px #CCCCCC; font-family: Helvetica, Verdana, sans-serif; height:93px; padding-bottom: 1em; background-repeat: no-repeat; } .trans-box a { text-align: right; font-size: 0.8em; padding-right: 6px; color: white; white-space: nowrap; text-decoration: none; } div#cn-toggle-box { position: absolute; z-index: 98; top: 2px; right: 6px; }
- poty-text {
font-size: 1.3em; font-weight: bold; color: white; padding: 16px 30px 10px 30px; line-height: 1.3em; text-align: left; }
- poty2010-text-1 {
font-size: 120%; } .cn-full-banner-click { text-decoration: none; } </style>