mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Use spec label for template link generation"
This commit is contained in:
commit
765b1da5b1
|
@ -45,13 +45,13 @@ ve.ui.MWAddParameterPage = function VeUiMWAddParameterPage( parameter, name, con
|
|||
{ classes: [ 've-ui-mwTransclusionDialog-addParameterFieldset-input' ] }
|
||||
);
|
||||
|
||||
var rawTemplateName = this.template.getTarget().wt,
|
||||
title = mw.Title.newFromText( this.template.getTitle() || rawTemplateName ),
|
||||
link = title.getRelativeText( mw.config.get( 'wgNamespaceIds' ).template );
|
||||
this.addParameterFieldset = new OO.ui.FieldsetLayout( {
|
||||
label: this.addParameterInputHeader.$element,
|
||||
helpInline: true,
|
||||
help: mw.message( 'visualeditor-dialog-transclusion-add-param-help', link ).parseDom(),
|
||||
help: mw.message(
|
||||
'visualeditor-dialog-transclusion-add-param-help',
|
||||
this.template.getSpec().getLabel()
|
||||
).parseDom(),
|
||||
classes: [ 've-ui-mwTransclusionDialog-addParameterFieldset' ],
|
||||
$content: this.addParameterInputField.$element
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue