Module talk:Wikt-lang
This is the talk page for discussing improvements to the Wikt-lang module. |
|
Archives: 1Auto-archiving period: 12 months ![]() |
![]() | This module does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
![]() | To help centralize discussions and keep related topics together, Template talk:wikt-lang and Template talk:wt redirect here. |
![]() | On 9 July 2024, it was proposed that this page be moved from Module:Language to Module:Wikt-lang. The result of the discussion was moved. |
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)
- 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 assignssmp
to Samaritan. Apparently, no one at en.wiki has cared enough about which article is linked whensmp
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)
- Thanks. Asked at Template talk:lang#Samaritan --Error (talk) 01:23, 18 January 2024 (UTC)
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)
- 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
(ory
or+
)
- the language tag is
- non-Latn-script text is rendered in upright font except when
|italics=yes
(ory
or+
)
- Latn-script text is rendered in italic except when
- See Template:Wikt-lang/testcases.
- Keep? Discard?
- —Trappist the monk (talk) 19:50, 27 June 2024 (UTC)
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)
Module:Language → Module: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)
- 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)
- @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)
- 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)
- Thanks, that was the only one that was unclear, don't want us to break anything! ASUKITE 16:38, 17 July 2024 (UTC)
- @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)
- Rename per nom. * Pppery * it has begun... 16:10, 9 July 2024 (UTC)
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)
- 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)
Extended-confirmed-protected edit request on 18 March 2025: Add new setting for Ilocano (ilo
)
[edit]![]() | This edit request to Module:Wikt-lang/data has been answered. Set the |answered= parameter to no to reactivate your request. |
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:
Related edits
[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)
Add Proto-Algonquian
[edit]![]() | This edit request to Module:Wikt-lang/data has been answered. Set the |answered= parameter to no to reactivate your request. |
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: