MediaWiki:AFC-submit-wizard.js: Difference between revisions

Content deleted Content added
revert and use {{subst:REVISIONUSER}} instead, which is a simpler solution
remove |class=draft in any existing wikiproject templates
Line 704:
 
// put AfC submission template
varheader username+= '{{subst:submit|1=' + (mw.util.getParamValue('username') || '{{subst:REVISIONUSER}}') + '}}\n';
header += '{{subst:submit|1=' + (username || '{{subst:REVISIONUSER}}') + '}}\n';
 
// insert everything to the top
Line 743 ⟶ 742:
 
text = tagsToAddText + (text || '');
 
// remove |class=draft parameter in any WikiProject templates
text = text.replace(/(\{\{wikiproject.*?)\|\s*class\s*=\s*draft\s*/gi, '$1');
 
return text;
}