MediaWiki:AFC-submit-wizard.js: Difference between revisions
Content deleted Content added
remove |class=draft in any existing wikiproject templates |
remove note - shortdescs added by temlates don't override ones set by {{short description}} |
||
Line 663:
header += '{{Short description|' + ui.shortdescInput.getValue() + '}}\n';
} else if (shortDescExists && shortDescTemplateExists) {
text = text.replace(/\{\{[Ss]hort ?desc(ription)?\s*\|.*?\}\}\n*/g, '');
header += '{{Short description|' + ui.shortdescInput.getValue() + '}}\n';
} else if (shortDescExists && existingShortDesc !== ui.shortdescInput.getValue()) {
header += '{{Short description|' + ui.shortdescInput.getValue() + '}}\n';
} else {
// Do nothing
|