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';
 
// 2. Shortdesc exists from {{short description}} template - replace it
} else if (shortDescExists && shortDescTemplateExists) {
text = text.replace(/\{\{[Ss]hort ?desc(ription)?\s*\|.*?\}\}\n*/g, '');
header += '{{Short description|' + ui.shortdescInput.getValue() + '}}\n';
 
// 3. Shortdesc exists, but not generated by {{short description}},. ifIf the user
// has changed the value, save the new value
} else if (shortDescExists && existingShortDesc !== ui.shortdescInput.getValue()) {
header += '{{Short description|' + ui.shortdescInput.getValue() + '}}\n';
// FIXME: but this value won't actually be recognized because the template that generates
// the4. otherShortdesc shortdescexists, isbut stillnot presentgenerated somewhere *below* ourby {{short description}}., Seemsand touser behasn't changed the avalue
// general problem with short descriptions.
 
// 4. Shortdesc exists, but not generated by {{short description}}, and user hasn't changed the value
} else {
// Do nothing