mediawiki-extensions-Visual.../modules/ve-mw/dm/metaitems
Bartosz Dziewoński 98a1bb09c0 Centralize Parsoid resource name parsing logic
Let's keep the ugly regexp and the comments about why we do this in a
single place.

This is mostly without behavior changes, with three exceptions:
* ve.dm.MWImageModel#attachScalable now passes a title with spaces
  instead of underscores to the Scalable (this doesn't matter because
  it's normalized to use spaces later anyway).
* ve.dm.MWImageNode#getFilename now returns a title with spaces
  instead of underscores. This is used in some API queries and when
  rendering thumbnails for missing files, and this format is actually
  more correct for both of these.
* ve.dm.MWTemplateModel now URI-decodes the template title. This
  actually fixes a bug where trying to edit a template transclusion
  whose title contains a '?' would throw an exception about invalid
  title.

Also, clarify that the return value of ve.dm.MWImageModel#getFilename
and ve.dm.MWImageNode#getFilename is different :(

Change-Id: I8e09015cea82308017ed925ec755b7231518126e
2018-02-28 03:01:05 +01:00
..
ve.dm.MWAlienMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWCategoryMetaItem.js Centralize Parsoid resource name parsing logic 2018-02-28 03:01:05 +01:00
ve.dm.MWDefaultSortMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWDisplayTitleMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWFlaggedMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWHiddenCategoryMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWIndexMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWLanguageMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWNewSectionEditMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWNoContentConvertMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWNoEditSectionMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWNoGalleryMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWNoTitleConvertMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWRedirectMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWStaticRedirectMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.dm.MWTOCMetaItem.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00