mediawiki-extensions-Visual.../modules/ve-mw/dm
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
..
annotations Add lookupTitle attribute 2014-03-19 19:34:19 -07:00
metaitems Add checkboxes to set some metadata on page metadata panel 2014-04-21 16:29:31 -07:00
models Restyle parameter pages 2014-04-30 16:27:19 -07:00
nodes Make citation tools' compatibility check use normalized titles 2014-05-10 21:10:09 +02:00
ve.dm.MW.js Update VE core submodule to master (74be717) 2014-03-03 11:24:56 -08:00