Page MenuHomePhabricator

Auto-tag adds templates already on the page
Closed, ResolvedPublic

Description

Hello

When 'Auto-tag' is enabled, AWB adds templates with their name in English, that are redirects to templates with names in French.
It works fine, unless there is already a template with a name in French, then AWB doesn't know it is a redirection and adds another time the template.
E.g. on https://fr.wikipedia.org/w/index.php?title=Constituons%21&diff=223831698&oldid=223426986 where AWB adds {{orphan}} while {{orphelin}} is already present.

I guess it is the same behaviour with {{Underlinked}} (={{À wikifier}}), and other templates added with Auto-tag, but I don't know the list.

Also, the link in the edit summary is a red link on wp.fr (e.g. 'orphan' links to 'CAT:O', and 'underlinked' links to 'CAT:UL').

Event Timeline

rev 12982 localisation of orphan and wikify for fr-wiki.

Will be in next release of AWB.

Hello @Rjwilmsi and thank you for your quick answer.

I have a question : is the list of templates added by auto-tag in https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/General_fixes#Tagger_(Tagger) up to date, and will all template redirects be checked (for example, {{Orphelin}} also has {{Article orphelin}} as a redirect)?

Kind regards.

@SyntaxTerror No AWB doesn't automatically know about redirects. You can either add them to Template Redirects config (https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Template_redirects) if you have a fr-wiki localised version, or tell me them here so I add them directly to AWB code.

@Rjwilmsi : we have https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:AutoWikiBrowser/Template_redirects, and 'Apply general fixes' was on when I made the aforementioned edit (I found a bit strange that AWB was adding a template with an English name in fact).

We have

  • {{A wikifier}}, {{Article à wikifier}}, {{Underlinked}}, {{Wikif}}, {{Wikification}}, {{Wikifier}}, {{Wikify}} → {{À wikifier}}
  • {{Article orphelin}}, {{Orphan}}{{Orphelin}}

and

  • {{Ibid}}, {{Ibidem}} → {{Ibid.}}

but not the other templates indicated in https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/General_fixes#Tagger_(Tagger).

Some don't have a line in our /Template_redirects, some have different placement in the articles and/or different parameters (like for {{stub}} / {{ébauche}}), and some don't have an equivalent on wp.fr.

If needed, I can add lines to our /Template_redirects, or even translate templates, but note that I don't think that 'Apply general fixes' is often used by AWB users on wp.fr, and even less for 'Auto-tag' (but I usually do).

OK, rev 12985 adds the redirects too for orphan and wikify.

Ibid tagging is en-wiki only so no change needed there.