mediawiki-extensions-Visual.../modules/ve-mw/ui
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
..
dialogs Stop explicitly setting autoFocus to true now that it defaults to true. 2014-05-05 14:18:12 -07:00
inspectors Update VE core submodule to master (a1e9df1) 2014-05-02 15:50:32 -07:00
pages Merge "Auto-choose selected item when adding a template" 2014-05-01 00:13:55 +00:00
styles Restyle parameter pages 2014-04-30 16:27:19 -07:00
themes Style the FormatTool to be more like Vector's new look 2014-04-30 17:40:44 -07:00
tools Make citation tools' compatibility check use normalized titles 2014-05-10 21:10:09 +02:00
widgets ve.ui.MWTitleInputWidget: Fix documentation (@cfg not @param) 2014-05-10 12:02:25 +00:00
ve.ui.MWCommandRegistry.js [BREAKING CHANGE] Update VE core to master (cb2e61b) 2014-04-21 15:32:59 -07:00