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.
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function addBar()
{
document.getElementById('p-navigation').innerHTML +=
'</div>'+
'<div id=p-my wiki links=portlet>'+
'<h5>Command Center</h5>'+
'<div id=commandCenterDiv class=pBody><ul>'+
'<li id=\><a href=\"/wiki/Category:Candidates for deletion">Deletion</a></li>'+
'<li id=\><a href=\"/wiki/Category:Suspected copyright violations">Copyvio</a></li>'+
'<li id=\><a href=\"/wiki/Special:Log">Master Log</a></li>'+
'<li id=\><a href=\"/wiki/Special:Newpages">New Pages</a></li>'+
'<li id=\><a href=\"/wiki/Special:Newimages">New Images</a></li>'+
'<li id=\><a href=\"/wiki/Special:Unusedimages">Unused Images</a></li>'+
'<li id=\><a href=\"/wiki/MediaWiki:Sitenotice">Site Notice</a></li>'+
'<li id=\><a href=\"/wiki/Special:Allmessages">System messages</a></li>'+
'<li id=\><a href=\"/wiki/Special:WikiaStats">WikiaStats</a></li>'+
'</ul></div></div>';
}
addOnloadHook(addBar);
function defaultFormValues()
{
if(wgAction == 'delete') {
document.getElementById('wpDeleteReasonList').value = readCookie('jsDeleteReasonList');
document.getElementById('wpReason').value = readCookie('jsReason');
}
if(wgPageName == 'Special:Upload') {
document.getElementById('wpUploadDescription').value = '[[Category:Inventory icons]]';
document.getElementById('wpLicense').value = 'Screenshot';
document.getElementById('wpWatchthis').checked = false;
document.getElementById('wpIgnoreWarning').checked = true;
}
/*
if((wgAction == 'edit') || (wgAction == 'submit')) {
document.getElementById('wpSummary').value = 'fix inclusion sectioning; simplify table formatting [manual botmode]';
}
*/
}
addOnloadHook(defaultFormValues);
/**** Guild Wars Wiki Tools - GuildWiki Switch
* (c) 2007 by Patrick Westerhoff [poke]
*/
function gwwtGuildWikiSwitch ()
{
if ( wgNamespaceNumber < 100 )
{
var itemNode = document.createElement( 'li' );
itemNode.appendChild( document.createElement( 'a' ) );
itemNode.lastChild.href = 'http://wiki.guildwars.com/wiki/' + wgCanonicalNamespace + ':' + encodeURIComponent( wgTitle );
itemNode.lastChild.title = 'See this page on Guild Wars Wiki';
itemNode.lastChild.appendChild( document.createTextNode( 'GWW' ) );
document.getElementById( 'p-cactions' ).getElementsByTagName( 'ul' )[0].appendChild( itemNode );
}
}
hookEvent( 'load', gwwtGuildWikiSwitch );
/***** Custom edit buttons ****/
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/central/images/2/23/Button_code.png",
"speedTip": "Code",
"tagOpen": "<code>",
"tagClose": "</code>",
"sampleText": "foo"}
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/central/images/7/73/Button_code_nowiki.png",
"speedTip": "Code+Nowiki",
"tagOpen": "<code><nowiki>",
"tagClose": "</nowiki></code>",
"sampleText": "foo"}
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/central/images/d/d5/Button_noinclude.png",
"speedTip": "Noinclude",
"tagOpen": "<noinclude>",
"tagClose": "</noinclude>",
"sampleText": "bar"}
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/gw/images/b/bf/Button_pagename.png",
"speedTip": "Pagename",
"tagOpen": "{{",
"tagClose": "subst:PAGENAME}}",
"sampleText": ""}
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://images.wikia.com/central/images/4/4a/Btn_toolbar_strike.png",
"speedTip": "Strikethrough",
"tagOpen": "<s>",
"tagClose": "</s>",
"sampleText": "baz"}
}