User:Pcoombe (WMF)/sandbox: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
No edit summary
test fixing
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div dir="ltr">{{#if:{{{flag|{{{focus|}}}}}}|[[{{{flag|File:Flag of {{{focus}}}.svg}}}|22px{{#if:{{{flag|}}}||{{!}}border}}|{{{focus}}}]] '''{{{focus}}}{{#if:{{{subfocus|}}}|, {{{subfocus}}}}}:'''}} {{#if:{{{url|}}}|[{{{url}}} {{{name}}}]|[[{{{wiki|m}}}:{{{metapage|{{{name}}}}}}|{{{name}}}]]}}</div></includeonly><noinclude>{{documentation}}</noinclude>
__NOTOC__
__NOEDITSECTION__
{{DISPLAYTITLE:{{{header}}}}}
<html>
<script src="//bits.wikimedia.org/geoiplookup"></script>
<style>
/* Hide some MobileFrontend clutter */
.skin-minerva .header,
.skin-minerva #page-actions,
.skin-minerva h1,
.skin-minerva #mw-mf-last-modified {
display: none;
}
#firstHeading, #contentSub, #siteSub {
display: none;
}
.ty {
font-size: 1.2em;
}

.ty-header {
font-size: 3em;
font-weight: bold;
line-height: 1.2;
}
.skin-minerva .ty-header {
font-size: 1.8em;
}

/* Can't use normal headers as don't want mobile to collapse them */
.ty-subhead {
font-size: 1.2em;
margin-top: 1em;
font-weight: bold;
color: #006699;
}

.ty-footer {
margin-top: 1em;
font-size: 0.9em;
border-top: 1px solid #ddd;
text-align: center;
}

.country-specific-GB {
display: none;
}
</style>
</html>

<div class="ty plainlinks" {{#if:{{{rtl|}}}|dir="rtl"}}>

<div class="ty-header">{{{header}}}</div>

<div class="ty-banktransfer" style="display: none;">{{{bank-transfer}}}</div>

{{{receipt}}} <span class="ty-bitcoin" style="display: none;">{{{receipt-bitcoin}}}</span>

{{{questions}}}

<div class="ty-subhead">{{{share-header}}}</div>
{{Social bookmarks2
| style = margin: 0; text-align: {{#if:{{{rtl|}}}|right|left}};
| title = {{{share-label}}}
| short-message = {{{share-msg1}}}
| long-message = {{{share-msg2}}}
| more-link-text = {{{share-more}}}
}}

{{#if:{{{match-text|}}}|
<div class="ty-subhead">{{{match-header}}}</div>
{{{match-text}}}
}}

{{#if:{{{survey-text|}}}|
<div class="ty-subhead">{{{survey-header}}}</div>
{{{survey-text}}}
}}

<div class="country-specific-GB">
<div class="ty-subhead">God save the Queen!</div>
Blah blah blah blah
</div>

<div class="ty-footer">
{{{footer-text1}}}

{{{footer-text2}}}
</div>

</div><!-- ty -->

{{Hide banners}}

<html>
<script>
$(document).ready( function () {
var paymentMethod = mw.util.getParamValue("payment_method");

if(paymentMethod === 'bt') {
$('.ty-banktransfer').show();
}
if(paymentMethod === 'bitcoin') {
$('.ty-bitcoin').show();
}

// Allow overriding the country for testing
var Geo = Geo || {};
if(mw.util.getParamValue('country')) {
Geo.country = mw.util.getParamValue('country');
}

if(Geo.country === 'GB') {
$('.country-specific-GB').show();
}

});
</script>
</html>

Latest revision as of 15:20, 27 March 2018

Documentation