Jump to content

Module talk:Wikt-lang

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Language)

Samaritan

[edit]

{{lang|smp|example}} (the code for Samaritan Hebrew language) adds a page to Category:Articles containing Samaritan-language text but Samaritan language redirects to Samaritan Aramaic language sam. -- Error (talk) 20:06, 17 January 2024 (UTC)[reply]

That is not a 'failing' of Module:Language (because that module is not used by {{lang}}). It may be a failing of Module:Lang which when queried gives these results:
{{lang|fn=category_from_tag|smp|link=yes}}Category:Articles containing Samaritan Hebrew-language text
{{lang|fn=name_from_tag|smp|link=yes}}Samaritan Hebrew
{{lang|fn=category_from_tag|sam|link=yes}}Category:Articles containing Samaritan Aramaic-language text
{{lang|fn=name_from_tag|sam|link=yes}}Samaritan Aramaic
The ISO 639-3 custodian assigns smp to Samaritan. Similarly, the IANA language-subtag-registry file also assigns smp to Samaritan. Apparently, no one at en.wiki has cared enough about which article is linked when smp is used in {{lang}} to gain a consensus to override the ISO 639-3 name or to repoint the Samaritan-language-redirect so that it points elsewhere.
Issues involving {{lang}}, {{transliteration}}, and other templates that use Module:Lang, should be discussed at Template talk:Lang, not here. Where is it best to discuss repointing the Samaritan-language-redirect? I don't know, except to say that such discussion should not be here.
Trappist the monk (talk) 20:48, 17 January 2024 (UTC)[reply]
Thanks. Asked at Template talk:lang#Samaritan --Error (talk) 01:23, 18 January 2024 (UTC)[reply]

Mis-italicization

[edit]

This should not be applying italics automatically in the case of {{wikt-lang|en|...}}, only for non-English material (MOS:FOREIGN, MOS:ITALICS). If an English-language term is being used in a words-as-words manner, it can be italicized manually or by a template parameter.  — SMcCandlish ¢ 😼  18:22, 25 June 2024 (UTC)[reply]

I have hacked Module:Language/sandbox to create a common function (permalink) that chooses how the 'text' is rendered. Default rendering is:
Latn-script text is rendered in italic except when
  • the language tag is en (English text renders in upright font)
  • |italics=no
English text may be rendered in italics for MOS:WORDSASWORDS by setting |italics=yes (or y or +)
non-Latn-script text is rendered in upright font except when
  • |italics=yes (or y or +)
See Template:Wikt-lang/testcases.
Keep? Discard?
Trappist the monk (talk) 19:50, 27 June 2024 (UTC)[reply]

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]