MediaWiki:Gadget-Preload.js: Difference between revisions
Created page with "/** <nowiki> * Replaces FANDOM's template preloads with a customisable dropdown list. * Appends dropdown list to Monobook's edit summary area. * Also adds an input for a cu..." |
No edit summary |
||
| Line 32: | Line 32: | ||
/** | /** | ||
* Gets list of preload templates from Template: | * Gets list of preload templates from Template:Gswpreloads | ||
*/ | */ | ||
loadPreloads: function () { | loadPreloads: function () { | ||
$.get( mw.util.wikiScript(), { title: 'Template: | $.get( mw.util.wikiScript(), { title: 'Template:Gswpreloads', action: 'raw', ctype: 'text/plain' }, function ( data ) { | ||
var templates = data.split( '\n' ), | var templates = data.split( '\n' ), | ||