MediaWiki:Gadget-extra-toolbar-buttons-core.js: Difference between revisions
Content deleted Content added
Changed 'class="wikitable"' to 'class="wikitable" border="1"', so the tables still have borders for instance when copied to emails. Per discussion at MediaWiki talk:Common.css. |
made change per talk request |
||
Line 139:
var url = wgScript + '?title=MediaWiki:Edittools.js&action=raw&ctype=text/javascript&nocache=' + match[1];
importScriptURI(url);
});
/** Disambig editintro ********************************************************
*
* Description: Adds an editintro on disambiguation pages. Original code
* located at [[User:RockMFR/disambigeditintro.js]].
*
* Maintainers: [[User:RockMFR]], [[User:Quiddity]]
*/
addOnloadHook(function() {
if (document.getElementById('disambig') && wgNamespaceNumber == 0 && document.getElementById('ca-edit')) {
var editLinks = document.getElementById('ca-edit').getElementsByTagName('a')
if (editLinks.length > 0) {
editLinks[0].href += '&editintro=Template:Disambig_editintro'
}
}
});
|