{{Help me}} helper tools
Help me tools for helpers
by ShoeMaker
HTML
<table class="plainlinks tmbox tmbox-style" style="" role="presentation">
<tbody>
<tr>
<td class="mbox-image"><a href="/wiki/File:Emblem-question-yellow.svg" class="image"><img alt="Emblem-question-yellow.svg" src="//upload.wikimedia.org/wikipedia/en/thumb/a/aa/Emblem-question-yellow.svg/60px-Emblem-question-yellow.svg.png" srcset="//upload.wikimedia.org/wikipedia/en/thumb/a/aa/Emblem-question-yellow.svg/90px-Emblem-question-yellow.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/a/aa/Emblem-question-yellow.svg/120px-Emblem-question-yellow.svg.png 2x" height="60" width="60"></a>
</td>
<td class="mbox-text" style=""><b><big>I am looking for help!</big></b>
<br>Ask your question below. You can also look at <a href="/wiki/Help:Contents" title="Help:Contents">Help Contents</a>, ask at the <a href="/wiki/Wikipedia:Help_desk" title="Wikipedia:Help desk">Help desk</a> or the <a href="/wiki/Wikipedia:Teahouse/Questions" title="Wikipedia:Teahouse/Questions">Teahouse</a>, or check the <a href="/wiki/Wikipedia:FAQ" title="Wikipedia:FAQ">FAQ</a>.
<br>Users who monitor the category <a href="/wiki/Category:Wikipedians_looking_for_help" title="Category:Wikipedians looking for help">Wikipedians looking for help</a> and those on the <a target="_blank" rel="nofollow" class="external text" href="http://webchat.freenode.net?channels=wikipedia-en-help">#wikipedia-en-help</a> <a href="/wiki/IRC_channel" title="IRC channel" class="mw-redirect">IRC channel</a> have been alerted and will assist you shortly. Note that you can also receive live Wikipedia-related help there; <a target="_blank" rel="nofollow" class="external text" href="http://webchat.freenode.net?channels=wikipedia-en-help">click here to connect</a>. You'll be receiving help soon so don't worry.
<div class="helpme-helper-toolbar" style="color: gray; font-size: smaller;">Would you like to be a helper? Please visit the...
CSS
.nowrap {
white-space: nowrap;
}
table.tmbox {
margin: 4px 10%;
border-collapse: collapse;
border: 1px solid #c0c090;
/* Default "notice" gray-brown */
background: #f8eaba;
}
.mediawiki .mbox-inside .tmbox {
/* For tmboxes inside other templates. The "mediawiki" class ensures that */
margin: 2px 0;
/* this declaration overrides other styles (including mbox-small above) */
width: 100%;
/* For Safari and Opera */
}
.mbox-inside .tmbox.mbox-small {
/* "small" tmboxes should not be small when */
line-height: 1.5em;
/* also "nested", so reset styles that are */
font-size: 100%;
/* set in "mbox-small" above. */
}
table.tmbox-speedy {
border: 2px solid #b22222;
/* Red */
background: #fee;
/* Pink */
}
table.tmbox-delete {
border: 2px solid #b22222;
/* Red */
}
table.tmbox-content {
border: 2px solid #f28500;
/* Orange */
}
table.tmbox-style {
border: 2px solid #f4c430;
/* Yellow */
}
table.tmbox-move {
border: 2px solid #9932cc;
/* Purple */
}
table.tmbox-protection, table.tmbox-notice {
border: 1px solid #c0c090;
/* Gray-brown */
}
JavaScript
function loadTools() {
return $(".helpme-helper-toolbar").html('<div style="display: inline-block; text-align: center; width: 100%;"><a href="#" onClick="tagWorking()">{{Helpme-working}}</a> • <a href="#" onClick="tagHelped()">{{Helpme-helped}}</a> • <a href="#" onClick="tagNs()">{{Helpme-ns}}</a> • <a href="#" onClick="tagNq()">{{Helpme-nq}}</a> • <a href="#" onClick="tagIa()">{{Helpme-inappropriate}}</a> • <a href="#" onClick="tagAdmin()">{{Helpme-admin}}</a></div>');
$(".helpme-helper-toolbar a").css("text-decoration", "none");
}
function jqEsc(expression) {
return expression.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~]/g, '\\$&');
}
/*
function getPageText() {
var title = "User talk:Technical 13/helpmetools"; //mw.get.config('wgPageName');
var request = {
'action': 'query',
'prop': 'content',
'rvprop': 'content',
'format': 'jsonp',
'indexpageids': true,
'titles': title
};
var response = JSON.parse(
$.ajax({
url: mw.util.wikiScript('api'),
data: request,
async: false
})
.responseText);
pageid = response.query.pageids[0];
var newtext = response.query.pages[pageid].revisions[0]['*'];
if (response.query.redirects /* If &redirects if specified but there is no redirect, this stops us from getting an error *//* ) {
var oldusername = response.query.redirects[0].from;
var newusername = response.query.redirects[0].to;
if ((typeof (oldusername) !== 'undefined') && (typeof (newusername) !== 'undefined') && (oldusername != newusername)) {
usertalkpage = newusername;
return {
'pagetext': newtext,
'timestamp': response.query.pages[pageid].revisions[0].timestamp
};
}
}
}
*/
function tagWorking() {
//stuff
}
function tagHelped() {
//stuff
}
function tagNs() {
//stuff
}
function tagNq() {
...