https://bugzilla.wikimedia.org/show_bug.cgi?id=50964

--- Comment #3 from Krinkle <[email protected]> ---
Both VE and TemplateData should address this in their own way. Both parties
need to do something.

1) Resolve redirects in API interaction:
  - TemplateData should have an option to resolve redirects in the given titles
(like action=query). the mapping will be added similarly to how we normalise
titles.
  - Then the VisualEditor needs to use this map as the API response will put
the templatedata for the target title, not the title queried. We do this
already with normalised titles, so we can extend that to include redirects in
that "aliasing" logic for normalised titles.

2) Parsoid giving TemplateData the transcluded page name instead of the
wikitext invocation.
  - Right now we sometimes get wikitext instead of a page name, or (in case of
redirects) the sourced page name, not the one actually transcluded.
  - If/when Parsoid is able to know what the wikitext expands too etc. (not a
blind call to the PHP parser as it is essentially now) this will make that a
lot easier and also solve generated transclusion target page names (e.g. {{
{{foo}} }} ).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to