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

From Wikimedia Foundation Governance Wiki
Content deleted Content added
code cleanup. hoping to get something that works on mobile
test fixing
 
(61 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__
<html>
<style>
p {
line-height: 1.2em;
}
</style>
</html>

<!-- donor comments box -->
<div style="background:#fbfbfb; border:1px solid #bbbbbb; min-height: 100px; margin-bottom: 10px; font-size: 145%; text-align: center; padding: 0.5em 2em;">

<p id="std-message">
{{{comments-text|'''[[Stories2/en|Read]]''' about why other donors around the world support Wikipedia and its sister projects, or find out if your company has a [[Donate/Match Your Gift/en|corporate matching]] gift program. <br /> Tell the world that you support Wikimedia: tweet it with hashtag #keepitfree!}}}
</p>
<p id="bt-message" style="display: none;">
{{FRLocalize|2011FR/Thanks-BT}}
</p>
<p id="dd-message" style="display: none;">
{{FRLocalize|2011FR/Thanks-DD}}
</p>

<html>
<script>
function getQuerystring( key ) {
key = key.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' );
var regex = new RegExp( '[\\?&]' + key + '=([a-zA-Z0-9\_\-]*)' );
var qs = regex.exec( window.location.search );
return qs == null ? '' : qs[1];
}

var paymentMethod = getQuerystring("payment_method");

if(paymentMethod == "bt")
{
//$("#std-message").hide();
$("#bt-message").show();
}
//else if(paymentMethod == "dd")
//{
// //$("#std-message").hide();
// $("#dd-message").show();
//}

</script>
</html>

</div>

<!-- New content -->
[[File:The Impact Of Wikipedia.webm|thumbtime=3:52|thumb|center|600px|Meet a few of the volunteer editors who write and maintain Wikipedia]]

{{FRLocalizePass|Social bookmarks|{{{language}}}}}

{{#if:{{{survey-link|}}}
| <div style="margin:2em auto;font-size:120%; font-weight:bold; text-align:center;" class="plainlinks">{{{survey-text|We'd love to hear why you chose to donate today. Please answer [{{{survey-link|}}} a few questions] to help us with our fundraiser.}}}</div>
| <html><table valign="top" style="width:50%; margin-right:auto; margin-left:auto; height: 100%; vertical-align:top; background:#fbfbfb; text-align: left; border: 1px solid #bbbbbb; align="center";">
<tr>
<th style="font-weight: normal; font-size: 0.8em; vertical-align: top;">
<h2 style="margin:3px; background:#fbfbfb; font-size:120%; font-weight:bold; border:1px solid #bbbbbb; text-align:left; color:#000; padding:0.2em 0.4em;"></html>{{{story-title|Please tell us your Wikipedia story}}} {{#switch:{{{language}}}|zh-hans|zh-hant|yue|ja|ko=<small>|#default={{{story-optional-italics|''}}}}}({{{story-optional|Optional}}}){{#switch:{{{language}}}|zh-hans|zh-hant|yue|ja|ko=</small>|#default={{{story-optional-italics|''}}}}}<html></h2>
<form style="padding: 6px;" name='stories' method='post' action='</html>{{localurl:Special:Contact}}<html>'>
<input type="hidden" name="returnto" value="Support/en">
<p style="font-style: italic; font-size: 1.1em;"></html>{{{story-links|Read other [[Stories2/en|Wikipedia stories]].}}}<html></p>
<p style="font-weight: bold; font-size: 1.2em;">
</html>{{{story-intro|What does Wikipedia mean to you?}}}<html>
</p>
<p>

<table valign="top" style="background: none; vertical-align: top;">
<tr>
<td></html>{{{story-name|Name:}}} <html></td>
<td><input style="width: 400px;" type="text" name="name" id="name" maxlength="200" size="30" /></td>
</tr>
<tr style="white-space: nowrap">
<td></html>{{{story-age|Age:}}}<html></td>
<td style="white-space: nowrap"><input style="width:50px;" type="text" name="age" id="age" maxlength="3" size="3" />
</html>{{{story-city|City:}}} <html>
<input style="width: 320px;" type="text" name="location" id="location" maxlength="200" size="30" /></td>
</tr>
<tr>
<td></html>{{{story-email|Email:}}}<html></td>
<td><input style="width: 400px;" type="text" name="email" id="email" maxlength="200" size="30" /></td>
</tr>
<tr valign="top">
<td></html>{{{story-your-story|Your&nbsp;story:}}}<html></td>
<td><textarea style="width: 400px;" name="story" id="story" cols="25" rows="6"></textarea></td>
</tr>
</tr>
<tr valign="top">
<td></td>
<td><input type="submit" value="</html>{{{story-submit|Submit}}}<html>" /></td></tr><tr><td></td>
<td style="line-height: 1.5em;"><input type="checkbox" name="followup" id="followup" value="story-permission"/>&nbsp;&nbsp;<label for="follow-up"></html>{{{story-permission|By checking this box, you grant the Wikimedia Foundation permission to follow-up with you directly regarding your story, and to use it to publicize the Wikimedia Foundation and its projects.
}}}<html></label></td>
</tr>
</table>
</form>
</th></tr></table></html>
}}<html>
</td></tr><tr><td style="vertical-align: top;">


</td><td></td><td></td></tr></table></html>
{{Hide banners}}

Latest revision as of 15:20, 27 March 2018

Documentation