Jump to content

Module talk:Wikt-lang

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jberkel (talk | contribs) at 11:35, 7 September 2022 (Italics: Reply). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconLanguages Template‑class
WikiProject iconThis module is within the scope of WikiProject Languages, a collaborative effort to improve the coverage of languages on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis module does not require a rating on Wikipedia's content assessment scale.

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)[reply]

@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 case
["rkt"] = {
	["name"] = "Kamta",
},
To 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 Module:languages/data (in this case, wikt:Module:languages/data3/r), and got its field 1, 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)[reply]
@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)[reply]

WP's wikt-lang should support Wiktionary's language codes

See wikt:Wiktionary:List of languages/special.

Example: Old Irish is designated sga.

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)[reply]

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)[reply]

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)[reply]

Fixed. Jberkel (talk) 11:35, 7 September 2022 (UTC)[reply]