Module talk:Wikt-lang
This is the talk page for discussing improvements to the Wikt-lang module. |
|
Archives: 1Auto-archiving period: 12 months ![]() |
![]() | Languages Template‑class | ||||||
|
![]() | To help centralize discussions and keep related topics together, Template talk:wikt-lang and Template talk:wt redirect here. |
Italicisation of Halkomelem
- This discussion moved to Template talk:Lang#Italicisation of Halkomelem, as it pertains to
{{lang}}
.
Language rkt
A recent edit at T–V distinction added entries for Kamtapuri language which display an error discussed at User talk:Msasag#Language rkt. The issue is that previewing the following wikitext in a sandbox gives the error message shown.
{{wikt-lang|rkt|তুই}} Lua error in Module:Language at line 197: Name for the language code "rkt" could not be retrieved with mw.language.fetchLanguageName, so it should be added to Module:Language/data.
I'm hoping someone understands how to fix this. If it helps, the discussion points out that Module:Language/data/ISO 639-3 contains:
["rkt"] = {"Kamta", "Rangpuri"},
Johnuniq (talk) 02:47, 2 May 2020 (UTC)
- @Johnuniq: At the moment the way to get a new language code working is to add Wiktionary's language name in
data["languages"]
in Module:Language/data; in this caseTo find the language name, I looked for the language code or language name in the search box in wikt:Module:languages, and found the most appropriate entry in one of the modules that start with["rkt"] = { ["name"] = "Kamta", },
Module:languages/data
(in this case, wikt:Module:languages/data3/r), and got its field1
, which is the "canonical name" used in language headers. Here the Wiktionary and ISO codes agree and Wiktionary has one of the ISO 639-3 names, but that's not always the case. - This process is not especially obvious to people who aren't familiar with Wiktionary's language data. I think it could be simplified by maintaining a local copy of the necessary data (language name and entry name replacements) here and creating a mapping from ISO code (or maybe multi-part IETF language tag) to Wiktionary language, though I'm not sure of all the details. — Eru·tuon 21:08, 9 November 2020 (UTC)
- @Eruton: Thanks, I'll bear this in mind and your post is a record of what to do in the future. However the fix is not currently needed and it's above my language understanding so I'll leave it. Johnuniq (talk) 23:27, 9 November 2020 (UTC)
WP's wikt-lang should support Wiktionary's language codes
See wikt:Wiktionary:List of languages/special.
Example: Old Irish is designated sga.
- WP template IPA-* accepts it: Template:IPA-sga
- WP template wikt-lang does not: ollam Sai ¿?✍ 11:02, 15 March 2021 (UTC)
Hm. It seems to have worked here. But it didn't when I was editing (in draft) Ollam just now; gave an error about unsupported language code. Unable to replicate. Sai ¿?✍ 11:05, 15 March 2021 (UTC)
lang for Proto-Slavic
*bogatьstvo ({{wikt-lang|sla-pro|*bogatьstvo}}) should emit HTML similar to *bogatьstvo ({{lang|sla-x-proto|bogatьstvo}}) but in the first case the lang attribute has the illegal sla-pro
and the second has sla
.
--Error (talk) 12:50, 25 June 2021 (UTC)
Italics
The documentation for Template:Wikt-lang states that italics can be disabled, but this functionality doesn't seem to actually work and I can't figure out why. Regardless of whether |i=
, |italic=
, and |italics=
is used, and whether it is set to "no" as the documentation suggests or to 0, it doesn't disable the italics.
Can someone fix this so that the italics actually can be disabled? – Scyrme (talk) 13:29, 1 April 2022 (UTC)