mediawiki-extensions-Visual.../modules/ve-mw/dm/models
Thiemo Kreuz c8536f1a71 Remove unnecessary title parsing from template related code
There are 2 situations:

1. Either the template name is used in a [[…]] link. In this case
we must provide the namespace. MWTemplateModel.getTitle() does
this. However, it's not a mw.Title object and therefor not really
guaranteed to be a valid title. This is fine. The worst thing
that can happen is that the link points to an error message.
But this should be entirely unreachable anyway.

2. Some messages want to display the name of the template.
Ideally without the namespace. That's what
MWTemplateSpecModel.getLabel() is for. Again this is not
guaranteed to be a valid mw.Title. But it doesn't need to. It's
only used as a label.

Change-Id: I03d0481201620a2f5c444ee32b656bcaade98aac
2021-08-26 15:58:15 +02:00
..
ve.dm.MWImageModel.js Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
ve.dm.MWParameterModel.js Merge "Fix incomplete template dialog event handling in new sidebar" 2021-07-16 13:07:03 +00:00
ve.dm.MWTemplateModel.js Remove unnecessary title parsing from template related code 2021-08-26 15:58:15 +02:00
ve.dm.MWTemplatePlaceholderModel.js Remove redundant ve.dm.MWTemplatePlaceholderModel.isEmpty 2021-08-03 14:40:50 +02:00
ve.dm.MWTemplateSpecModel.js Remove unnecessary title parsing from template related code 2021-08-26 15:58:15 +02:00
ve.dm.MWTransclusionContentModel.js Better name for ambiguous "empty" concept in the model 2021-08-06 15:11:44 +02:00
ve.dm.MWTransclusionModel.js Fix typos in doc 2021-08-20 14:56:32 +02:00
ve.dm.MWTransclusionPartModel.js Better name for ambiguous "empty" concept in the model 2021-08-06 15:11:44 +02:00