mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-11 05:56:11 +00:00
55aec8f977
The ...target.wt property contains the wikitext used to generate the template name. It can contain trailing newlines (T234817) and all kinds of funny wikitext syntax. Instead, use ...target.href, which is the title of the page that is actually transcluded. Compare the new code to ve.dm.MWTransclusionNode.prototype.getPartsList. Additionally, fix some confusion about namespaces (treating template names as titles in the main namespace). The template names in the configuration page (visualeditor-template-tools-definition.json) now support overriding namespaces in the same way as in wikitext. Bug: T234817 Change-Id: I7c557d28e961d0b9117fc0380c65cdd42035ae96 |
||
---|---|---|
.. | ||
ve-mw | ||
ve-mw-collab |