User:Polygnotus/Scripts/2010.js: Difference between revisions

Content deleted Content added
Created page with '// Add Templates section to 2010 wikitext editor // Place this code in your common.js file $(document).ready(function() { // Only run on edit pages with the 2010 wikitext editor if (mw.config.get('wgAction') === 'edit' && $('#wpTextbox1').length) { // Create the Templates section var templatesSection = $('<div>') .attr('id', 'templates-section') .css({ 'border': '1px solid #a2a9b1',...'
 
No edit summary
Line 3:
 
$(document).ready(function() {
// Only run on edit pages with the 2010 wikitext editor during preview and submit
ifvar action = (mw.config.get('wgAction') === 'edit' && $('#wpTextbox1').length) {;
if ((action === 'edit' || action === 'submit') && $('#wpTextbox1').length) {
// Create the Templates section