Jump to content

Module talk:Wikt-lang

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Wikt-lang/data)

Requested move 9 July 2024

[edit]
The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this discussion.

The result of the move request was: moved. Admin: Please double check the subpages associated with this page to ensure nothing else needs to be moved, otherwise it looks like this should be fairly straightforward. (closed by non-admin page mover) ASUKITE 17:42, 17 July 2024 (UTC)[reply]


Module:LanguageModule:Wikt-lang – This module has a very misleading name. It is solely used to create Wiktionary links with a language anchor, and should not be confused with Module:Lang which is used for most other language related usages. This move will match the template name at Template:Wikt-lang. Gonnym (talk) 12:31, 9 July 2024 (UTC)[reply]

Note: not all of the /data sub-modules actually belong to the module so will need to be checked when disentangling this. Gonnym (talk) 12:34, 9 July 2024 (UTC)[reply]
@Gonnym or whoever understands how these work, from digging through the subpages the only one I found that didn't mention Wiktionary was Module:Language/data/iso 15924 and its doc page, would those potentially need to be moved to Module:Lang/data/iso 15924? ASUKITE 16:27, 17 July 2024 (UTC)[reply]
No. Module:Language/data/iso 15924 is not a submodule of Module:Lang. Do not move it there.
Trappist the monk (talk) 16:35, 17 July 2024 (UTC)[reply]
Thanks, that was the only one that was unclear, don't want us to break anything! ASUKITE 16:38, 17 July 2024 (UTC)[reply]
Rename per nom. * Pppery * it has begun... 16:10, 9 July 2024 (UTC)[reply]
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Uncaught error

[edit]

Currently using the template without a text value produces a Lua error - Lua error in Module:Wikt-lang at line 131: bad argument #1 to 'get_best_script' (string expected, got nil). This should be more gracefully handled like the error in line 248. Gonnym (talk) 12:14, 19 July 2024 (UTC)[reply]

Caught:
{{Wikt-lang|en|}}[text?] Parameter 2 is required
{{Wikt-lang|en}}[text?] Parameter 2 is required
Trappist the monk (talk) 13:53, 19 July 2024 (UTC)[reply]

Extended-confirmed-protected edit request on 18 March 2025: Add new setting for Ilocano (ilo)

[edit]

The currently set name for the Ilocano language, with language code ilo, is "Iloko" which does not match up with Wiktionary's preferred name for the language, Ilocano. For instance, {{wikt-lang|ilo|something}} links to wikt: something #Iloko, when it should instead link to wikt: something #Ilocano.

Proposed revision

[edit]

The following should be added to the data table variable in Module:Wikt-lang/data:

		["ilo"] = {
			["name"] = "Ilocano",
			["article"] = "Ilocano language",
		},
[edit]

Special:Diff/1280064448#Alyansa para sa Bagong Pilipinas discusses a prominent politician's use of a term in regional vernacular that is unfamiliar to most of her constituents, wherein I added {{Wikt-lang}} to add a link to its definition on Wiktionary.

wikt: Special:Diff/84203784 reverts my apparently improper attempt on Wikt's side to make the link created by this template work. —Luisanton (talk) 09:41, 18 March 2025 (UTC)[reply]

Add alg-pro for Proto-Algonquian. This is the code already used on Wiktionary, consisting of the prefix pro- for protolanguages plus the ISO 639-2 code alg for Algonquian. Hundreds of words and thousands of place names in American English derive from Algonquian languages, which in secondhand literature and on Wikipedia are often lumped together as "Algonquian" when the precise source language is either unknowable or unspecified due to laziness/confusion; Proto-Algonquian reconstructions are therefore mentioned fairly often and have enormous potential to increase as Wikipedia's etymology sections improve in quality.
Note that many other uncontroversial reconstructed languages are missing; the current set of codes for protolanguages represents exclusively a handful of European branches of Indo-European, plus Proto-Indo-European, and Proto-Semitic. This clear bias towards European traditional philology is not a good look for Wikipedia and should change in the near future.

Proposed revision for now

[edit]

(I guess) the following should be added to the data table variable in Module:Wikt-lang/data:

		["alg-pro"] = {
			["name"] = "Proto-Algonquian",
			["article"] = "Proto-Algonquian language",
		},

Ganjabarah (talk) 01:48, 11 June 2025 (UTC)[reply]

 Done Sophisticatedevening🍷(talk) 02:04, 12 June 2025 (UTC)[reply]

Possible enhancement: senseid

[edit]

This ugly edit make me think it would be nice to add template support for wiktionary senseid. Something like:

{{#invoke:Wikt-lang|wiktlang|en|minute|minutes|Q209426|"fractions of a degree"}} -> minutes "fractions of a degree"

Interwiki links are more fragile than intrawiki links, so perhaps there was a conscious decision not to support this; OTOH I still managed to make my ugly edit, which is even more fragile still. jnestorius(talk) 13:16, 1 April 2026 (UTC)[reply]

Support. An id parameter is much needed. Auteuil-Passy (talk) 06:03, 3 April 2026 (UTC)[reply]
Support I didn't understand what the missing feature was until I played around with this for a minute and realized the problem. It should be handled more gracefully, ideally. Dingolover6969 (talk) 23:34, 12 April 2026 (UTC)[reply]