In TemplateData of a template, some parameters can have a default value containing some wikitext. This wikitext can contain a template substitution to automatically fill the parameter value. This automatic filling has happened when the page is saved.
VisualEditor and Citoid should parse the subst magic word when they load templateData in order the user see the template content instead of the template name : it could be done for example by calling the already available functions to parse the wikitext with only PreSaveTransform done.
Previous title: {{safesubst:Aujourd'hui}} inside templates inside ref tags)
Previous task description:
On frwiki, for some time, VE is creating many incorrect references like in this edit :
<ref>{{Lien web|langue=|auteur1=|titre=Red Star 93|url=https://fr.wikipedia.org/wiki/Red_Star_Football_Club|site=https://www.redstar.fr/|périodique=|date=|consulté le={{safesubst:Aujourd'hui}}}}</ref>
Outside <ref> tags, the {{safesubst:Aujourd'hui}} is automatically replaced by the current date, which should be a correct default value for the "access date" of a citation. Inside <ref> tags, it's not replaced, so the result is a citation that always has an access date set to the current day, which completely defeats its purpose (to know when a human last checked that the citation is still present...).
I checked the configuration (template data) of the template Lien web, and I don't see anything in it that should result in the inclusion of the safesubst :
- Parameter "consulté le" has an empty autovalue
- In the Citoid map, "accessDate" is linked to "consulté le"
Could you fix this issue as many articles end up with the wrong information about when sources have been checked ?