mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Normalize titles in template descriptions in context menu"
This commit is contained in:
commit
cba201eb03
|
@ -64,7 +64,12 @@ ve.ce.MWTransclusionNode.static.getDescription = function ( model ) {
|
|||
}
|
||||
}
|
||||
|
||||
return words.join( ', ' );
|
||||
return words
|
||||
.map( function ( template ) {
|
||||
var title = mw.Title.newFromText( template );
|
||||
return title ? title.getPrefixedText() : template;
|
||||
} )
|
||||
.join( ', ' );
|
||||
};
|
||||
|
||||
/* Methods */
|
||||
|
|
Loading…
Reference in a new issue