User:NonvocalScream/monobook.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
//<nowiki>
importScript('User:Synergy/rollback.js');
WarnVandalCustomItems.push( Array('test1', 1, 'Test edit', 'First Test') );
WarnVandalCustomItems.push( Array('test2', 1, 'Testing', 'Second Test') );
WarnVandalCustomItems.push( Array('test2a', 1, 'Removing content', 'Removing Content (2)') );
WarnVandalCustomItems.push( Array('test3', 1, 'Testing', 'Third Test') );
WarnVandalCustomItems.push( Array('test3a', 1, 'Removing content', 'Removing Content (3)') );
WarnVandalCustomItems.push( Array('test4', 1, 'Test edit - Last warning', 'Last Warning') );
WarnVandalCustomItems.push( Array('test4im', 1, 'Only Warning', 'Only Warning') );
WarnVandalCustomItems.push( Array('uw-mos1', 1, 'No manual of style', 'MOS') );
WarnVandalCustomItems.push( Array('uw-npov1', 1, 'No neutral point of view', 'NPOV') );
WarnVandalCustomItems.push( Array('uw-npa1', 1, 'No personal attacks', 'NPA') );
WarnVandalCustomItems.push( Array('testarticle', 1, 'Experimenting', 'Testarticle') );
WarnVandalCustomItems.push( Array('uw-selfrevert', 1, 'Selfrevert', 'Selfrevert') );
WarnVandalCustomItems.push( Array('Uw-block1|sig=yes', 2, 'Blocked', 'Blocked 1') );
WarnVandalCustomItems.push( Array('Uw-block2|sig=yes', 2, 'Blocked', 'Blocked 2 (IP)') );
WarnVandalCustomItems.push( Array('Uw-block3|sig=yes', 2, 'Blocked Indef', 'Indef Blocked') );
WarnVandalCustomItems.push( Array('Welcome', 0, 'Welcome to Wikipedia', 'Welcome 1') );
WarnVandalCustomItems.push( Array('WelcomeG', 0, 'Welcome to Wikipedia', 'Welcome 2') );
WarnVandalCustomItems.push( Array('Anon', 0, 'Welcome to Wikipedia', 'IP Welcome') );
WarnVandalCustomItems.push( Array('uw-simple', 1, 'Not simple language', 'Not Simple') );
WarnVandalCustomItems.push( Array('uw-upload', 1, 'Uploading images is not allowed', 'Uploads') );
WarnVandalCustomItems.push( Array('uw-badcat', 1, 'Adding bad categories', 'Add Bad Cat') );
WarnVandalCustomItems.push( Array('uw-bite', 1, 'Biting newcomers', 'Bite') );
WarnVandalCustomItems.push( Array('uw-encopypaste', 1, 'Copying and pasting', 'en Copy paste') );
WarnVandalCustomItems.push( Array('uw-qd', 1, 'Removing QD tags', 'Remove QD') );
WarnVandalCustomItems.push( Array('uw-spellcheck', 1, 'Bad spelling', 'Spelling') );
WarnVandalCustomItems.push( Array('uw-tilde', 1, 'Not signing posts', 'Not Signing') );
WarnVandalCustomItems.push( Array('Uw-encopyright', 1, 'Need to attribute a derivative work', 'Derivative works') );;
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/2e/Button_broom.png",
"speedTip": "QD",
"tagOpen": "\x7b\x7bQD|",
"tagClose": "}}",
"sampleText": ""};
function doMassDelete() {
document.getElementById("wpMassDeleteSubmit").disabled = true;
var articles = document.getElementById("wpMassDeletePages").value.split("\n");
if(articles.length == 0) return;
var wpMassDeleteReasons = document.getElementById("wpMassDeleteReasons").value, wpMassDeleteReason = document.getElementById("wpMassDeleteReason").value, deleted = 0, failed = new Array();
for(i=0;i<articles.length;i++) {
var article = articles[i];
if(article.length > 0) {
var req = sajax_init_object();
req.open("GET", wgScriptPath + "/api.php?format=json&action=query&prop=info&intoken=delete&titles=" + encodeURIComponent(article), false);
req.send(null);
var response = eval("(" + req.responseText + ")").query.pages;
for(var index in response) {
var info = response[index];
var deletetoken = info.deletetoken;
var postdata = "format=json"
+ "&action=delete"
+ "&title=" + encodeURIComponent(article)
+ "&reason=" + encodeURIComponent(wpMassDeleteReasons == "other" ? wpMassDeleteReason : wpMassDeleteReasons + (wpMassDeleteReason ? " (" + wpMassDeleteReason + ")" : ""))
+ "&token=" + encodeURIComponent(deletetoken);
var req = sajax_init_object();
req.open("POST", wgScriptPath + "/api.php", false);
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
req.setRequestHeader("Content-length", postdata.length);
req.send(postdata);
if(eval("(" + req.responseText + ")").delete) { //If deleted, update the deleted count and the button.
deleted++;
document.getElementById("wpMassDeleteSubmit").value = "(" + deleted + ")";
} else { //If not deleted, add the title to the "failed" array.
failed.push(article);
}
}
}
if(!articles[i+1]) {
document.getElementById("wpMassDeleteSubmit").value = "Done (" + deleted + ")";
if(failed.length > 0) {
var linkedList = "";
for(x=0; x<failed.length; x++) {
linkedList += "<li><a href=\"/wiki/" + encodeURIComponent(failed[x]).replace("%2F", "/") + "\">" + failed[x] + "</a></li>"; //Links the titles in the "failed" array
}
document.getElementById("wpMassDeleteFailedContainer").innerHTML += '<br /><b>Failed deletions:</b> <ul>' + linkedList + '</ul>';
}
}
}
}
function massdeleteform() {
var bodyContent = (skin == "cologneblue" ? "article" : "bodyContent");
document.getElementsByTagName("h1")[0].textContent = "Animum's mass-deletion tool";
document.title = "Animum's mass-deletion tool - Wikipedia, the free encyclopedia";
document.getElementById(bodyContent).innerHTML = '<h3 id="siteSub">From Wikipedia, the free encyclopedia</h3><br /><br />'
+ '<form id="wpMassDelete" name="wpMassDelete">'
+ '<b>If you abuse this tool, it\'s <i>your</i> fault, not mine.</b>'
+ '<div id="wpMassDeleteFailedContainer"></div>'
+ '<br /><br />'
+ 'Pages to delete (one on each line, please):<br />'
+ '<textarea tabindex="1" accesskey="," name="wpMassDeletePages" id="wpMassDeletePages" rows="10" cols="80"></textarea>'
+ '<br /><br /><table style="background-color:transparent">'
+ '<tr><td>Common reasons:</td>'
+ '<td><select id="wpMassDeleteReasons">'
+ '<optgroup label="Other reason">'
+ '<option value="other">Other reason</option>'
+ '</optgroup>'
+ '<optgroup label="Criteria for speedy deletion">'
+ '<optgroup label="General criteria">'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G1|Criterion G1]]: [[Wikipedia:Patent nonsense|Patent nonsense]]">G1: Patent nonsense</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G2|Criterion G2]]: Test page">G2: Test page</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G3|Criterion G3]]: Pure [[Wikipedia:Vandalism|vandalism]], including the redirects created from the cleanup of page-move vandalism">G3: Vandalism</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G4|Criterion G4]]: Recreation of material previously deleted pursuant to an XfD">G4: Repost</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G5|Criterion G5]]: Page created by a [[Wikipedia:List of banned users|banned user]]">G5: Banned</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G6|Criterion G6]]: Non-controversial maintenance, including deleting a page to merge histories or making way for an uncontroversial move">G6: Maintenance</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G7|Criterion G7]]: Only one editor has made significant edits to this page, and he or she has blanked it or requested its deletion.">G7: Author</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G8|Criterion G8]]: Talk page whose corresponding article does not exist">G8: Orphaned talk page</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G10|Criterion G10]]: [[Wikipedia:Attack page|Attack page]]">G10: Attack page</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G11|Criterion G11]]: [[Wikipedia:Spam|Blatant advertising]]">G11: Advertising</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#G12|Criterion G12]]: Blatant [[Wikipedia:Copyrights|copyright]] infringement">G12: Copyvio</option>'
+ '</optgroup>'
+ '<optgroup label="Articles">'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A1|Criterion A1]]: Very short article providing little or no context">A1: No context</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A2|Criterion A2]]: Article written in a foreign language that exists on another Wikimedia project">A2: Foreign</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A3|Criterion A3]]: No content except possibly external links, a \'See also\' section, category tags, or attempts to correspond with the article\'s subject">A3: No content</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A5|Criterion A5]]: Properly transwikied elsewhere">A5: Transwiki</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A7|Criterion A7]]: Biographical article that did not assert the [[Wikipedia:Notability (people)|significance]] of its subject">A7: Non-notable person</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A7|Criterion A7]]: Article about a web site or other online forum that did not assert the [[Wikipedia:Notability (web)|significance]] of its subject">A7: Non-notable website</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A7|Criterion A7]]: Article about a company that did not assert the [[Wikipedia:Notability (organizations and companies)|significance]] of its subject">A7: Non-notable corporation</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A7|Criterion A7]]: Article about a club or group that did not assert the significance of its subject">A7: Non-notable club</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#A7|Criterion A7]]: Article about a band that did not assert the [[Wikipedia:Notability (music)|significance]] of its subject">A7: Non-notable band</option>'
+ '</optgroup>'
+ '<optgroup label="Redirects">'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#R1|Criterion R1]]: Redirect to non-existent page">R1: Non-existent</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#R2|Criterion R2]]: Redirect to the \'Talk:\', \'User talk:\', or \'User:\' namespaces from the mainspace">R2: Cross-namespace</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#R3|Criterion R3]]: Redirect based on an implausible typo">R3: Implausible typo</option>'
+ '</optgroup>'
+ '<optgroup label="Images and other media">'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I1|Criterion I1]]: Exact copy of a preexisting image">I1: Copy</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I2|Criterion I2]]: Corrupt or empty image">I2: Corrupt or empty</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I3|Criterion I3]]: Licensed for non-commercial use only, non-derivative use or used with permission, uploaded on or after May 19, 2005, and does not meet the non-free content criteria">I3: Non-commercial</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I4|Criterion I4]]: Image that has lacked sources or licensing information for more than seven days">I4: Unknown source</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I5|Criterion I5]]: Unfree image that has not been used in an article for more than seven days">I5: Unfree and unused</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I6|Criterion I6]]: No [[Wikipedia:Non-free use rationale guideline|justification]] given for fair use for more than seven days">I6: No rationale</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I7|Criterion I7]]: Bad [[Wikipedia:Non-free use rationale guideline|justification]] was given for fair use, and the uploader was notified more than 48 hours ago.">I7: Bad fair use rationale</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I8|Criterion I8]]: Identical copy of this image exists on Wikimedia Commons">I8: On Commons</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I9|Criterion I9]]: Uploader claims that this image is under a free license, but it obviously is not.">I9: Image copyvio</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I10|Criterion I10]]: Image was neither image, sound, nor video, and it has no foreseeable encyclopedic use.">I10: Useless image</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#I11|Criterion I11]]: Permission has not been verified within seven days of the uploader\'s notification.">I11: No permission</option>'
+ '</optgroup>'
+ '<optgroup label="Categories">'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#C1|Criterion C1]]: Category has been unpopulated for at least 4 days.">C1: Empty</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#C2|Criterion C2]]: Eligible for [[Wikipedia:Categories for discussion/Speedy#Speedy criteria|speedy renaming]]">C2: Speedy rename</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#C3|Criterion C3]]: Category was populated solely by a template, and that template has been deleted per deletion policy.">C3: Populating template was deleted</option>'
+ '</optgroup>'
+ '<optgroup label="User namespace">'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#U1|Criterion U1]]: User or user subpage of which the corresponding user requests deletion">U1: User requests deletion</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#U2|Criterion U2]]: Userpage of a nonexistent user">U2: Non-existent user</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#U3|Criterion U3]]: Userpage that is primarily a gallery of fair-use images">U3: Fair use gallery</option>'
+ '</optgroup>'
+ '<optgroup label="Templates">'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#T1|Criterion T1]]: Divisive or inflammatory template">T1: Inflammatory</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#T2|Criterion T2]]: Blatant misrepresentation of established policy">T2: Blatant misrepresentation</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#T3|Criterion T3]]: Template was not employed in any useful fashion, either a substantial duplicate or a hard-coded instance of a preexisting template, and was tagged for seven days.">T3: Duplicate</option>'
+ '</optgroup>'
+ '<optgroup label="Portals">'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#P1|Criterion P1]]: Portal that would be subject to deletion as an article">P2: Deletion as article</option>'
+ '<option value="[[Wikipedia:Criteria for speedy deletion#P2|Criterion P2]]: Underpopulated portal">P2: Underpopulated</option>'
+ '</optgroup>'
+ '</optgroup>'
+ '</select></td></tr>'
+ '<tr><td>Other/additional reason:</td>'
+ '<td><input type="text" id="wpMassDeleteReason" name="wpMassDeleteReason" maxlength="255" /></td></tr>'
+ '<tr><td><input type="button" id="wpMassDeleteSubmit" name="wpMassDeleteSubmit" value="Delete" onclick="doMassDelete()" /></td>'
+ '</form>';
}
$(function() {
if(wgNamespaceNumber == -1 && (wgPageName == "Special:Massdelete" || wgPageName == "Special:MassDelete") && /sysop/.test(wgUserGroups)) {
massdeleteform();
document.getElementById("wpMassDeleteReasons").onchange = function() {
var maxlength = (document.getElementById("wpMassDeleteReasons").value == "other" ? 255 : 252-document.getElementById("wpMassDeleteReasons").value.length); //It's 252 because of the three characters (" ()") in addition to the selected summary.
document.getElementById("wpMassDeleteReason").setAttribute("maxlength", maxlength);
}
}
});
/**
* Ajax Quick RFD Closure
*
* Creates an Ajax RFD close tool for use on Simple English Wikipedia
*
* Please let me know of any suggested improvements
*
* @author Grunny ([[simple:User:Grunny]])
* @version 0.0.2
*
*/
( function( $ ) {
// Don't load twice...
if ( typeof window.SimpleWikiRFDScript !== 'undefined' ) {
return false;
}
window.SimpleWikiRFDScript = {
version: '0.0.2',
/* Initialize the script */
init: function () {
if( mw.config.get( 'wgNamespaceNumber' ) === 4 && mw.config.get( 'wgTitle' ).match(/Requests for deletion\/Requests\//)
&& !$( 'a[title="Category:Requests for deletion that succeeded"]' ).length && !$( 'a[title="Category:Requests for deletion that did not succeed"]' ).length ) {
var menuId = ( skin === 'vector' ? '#p-cactions > .menu > ul' : '#p-cactions > .pBody > ul' );
$( menuId ).append( '<li id="rfd-quick-close"></li>' );
$('<a />').text('Quick Close').attr('href', '#').click( function () {
SimpleWikiRFDScript.createPopUpForm();
} ).appendTo( '#rfd-quick-close' );
}
},
/* Create the pop-up form */
createPopUpForm: function () {
var popupHTML = '<section style="left: 50%; top: 50px; width: 1000px; z-index: 20000002; margin-left: -520px;" class="modalWrapper">'
+'<span class="quickrfd-closebutton" onclick="SimpleWikiRFDScript.closePopUpForm()"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/65/Crystal_button_cancel.svg/18px-Crystal_button_cancel.svg.png"></span>'
+'<h1>Quick RFD close</h1>'
+'<section class="modalContent">'
+'<div class="AjaxQuickRFDBox" id="AjaxQuickRFDBox">'
+'<form class="AjaxQuickRFDForm">'
+'<fieldset>'
+'<p><label for="aqr-result">Result: </label><select id="aqr-result" style="width: 20em;"><option value="kept">Kept</option><option value="deleted">Deleted</option><option value="other">Other</option></select></p>'
+'<p><label for="aqr-reason">Reason (optional): </label><input type="text" style="width: 20em;" id="aqr-reason" /></p>'
+'</fieldset>'
+'<input type="button" id="aqr-startbutton" value="Submit" onclick="SimpleWikiRFDScript.getEditToken()" />'
+'</form>'
+'</div>'
+'</section>'
+'</section>'
+'<div class="blackout" style="height: 6702px; z-index: 20000001; opacity: 0.65;"></div>';
$( 'body' ).append( popupHTML );
mw.util.addCSS( '.modalWrapper { -moz-box-shadow: 0 10px 60px #7F7F7F; background: none repeat scroll 0 0 white; border: 5px solid #BACDD8; padding: 25px 15px; position: absolute; }'
+'section { display: block; }'
+'.blackout { background: none repeat scroll 0 0 white; left: 0; opacity: 0.8; position: absolute; top: 0; width: 100%; }' );
$( '#aqr-result' ).change( function () {
if( $(this).val() === 'other' ) {
$(this).parent().after( '<p><label for="aqr-otherresult">Other result: </label><input type="text" style="width: 20em;" id="aqr-otherresult" /> (e.g. merged or redirected)</p>' );
}
} );
},
closePopUpForm: function () {
$('section.modalWrapper').remove();
$('div.blackout').remove();
},
/* API Edit functions */
getEditToken: function () {
var result = $( '#aqr-result' ).val(),
reasoning = $( '#aqr-reason' ).val();
if( !result ) {
return;
}
if( !reasoning ) {
reasoning = '';
}
var url = mw.config.get( 'wgServer' ) + mw.config.get( 'wgScriptPath' ) + '/api.php?action=query&prop=info|revisions&intoken=edit&titles=Main%20Page&format=json';
$.getJSON( url, function (data) {
for ( var p in data.query.pages ) {
break;
}
var editToken = data.query.pages[p].edittoken;
SimpleWikiRFDScript.getPageText( editToken, result, reasoning );
} );
},
getPageText: function ( editToken, result, reasoning ) {
var url = mw.config.get( 'wgServer' ) + mw.config.get( 'wgScriptPath' ) + '/api.php?action=query&format=json&prop=revisions&titles=' + encodeURIComponent( mw.config.get( 'wgPageName' ) ) + '&rvlimit=1&rvprop=content|timestamp';
$.getJSON( url, function (data) {
for ( var p in data.query.pages ) {
break;
}
var pageText = data.query.pages[p].revisions[0]["*"];
pageText = pageText
.replace( /\<noinclude\>\{\{Template:RfD\/Transclusion Reminder\}\} \<\!-- This is the big red box --\>\<\/noinclude\>\n/, '' )
.replace( /\<noinclude\>\{\{in progress\}\}\<\/noinclude\>\n/, '' )
.replace( /\<\!-- Please change it to either \{\{deleted\|optional reason\}\} or \{\{kept\|optional reason\}\}\.\s+NOTE: We are now placing the outcome at the top of the RFD\.\s+Also, the archival templates \{\{subst:archive top\}\} and \{\{subst:archive bottom\}\} are placed at the top and bottom respectively\.--\>\n/, '' );
if( result === 'other' && $( '#aqr-otherresult' ).length ) {
var otherresult = $( '#aqr-otherresult' ).val(),
summary = 'Closing RFD as ' + otherresult;
pageText = '{{subst:' + 'Archive-top}}\n{{RfDresult|' + otherresult + '|' + reasoning + ' ~~' + '~~}}\n' + pageText;
} else {
var summary = 'Closing RFD as ' + result;
pageText = '{{subst:' + 'Archive-top}}\n{{' + result + '|' + reasoning + ' ~~' + '~~}}\n' + pageText;
}
pageText += '\n{{subst:' + 'Archive-bottom}}';
SimpleWikiRFDScript.makeAPIEdit( summary, pageText, editToken );
} );
},
makeAPIEdit: function ( summary, content, editToken ) {
$.ajax( {
url: mw.config.get( 'wgScriptPath' ) + '/api.php?',
data: 'action=edit&title=' + encodeURIComponent( mw.config.get( 'wgPageName' ) ) + '&summary=' + encodeURIComponent( summary ) + '&text=' + encodeURIComponent( content ) + '&format=json&token=' + encodeURIComponent( editToken ),
dataType: 'json',
type: 'POST',
success: function( data ) {
if ( data.edit.result === "Success" ) {
window.location.reload(); // reload page if edit was successful
} else {
alert( 'Error: Unknown result from API.' );
}
},
error: function( xhr ) {
alert( 'Error: Edit failed.' );
}
} );
}
};
$(document).ready( SimpleWikiRFDScript.init );
} )( jQuery );
mw.loader.load( '//simple.wikipedia.org/w/index.php?title=User:Grunny/refToolbarSetup.js&action=raw&ctype=text/javascript' );
$( function () {
var enwikiUrlPath;
if( mw.config.get( 'wgServer' ).indexOf( 'https://' ) === 0 ) {
enwikiUrlPath = mw.config.get( 'wgServer' ) + '/wikipedia/en/wiki/';
} else {
enwikiUrlPath = 'http://en.wikipedia.org/wiki/';
}
mw.util.addPortletLink( 'p-cactions', enwikiUrlPath + encodeURIComponent( mw.config.get( 'wgPageName' ) ),
"enwiki", "ca-enwiki-link", "View same page on the English Wikipedia" );
} );
//</nowiki>