diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js index 03fe295677..97d965099b 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWTemplateDialog.js @@ -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 ) {