mediawiki-extensions-Visual.../modules/ve-mw/ui/tools
Roan Kattouw a15fa5a17c Make citation tools' compatibility check use normalized titles
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
2014-05-10 21:10:09 +02:00
..
ve.ui.MWAlienExtensionInspectorTool.js Update VE core submodule to master (c5f4f78) 2014-04-02 16:30:12 -07:00
ve.ui.MWCitationDialogTool.js Make citation tools' compatibility check use normalized titles 2014-05-10 21:10:09 +02:00
ve.ui.MWCommandHelpDialogTool.js Update VE core submodule to master (c5f4f78) 2014-04-02 16:30:12 -07:00
ve.ui.MWEditModeTool.js Disable MW tools when surface loses focus 2014-04-10 12:01:47 -07:00
ve.ui.MWFormatTool.js Update VE core submodule to master (c5f4f78) 2014-04-02 16:30:12 -07:00
ve.ui.MWGalleryInspectorTool.js Update VE core submodule to master (c5f4f78) 2014-04-02 16:30:12 -07:00
ve.ui.MWHieroInspectorTool.js Update VE core submodule to master (c5f4f78) 2014-04-02 16:30:12 -07:00
ve.ui.MWLinkInspectorTool.js
ve.ui.MWMediaDialogTool.js Followup b2296bdd2: the property is called requiresRange, not requiresFocus 2014-04-11 11:59:55 -07:00
ve.ui.MWMetaDialogTool.js Update VE core submodule to master (c5f4f78) 2014-04-02 16:30:12 -07:00
ve.ui.MWPopupTool.js Update VE core submodule to master (5003907) 2014-03-21 19:08:04 +00:00
ve.ui.MWReferenceDialogTool.js Followup b2296bdd2: the property is called requiresRange, not requiresFocus 2014-04-11 11:59:55 -07:00
ve.ui.MWTransclusionDialogTool.js Make citation tools' compatibility check use normalized titles 2014-05-10 21:10:09 +02:00