mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
a15fa5a17c
Greatly enhance the functionality of ve.dm.MWTransclusionNode#isSingleTemplate and actually use it places. Use mw.Title to normalize titles, accounting for case differences and spaces vs underscores. Also allow an array of template names to be specified. Use isSingleTemplate() in the transclusion and citation dialog tools, which were duplicating this logic. Also document the .static.template properties. Without this, the citation tool will appear for a reference using {{Cite news}}, but not for one using {{cite news}} or {{Cite_news}}. Change-Id: I18d2bb1b22a5ab269694ad0818b1bb326ef8d1fd |
||
---|---|---|
.. | ||
ve.dm.MWAlienExtensionNode.js | ||
ve.dm.MWBlockImageNode.js | ||
ve.dm.MWEntityNode.js | ||
ve.dm.MWExtensionNode.js | ||
ve.dm.MWGalleryNode.js | ||
ve.dm.MWHeadingNode.js | ||
ve.dm.MWHieroNode.js | ||
ve.dm.MWImageCaptionNode.js | ||
ve.dm.MWImageNode.js | ||
ve.dm.MWInlineImageNode.js | ||
ve.dm.MWNumberedExternalLinkNode.js | ||
ve.dm.MWPreformattedNode.js | ||
ve.dm.MWReferenceListNode.js | ||
ve.dm.MWReferenceNode.js | ||
ve.dm.MWTransclusionNode.js |