Page MenuHomePhabricator

TemplateWizard should resolve redirects when getting TemplateData
Open, Needs TriagePublicBUG REPORT

Description

When using TemplateWizard to add a template shortcut¹, the template data of the target page is not loaded.

This works in VisualEditor and its wikitext mode.


  1. Such as {{tlg}}, which is a redirect to {{Template link general}} on enwiki and others.

Event Timeline

There isn't any templatedata for Template:Template link general, so there is nohing to expect to be loaded from templatedata for the redirect either.

Change #1248987 had a related patch set uploaded (by Escargot bleu; author: Escargot bleu):

[mediawiki/extensions/VisualEditor@master] Restore detetection of templatedata for redirects and remove remaining cache duplicates in MWTransclusionModel

https://gerrit.wikimedia.org/r/1248987

Change #1248987 had a related patch set uploaded (by Escargot bleu; author: Escargot bleu):

[mediawiki/extensions/VisualEditor@master] Restore detetection of templatedata for redirects and remove remaining cache duplicates in MWTransclusionModel

https://gerrit.wikimedia.org/r/1248987

There isn't any templatedata for Template:Template link general, so there is nohing to expect to be loaded from templatedata for the redirect either.

Actually, there is: https://en.wikipedia.org/wiki/Template:Template_link_general#TemplateData

There isn't any templatedata for Template:Template link general, so there is nohing to expect to be loaded from templatedata for the redirect either.

Actually, there is: https://en.wikipedia.org/wiki/Template:Template_link_general#TemplateData

Yes, I created it after my comment. And sorry for the unrelated gerrit patches.