Merge "Re-add adding undocumented paramters in some cases"

This commit is contained in:
jenkins-bot 2021-08-20 09:33:18 +00:00 committed by Gerrit Code Review
commit 928b33ce69

View file

@ -150,6 +150,15 @@ ve.ui.MWTemplateDialog.prototype.onReplacePart = function ( removed, added ) {
} else if ( shouldAddPlaceholder && !this.isNewSidebar ) {
page.addPlaceholderParameter();
}
if ( this.isNewSidebar ) {
var documentedParameters = added.getSpec().getDocumentedParameterOrder(),
undocumentedParameters = added.getSpec().getUndocumentedParameterNames();
if ( !documentedParameters.length || undocumentedParameters.length ) {
page.addPlaceholderParameter();
}
}
}
}
} else if ( reselect ) {