Community Wishlist Survey 2021/Citations/Hide native language codes from references
Appearance
Hide native language codes from references
- Problem: When e.g. automatically generating references from URL or ISBN the language code is added automatically, and is often identical to the native wikipedia language. In that case e.g. (nl) is still displayed as a prefix in the reference in the w:nl: Wikipedia, which is annoying for the reader.
- Who would benefit: The writer is not supposed to remove redundant language codes, references can be easily copied to other language Wikipedias, the reader is never overloaded with unnecessary reference language prefixes.
- Proposed solution: Conditionally show the language prefix: filter all matching codes, and show only "non-native" language codes, e.g. (en) and (fr) for w:nl:, so hiding (nl)
- More comments: Folding should be applied; same i.e. language code "nl_be" etc. would match "nl"
- Phabricator tickets:
- Proposer: Geert Van Pamel (WMBE) (talk) 21:08, 19 November 2020 (UTC)
Discussion
- TL;DR: Can be done with using {{PAGELANGUAGE}} in the template and hide the language if there is a match.
- When automatically generating references, both in VisualEditor and the source editor, templates are used. In VisualEditor these are specifed on MediaWiki:Citoid-template-type-map.json, in the source editor that is usually via RefTools, in MediaWiki:RefToolbarConfig.js. On nl.wikipedia it would be a matter of editing the "Citeer boek" and other cite templates which support ISBN or URL like the TL;DR in my comment states. If anything, this lengthy explaination makes the solution seem more complicated than it is.--Snaevar (talk) 16:28, 20 November 2020 (UTC)
This is already done on English Wikipedia citations. Update your citation modules. :) --Izno (talk) 15:18, 11 December 2020 (UTC)
Note: "nl_be" isn't a valid language code; it would be "nl-BE". — SMcCandlish ☺ ☏ ¢ >ʌⱷ҅ᴥⱷʌ< 05:16, 15 December 2020 (UTC)
Voting
- Support Geert Van Pamel (WMBE) (talk) 19:12, 8 December 2020 (UTC)
- Support Paul Hermans (talk) 08:20, 9 December 2020 (UTC)
- Support Sounds very reasonable. Thomas Kinz (talk) 10:02, 9 December 2020 (UTC)
- Support Everything that allows the reader to trace better the origin and to reuse references is on the really good track. Xavi Dengra (MESSAGES) 12:43, 9 December 2020 (UTC)
- Support This cite template quirk has always annoyed me. References get cluttered too much as it is—we don't need superfluous language indicators. Mark D Worthen PsyD (talk) [he/his/him] 18:02, 9 December 2020 (UTC)
- Support TheAmerikaner (talk) 20:30, 9 December 2020 (UTC)
- Support Emanuele676 (talk) 00:19, 10 December 2020 (UTC)
- Support Libcub (talk) 18:41, 10 December 2020 (UTC)
- Support --Furfur ⁂ Discussion 03:16, 11 December 2020 (UTC)
- Support — Bilorv (talk) 08:37, 11 December 2020 (UTC)
- Support BoldLuis (talk) 11:26, 11 December 2020 (UTC)
- Support Klaas `Z4␟` V: 12:53, 12 December 2020 (UTC)
- Support Ad Huikeshoven (talk) 14:41, 12 December 2020 (UTC)
- Support Vincent Simar (talk) 22:30, 12 December 2020 (UTC)
- Oppose Already implemented at en.Wikipedia, so it's simply a matter of propagating code improvements to other projects. The devs should not devote any resources to reinventing this wheel. — SMcCandlish ☺ ☏ ¢ >ʌⱷ҅ᴥⱷʌ< 05:17, 15 December 2020 (UTC)
- Support But please take the en.WP solution into account at first Stephan Hense (talk) 22:45, 16 December 2020 (UTC)
- Support As above. Kelvin (talk) 09:39, 21 December 2020 (UTC)
- Support David1010 (talk) 13:05, 21 December 2020 (UTC)