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.
/* <pre>*/
var SocialMediaButtons = {
position: "top",
colorScheme: "color"
};
cacheSkip = [];
cacheSkipLimit = 5000;
importArticles({
type: "script",
articles: [
"MediaWiki:Common.js/displayTimer.js",
"w:c:dev:ListAdmins/code.js",
'u:dev:ListAdmins/code.js',
'u:dev:UserTags/code.js',
'u:dev:MiniComplete/code.js',
'u:dev:SocialIcons/code.js',
'u:dev:CacheCheck/code.js'
],
});
// Welcome notification message
// from sourcepedia.wikia.com
// removed for preload testing
/* =========================
Custom preload templates
for the new (2011) Wikia editor
Version 0.2 23.12.11
with slight cosmetic changes
from original
=========================
Written by [[starwars:user:Grunny]]
First published at:
[[starwars:MediaWiki:Wikia.js]]
=========================
Requires additional code at
Common.js
========================= */
function customPreloadTemplates() {
if( wgAction !== 'edit' || !$( 'div.module_content' ).length ) {
return;
}
var preloadOptionsHtml = '',
$preloadOptionsList,
preloadBaseHtml = '<div id="lf-preload" style="display: block; padding: 10px;">Standard preloads:<br /></div>' +
'<div style="padding: 10px;">Custom preload pagename:<br /><span id="lf-preload-pagename-w"></span><span id="lf-preload-button-w"></span></div>';
$( 'div.module_content:first' ).append( preloadBaseHtml );
$.get( wgScript, { title: 'Template:Stdpreloads', action: 'raw', ctype: 'text/plain' }, function( data ) {
var lines = data.split( '\n' );
for( var i = 0; i < lines.length; i++ ) {
var value = ( lines[i].indexOf( '-- ' ) === 0 ) ? lines[i].substring(3) : "";
preloadOptionsHtml += '<option value="' + value + '">' + lines[i] + '</option>';
}
$preloadOptionsList = $( '<select />' ).attr( 'id', 'stdSummaries' ).html( preloadOptionsHtml ).change( function() {
var value = $( this ).val();
if ( value !== '' ) {
value = 'Template:' + value + '/preload';
value = value.replace( ' ', '_' );
$.get( wgScript, { title: value, action: 'raw', ctype: 'text/plain' }, function( data ) {
insertAtCursor( document.getElementById( 'wpTextbox1' ), data );
} );
}
} );
$( 'div#lf-preload' ).append( $preloadOptionsList );
} );
$( '#lf-preload-pagename-w' ).html( '<input type="text" class="textbox" />' );
$( '#lf-preload-button-w' ).html( '<input type="button" class="button" value="Insert" onclick="doCustomPreloadOasis()" />' );
}
$( customPreloadTemplates );
function doCustomPreloadOasis() {
var value = $( '#lf-preload-pagename-w > input' ).val();
value = value.replace( ' ', '_' );
$.get( wgScript, { title: value, action: 'raw', ctype: 'text/plain' }, function( data ) {
insertAtCursor( document.getElementById( 'wpTextbox1' ), data );
} );
}
//Sitenotice: the notion of prepending to $WikiaArticle came from [[User:Cåm]]
$('#WikiaArticle').prepend('<div style="border:2px solid black; background-color:ghostwhite;border-radius:5px;padding:10px;width:100%">This wiki is having a bit of a facelift. Please bear with us as we try to get it finished.</div>');
/*</pre>*/