Add placeholder for finding a template

Bug: T296465
Change-Id: I07c6e601111073b1269a3ab6c552f83e12196156
This commit is contained in:
WMDE-Fisch 2021-11-26 16:30:19 +01:00
parent bc89f1d8fd
commit f65eac3d66
4 changed files with 5 additions and 1 deletions

View file

@ -2258,6 +2258,7 @@
"visualeditor-dialog-transclusion-param-selection-aria-label",
"visualeditor-dialog-transclusion-param-undocumented",
"visualeditor-dialog-transclusion-placeholder",
"visualeditor-dialog-transclusion-placeholder-input-placeholder",
"visualeditor-dialog-transclusion-raw-fallback",
"visualeditor-dialog-transclusion-remove-content",
"visualeditor-dialog-transclusion-remove-param",

View file

@ -222,6 +222,7 @@
"visualeditor-dialog-transclusion-param-selection-aria-label": "Parameters in $1",
"visualeditor-dialog-transclusion-param-undocumented": "(Undocumented parameter)",
"visualeditor-dialog-transclusion-placeholder": "Add a template",
"visualeditor-dialog-transclusion-placeholder-input-placeholder": "Find template",
"visualeditor-dialog-transclusion-raw-fallback": "Fall back to plain wikitext",
"visualeditor-dialog-transclusion-remove-content": "Remove content",
"visualeditor-dialog-transclusion-remove-param": "Remove field",

View file

@ -240,6 +240,7 @@
"visualeditor-dialog-transclusion-param-selection-aria-label": "ARIA label for screen readers on template parameter selection menu.\n\nParameters:\n* $1 - The title of the related template.",
"visualeditor-dialog-transclusion-param-undocumented": "Label shown next to a parameter's name indicating that the parameter is undocumented.",
"visualeditor-dialog-transclusion-placeholder": "Label for section with options for adding a new template to a multi part transclusion.\n{{Identical|Add template}}",
"visualeditor-dialog-transclusion-placeholder-input-placeholder": "Placeholder for the input field to find and add a new template.",
"visualeditor-dialog-transclusion-raw-fallback": "Label of the button that converts complex validation-required type-based inputs back into plain wikitext inputs.",
"visualeditor-dialog-transclusion-remove-content": "Label for button that removes content between transclusion parts",
"visualeditor-dialog-transclusion-remove-param": "Label for button that removes a parameter from a template",

View file

@ -22,7 +22,8 @@ ve.ui.MWTemplateTitleInputWidget = function VeUiMWTemplateTitleInputWidget( conf
namespace: mw.config.get( 'wgNamespaceIds' ).template,
// We don't need results to show up twice normalized and unnormalized
addQueryInput: false,
icon: 'search'
icon: 'search',
placeholder: ve.msg( 'visualeditor-dialog-transclusion-placeholder-input-placeholder' )
}, config );
// Parent constructor