Template talk:eng

From Wiktionary, the free dictionary
Latest comment: 12 years ago by Mglovesfun in topic Template:eng
Jump to navigation Jump to search

Deletion debate

[edit]

The following discussion has been moved from Wiktionary:Requests for deletion.

This discussion is no longer live and is left here as an archive. Please do not modify this conversation, but feel free to discuss its conclusions.


Template:eng

[edit]

This is currently a redirect to Template:en. While aliases don't cause problems in themselves, the problem is when they are checked against a known value. Many templates check whether the code is en in particular and behave differently in that case. Those templates will fail if someone provides them with the code eng instead, unless they were specifically written to handle that. But we can't expect all template writers to know all alternative codes, there could be several for one language. Therefore I think it's best to delete this code, or at least make it unusable so that there are no surprises. —CodeCat 13:03, 9 June 2011 (UTC)Reply

You're right: {{physics|lang=eng}} categorizes in Category:eng:Physics. --Mglovesfun (talk) 13:30, 9 June 2011 (UTC)Reply
And the same would apply to {{physics|lang=hbs}}, {{physics|lang=nld}}, and any other alternative code. —CodeCat 13:36, 9 June 2011 (UTC)Reply
I regularly (but not very often) use Appendix:ISO 639-1 language codes to check that the redirected templates are orphaned. Most of the time it doesn't really matter, apart from {{etyl|en|hbs}} or {{t|hbs|...}}. Neither of these could work. For eng, something like {{en}}<includeonly>[[Category:Pages using deprecated templates]]</includeonly>. This works because {{en}} has no parameters. --Mglovesfun (talk) 11:04, 10 June 2011 (UTC)Reply
That will break any page that tries to use {{eng}}. I don't think it's such a bad issue, but I think instead of making the code usable, we should just put an explanation on its page that explains why it shouldn't be used and which code should be used instead. —CodeCat 10:48, 3 July 2011 (UTC)Reply
Additional idea: If any page transcludes Template:eng, Template:por, etc., it will be categorized into Category:Pages using redirected language code templates for future review and cleanup. --Daniel 10:52, 3 July 2011 (UTC)Reply
Would that really work in practice? What if a template used something like [[Category:{{language|eng}} nouns]]? That would then become: [[:Category:English [[Category:Pages using redirected language code templates]] nouns]] —CodeCat 12:20, 8 July 2011 (UTC)Reply

This was deleted as part of #All 3-letter language templates that have a 2-letter equivalent. Mglovesfun (talk) 11:06, 31 December 2011 (UTC)Reply