MediaWiki:Centralnotice-template-B12 JimmyBlank
<style type="text/css">
/* Common style for 2011 banners */
/* Suppress lock icon for secure links in the banner */ #centralNotice a[href^="https://"], .link-https { background-image: none !important; padding: 0 !important; }
/* Set a grey border, grey background, etc. */ .cn-fundraiser-banner { position: relative; border: 1px solid silver; background-color: #fbfbfb; margin-bottom: 0.5em !important; padding-top: 1em; padding-bottom: 1em; text-align:center; }
/* Put the little X in the top-right (ltr) or top-left (rtl) corner */ #cn-toggle-box { position: absolute; z-index: 51; top: 7px; } body.ltr #cn-toggle-box { right: 7px; } body.rtl #cn-toggle-box { left: 7px; } #cn-toggle-box img { display: block; }
/* Put the big X in the top-right (ltr) or top-left (rtl) corner */ #cn-close-box { position: absolute; z-index: 51; top: 5px; } body.ltr #cn-close-box { right: 5px; } body.rtl #cn-close-box { left: 5px; } #cn-close-box img { display: block; }
/* Bold, blue text */ .cn-blue-text { font-weight: bold; color: #6e98c2; text-align: center; font-size: 1.3em; }
/* Bigger bold, blue text */ .cn-bold-blue-text { font-size: 2.25em; font-weight: bold; color: navy; text-align: center; padding: 0.5em !important; line-height: 1em; direction: ltr; // Temporary fix for FRDrill 6. Will be removed later (breaks RTL when we have translations) }
/* For buttons in the lower right (ltr) or left (rtl) corner */ .cn-bottom-right-float { position: absolute; z-index: 50; bottom: 1em; } body.ltr .cn-bottom-right-float { right: 1em; } body.rtl .cn-bottom-right-float { left: 1em; }
/* For buttons in the upper left (ltr) or right (rtl) corner */
.cn-top-left-float { position: absolute; z-index: 50; top: 1em; } body.ltr .cn-top-left-float { left: 1em; } body.rtl .cn-top-left-float { right: 1em; }
/* To make the entire banner clickable */ a.cn-full-banner-click { display:block; position:relative; height:100%; width:100%; }
</style> <style type="text/css">
- notice-button-2011 {
height: 30px; text-align: center; background-color: transparent; }
body.ltr #notice-button-2011 {
float: right; }
body.rtl #notice-button-2011 {
float: left; }
- notice-button-2011-start {
float: right; background-image: url(//upload.wikimedia.org/wikipedia/foundation/a/a7/CNtranslatebutton2.png); background-position: right bottom; width: 4px; height: 30px; }
#notice-button-2011-end { float: right; background-image: url(//upload.wikimedia.org/wikipedia/foundation/a/a7/CNtranslatebutton2.png); background-position: left top; width: 4px; height: 30px; }
- notice-button-2011-label {
float: right; background-image: url(//upload.wikimedia.org/wikipedia/foundation/a/a7/CNtranslatebutton2.png); background-position: center center; background-repeat: repeat-x; font-family: sans-serif; font-size: 1em; font-weight: bold; color: black; line-height: 30px; height: 30px; padding: 0 4px; white-space: nowrap; text-decoration: none; cursor: pointer; }
- notice-button-2011-label:hover{
text-decoration: none; cursor: pointer;
}
- notice-button-2011-Editor {
position:absolute; height: 30px; text-align: center; background-color: transparent; bottom: 15px;
} body.ltr #notice-button-2011-Editor {
left: 40px;
} body.rtl #notice-button-2011-Editor {
right: 40px;
}
- notice-button-2011-start-Editor {
float: left; background-image: url(//upload.wikimedia.org/wikipedia/foundation/a/a7/CNtranslatebutton2.png); background-position: left top; width: 4px; height: 30px; }
#notice-button-2011-end-Editor { float: left; background-image: url(//upload.wikimedia.org/wikipedia/foundation/a/a7/CNtranslatebutton2.png); background-position: right bottom; width: 4px; height: 30px; }
- notice-button-2011-label-Editor {
float: left; background-image: url(//upload.wikimedia.org/wikipedia/foundation/a/a7/CNtranslatebutton2.png); background-position: center center; background-repeat: repeat-x; font-family: sans-serif; font-size: .5em; font-weight: bold; color: black; line-height: 30px; height: 30px; padding: 0 4px; white-space: nowrap; }
</style> <style type="text/css">
- {{{banner}}} {
position: absolute; background-image: url({{{image-link}}}); background-repeat: no-repeat; margin-bottom: 0.5em !important; background-color:#FFFFFF; border: solid 1px silver; height:172px; overflow: hidden; display: none;
}
body.ltr #{{{banner}}} {
background-position: bottom left; display: none;
} body.rtl #{{{banner}}} {
background-position: bottom right; display: none;
}
- {{{banner}}} a {
text-decoration: none;
}
- {{{banner}}} a:hover {
text-decoration: none;
}
- cn-bold-blue-text:hover {
text-decoration: underline;
}
/* Bigger bold, blue text */
- {{{banner}}} #cn-bold-blue-text {
font-size: 2.25em; font-weight: bold; font-family: Helvetica, Arial, sans-serif; color: navy; padding: 1.5em 80px 0.8em 210px; line-height: 1em; text-align:center;
} </style>
<script type="text/javascript">
var countrySpecific = { 'AN':['AMERICAS','USD','$','$1,000,000','5',1,29.5], 'AU':['AU','AUD','$','$1,000,000','5',1.01059,30.1], 'DO':['AMERICAS','DOP','RD$','$1,000,000','5',38.64,1140], 'DM':['AMERICAS','XCD','EC$','$1,000,000','5',2.70,79.7,], 'MK':['MK','MKD','ден','$1,000,000','5',46.68,1380], 'MU':['AFRICA','USD','$','$1,000,000','5',1,29.5], 'SV':['AMERICAS','USD','$','$1,000,000','5',1,29.5], 'AE':['AE','AED','AED' ,'$1,000,000','5',3.673,109], 'AR':['AR','ARS','N$','$1,000,000','5',4.28105,127], 'PG':['WORLD','AUD','A$','$1,000,000','5',1.01059,30.1], 'KI':['WORLD','AUD','A$','$1,000,000','5',1.01059,30.1], 'NR':['WORLD','AUD','A$','$1,000,000','5',1.01059,30.1], 'VU':['WORLD','AUD','A$','$1,000,000','5',1.01059,30.1], 'AR':['AR','AUD','A$','$1,000,000','5',1.01059,30.1], 'BD':['ASIA','BDT','টাকা','$1,000,000','5',77.05,2380], 'BG':['EUROPE','BGN','лв','$1,000,000','5',1.5061,44.6], 'BH':['MIDEAST','BHD','BHD','$1,000,000','5',0.37701,11.3], 'BM':['AMERICAS','BMD','BD$','$1,000,000','5',1,29.5], 'BO':['AMERICAS','BOB',' $b','$1,000,000','5',6.91,204], 'BR':['BR','BRL','R$','$1,000,000','10',1.8799,55.5], 'BZ':['AMERICAS','BZD','BZ$','$1,000,000','5',1.9855,58.8], 'CA':['CA','CAD','$','$1,000,000','5',1.03961,30.7], 'LI':['EUROPE','CHF','Fr.','$1,000,000','5',0.94534,28.1], 'CH':['CH','CHF','Fr.','$1,000,000','5',0.94534,28.1], 'CL':['CL','CLP','pesos','$1,000,000','5',521.35,15400], 'CN':['CN','CNY','¥','$1,000,000','5',6.3734,189], 'CO':['AMERICAS','COP',' COL$','$1,000,000','5',1938.07,57200], 'CR':['AMERICAS','CRC','₡','$1,000,000','5',501.985,14900], 'CZ':['CZ','CZK','Kč','$1,000,000','100',19.7355,583], 'DK':['DK','DKK',' kr','$1,000,000','25',5.7301,170], 'DZ':['MIDEAST','DZD','DZD','$1,000,000','5',75.3478,2230], 'EG':['MIDEAST','EGP',' E£','$1,000,000','5',6.02025,178], 'MW':['WORLD','GBP','£','$1,000,000','5',0.646525,19.2], 'SD':['WORLD','GBP','£','$1,000,000','5',0.646525,19.2], 'GB':['GB','GBP','£','£600k','5',0.646525,19.2], 'GT':['AMERICAS','GTQ','Q','$1,000,000','5',7.7895,230], 'HK':['HK','HKD',' HK$','$1,000,000','5',7.78438,230], 'HN':['AMERICAS','HNL','L','$1,000,000','5',18.96,560], 'HR':['EUROPE','HRK','kn','$1,000,000','5',5.78788,171], 'HU':['HU','HUF','Ft','$1,000,000','5',234.02,6910], 'ID':['ID','IDR','Rp','$1,000,000','5',9091.25,269000], 'IL':['IL','ILS','₪','$1,000,000','20',3.81298,113], 'NP':['WORLD','INR','₹','$1,000,000','5',53.92,1600], 'IN':['IN','INR','₹','$1,000,000','100',53.92,1600], 'JM':['AMERICAS','JMD','J$','$1,000,000','5',86.33,2550], 'JO':['MIDEAST','JOD','JOD','$1,000,000','5',0.709,21], 'JP':['JP','JPY','¥','¥77,000,000','1000',78.0025,2310], 'KE':['AFRICA','KES','KSh','$1,000,000','5',85.9,2540], 'KR':['KR','KRW','₩','$1,000,000','5',1162.93,34400], 'KW':['MIDEAST','KWD','KWD','$1,000,000','5',0.2783,8.27], 'KZ':['ASIA','KZT','₸','$1,000,000','5',148.162,4380], 'LB':['MIDEAST','LBP','L£','$1,000,000','5',1505.5,44500], 'LK':['ASIA','LKR','Rs.','$1,000,000','5',113.895,3370], 'LT':['EUROPE','LTL','Lt','$1,000,000','5',2.66215,78.8], 'LV':['EUROPE','LVL','Ls','$1,000,000','5',0.53785,16], 'MA':['MIDEAST','MAD','MAD','$1,000,000','5',8.57598,254], 'MX':['MX','MXN','Mex$','$1,000,000','25',13.8919,411], 'MY':['ASIA','MYR','RM','$1,000,000','5',3.1869,94.2], 'NI':['AMERICAS','NIO','C$','$1,000,000','5',22.923,677], 'NO':['NO','NOK','kr','1M kr','25',6.0003,178], 'NZ':['NZ','NZD','NZ$','$1,000,000','5',1.336969,39.6], 'OM':['MIDEAST','OMR','OMR','$1,000,000','5',0.38501,11.6], 'PA':['AMERICAS','PAB','B/.','$1,000,000','5',1,29.5], 'PE':['AMERICAS','PEN','S/.','$1,000,000','5',2.6975,79.7], 'PH':['PH','PHP','₱','$1,000,000','5',44.0968,1310], 'PK':['ASIA','PKR','Rs','$1,000,000','5',89.575,2650], 'PL':['PL','PLN','zł','$1,000,000','5',3.50555,104], 'PY':['AMERICAS','PYG','PYG','$1,000,000','5',4420.0,131000], 'QA':['MIDEAST','QAR','QAR','$1,000,000','5',3.64135,108], 'RO':['EUROPE','RON','lei','$1,000,000','5',3.3483,98.9], 'TM':['WORLD','RUB','руб.','$1,000,000','50',31.8756,941], 'UZ':['WORLD','RUB','руб.','$1,000,000','50',31.8756,941], 'RU':['RU','RUB','руб.','$1,000,000','100',31.8756,941], 'SA':['MIDEAST','SAR','$','$1,000,000','50',3.75045,111], 'SE':['SE','SEK','kr','$1,000,000','25',7.01344,208], 'SG':['SG','SGD','S$','$1,000,000','5',1.3092,38.7], 'TH':['ASIA','THB','฿','$1,000,000','5',31.43,928], 'TN':['MIDEAST','TND','dinar','$1,000,000','5',1.49465,44.3], 'TR':['EUROPE','TRY','TL','$1,000,000','5',1.8838,55.8], 'TT':['AMERICAS','TTD','TT$','$1,000,000','5',6.36,188], 'TW':['TW','TWD','NT$','$1,000,000','5',30.3625,896], 'UA':['UA','UAH','₴','$1,000,000','5',8.021,237], 'UY':['AMERICAS','UYU','$U','$1,000,000','5',20.211,597], 'VN':['ASIA','VND','₫','$1,000,000','5',21020.8,621000], 'ZA':['ZA','ZAR','R','$1,000,000','5',8.42948,249], 'PR':['AMERICAS','USD','$','$1,000,000','5',1,29.5], 'AF':['WORLD','USD','$','$1,000,000','5',1,29.5], 'AS':['WORLD','USD','$','$1,000,000','5',1,29.5], 'AO':['WORLD','USD','$','$1,000,000','5',1,29.5], 'AG':['WORLD','USD','$','$1,000,000','5',1,29.5], 'BS':['WORLD','USD','$','$1,000,000','5',1,29.5], 'BB':['WORLD','USD','$','$1,000,000','5',1,29.5], 'BW':['WORLD','USD','$','$1,000,000','5',1,29.5], 'BN':['WORLD','USD','$','$1,000,000','5',1,29.5], 'BI':['WORLD','USD','$','$1,000,000','5',1,29.5], 'KH':['WORLD','USD','$','$1,000,000','5',1,29.5], 'KM':['WORLD','USD','$','$1,000,000','5',1,29.5], 'CG':['WORLD','USD','$','$1,000,000','5',1,29.5], 'CK':['WORLD','USD','$','$1,000,000','5',1,29.5], 'DJ':['WORLD','USD','$','$1,000,000','5',1,29.5], 'TP':['WORLD','USD','$','$1,000,000','5',1,29.5], 'ER':['WORLD','USD','$','$1,000,000','5',1,29.5], 'ET':['WORLD','USD','$','$1,000,000','5',1,29.5], 'FJ':['WORLD','USD','$','$1,000,000','5',1,29.5], 'GM':['WORLD','USD','$','$1,000,000','5',1,29.5], 'GE':['WORLD','USD','$','$1,000,000','5',1,29.5], 'GD':['WORLD','USD','$','$1,000,000','5',1,29.5], 'GU':['WORLD','USD','$','$1,000,000','5',1,29.5], 'IS':['WORLD','USD','$','$1,000,000','5',1,29.5], 'IQ':['WORLD','USD','$','$1,000,000','5',1,29.5], 'KP':['WORLD','USD','$','$1,000,000','5',1,29.5], 'LR':['WORLD','USD','$','$1,000,000','5',1,29.5], 'MV':['WORLD','USD','$','$1,000,000','5',1,29.5], 'MH':['WORLD','USD','$','$1,000,000','5',1,29.5], 'MR':['WORLD','USD','$','$1,000,000','5',1,29.5], 'FM':['WORLD','USD','$','$1,000,000','5',1,29.5], 'MD':['WORLD','USD','$','$1,000,000','5',1,29.5], 'MZ':['WORLD','USD','$','$1,000,000','5',1,29.5], 'NA':['WORLD','USD','$','$1,000,000','5',1,29.5], 'NG':['WORLD','USD','$','$1,000,000','5',1,29.5], 'MP':['WORLD','USD','$','$1,000,000','5',1,29.5], 'PW':['WORLD','USD','$','$1,000,000','5',1,29.5], 'PS':['WORLD','USD','$','$1,000,000','5',1,29.5], 'KN':['WORLD','USD','$','$1,000,000','5',1,29.5], 'LC':['WORLD','USD','$','$1,000,000','5',1,29.5], 'SB':['WORLD','USD','$','$1,000,000','5',1,29.5], 'VC':['WORLD','USD','$','$1,000,000','5',1,29.5], 'TZ':['WORLD','USD','$','$1,000,000','5',1,29.5], 'TO':['WORLD','USD','$','$1,000,000','5',1,29.5], 'VE':['WORLD','USD','$','$1,000,000','5',1,29.5], 'VI':['WORLD','USD','$','$1,000,000','5',1,29.5], 'YE':['WORLD','USD','$','$1,000,000','5',1,29.5], 'ZM':['WORLD','USD','$','$1,000,000','5',1,29.5], 'ZW':['WORLD','USD','$','$1,000,000','5',1,29.5], 'US':['US','USD','$','$1,000,000','10',1,29.5], 'EC':['AMERICAS','USD','$','$1,000,000','5',1,29.5], 'MO':['MO','USD','$','$1,000,000','5',1,29.5], 'RS':['RS','EUR','€','750,000€','5',0.77095,23.1], 'AL':['EUROPE','EUR','€','750,000€','5',0.77095,23.1], 'AD':['EUROPE','EUR','€','750,000€','5',0.77095,23.1], 'CY':['EUROPE','EUR','€','750,000€','5',0.77095,23.1], 'LU':['EUROPE','EUR','€','750,000€','10',0.77095,23.1], 'MT':['EUROPE','EUR','€','750,000€','5',0.77095,23.1], 'GF':['AMERICAS','EUR','€','750,000€','5',0.77095,23.1], 'AM':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'AW':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'AZ':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'BY':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'BJ':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'BA':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'BF':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'CM':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'CV':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'CF':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'TD':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'CI':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'FO':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'GA':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'GL':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'LY':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'MG':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'ML':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'MC':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'ME':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'NE':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'RE':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'SM':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'SN':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'SC':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'SR':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'TG':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'VA':['WORLD','EUR','€','750,000€','5',0.77095,23.1], 'DE':['DE','EUR','€','750,000€','5',0.77095,23.1], 'FR':['FR','EUR','€','750,000€','5',0.77095,23.1], 'NL':['NL','EUR','€','750,000€','5',0.77095,23.1], 'AT':['GB','EUR','€','750,000€','5',0.77095,23.1], 'IT':['IT','EUR','€','750,000€','5',0.77095,23.1], 'ES':['ES','EUR','€','750,000€','5',0.77095,23.1], 'BE':['BE','EUR','€','750,000€','5',0.77095,23.1], 'FI':['FI','EUR','€','750,000€','10',0.77095,23.1], 'IE':['IE','EUR','€','750,000€','5',0.77095,23.1], 'GR':['GR','EUR','€','750,000€','5',0.77095,23.1], 'PT':['PT','EUR','€','750,000€','5',0.77095,23.1], 'SK':['EUROPE','EUR','€','750,000€','5',0.77095,23.1], 'SI':['EUROPE','EUR','€','750,000€','5',0.77095,23.1], 'EE':['EE','EUR','€','750,000€','5',0.77095,23.1], 'XX':['XX', 'USD', '$', '$1,000,000', '5',1,29.5] };
var getCountryValue = function( ii ) {
return countrySpecific[Geo.country][ii];
}
var bannerRewriteUrl = function() {
$('#cn-landingpage-link').attr('href', function() { var baseUrl = 'https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage'; var appeal = bannerChooseRandom( '{{{lp-appeal}}}' ); var infobox = 'Default'; if ( appeal == 'Appeal-facts' ){ infobox = 'Appeal-default'; }
var queryString = $.param( { 'uselang' : wgUserLanguage, 'country' : Geo.country, 'template' : 'Lp-layout-default',
// landing page components
'appeal-template' : bannerChooseRandom( '{{{lp-appeal-template}}}' ), 'appeal': appeal, 'infobox': infobox, 'form-template' : bannerChooseRandom( '{{{lp-form-template}}}' ), 'form-countryspecific' : bannerChooseRandom( '{{{lp-form-countryspecific}}}' ), // utm tracking data 'utm_medium' : 'sitenotice', 'utm_source' : '{{{banner}}}' + '_' + Geo.country, 'utm_campaign' : '{{{campaign}}}' + '_' + Geo.country } ); var fullUrl = baseUrl + '?' + queryString; return fullUrl } );
};
var bannerChooseRandom = function(choiceString) {
var choices = choiceString.split(','); if ( choices.length ) { return choices[Math.floor( Math.random() * choices.length )].replace(/^\s+|\s+$/, ); }
}
$(document).ready( function () {
bannerRewriteUrl();
});
</script>