🇮🇷 Iran Proxy | https://www.wikipedia.org/wiki/Template_talk:Language
Jump to content

Template talk:ISO 639 name

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

[edit]

Template:ISO 639 name link transcludes the documentation for Template:ISO 639 name, however, it functions differently in that it automatically adds a link. Is there an easy way to resolve this? I mean, can we tailor the documentation to the link template without having to copy-paste the documentation entirely? — W.andrea (talk) 23:39, 29 March 2025 (UTC)[reply]

You might consider doing something like {{sfn}} does. That template shares its documentation with several Harvard-style short-form reference templates. The common documentation template is {{Harvard citation documentation}}.
So for {{ISO 639 name}} and {{ISO 639 name link}}, perhaps {{ISO 639 name documentation}}. That template would be called from Template:ISO 639 name link/doc with {{ISO 639 name documentation|link}}. In {{ISO 639 name documentation}} you might have under usage:
* {{tnull | ISO 639 name {{{1|}}} | ''ISO code''}}
which would render:
  • {{ISO 639 name|ISO code}} – for the unlinked form
  • {{ISO 639 name link|ISO code}} – for the linked form
Similarly, this would not want to be part of the {{ISO 639 name link}} documentation:
* {{tnull | ISO 639 name | fn{{=}}iso_639 | ''ISO code or language name'' | link{{=}}yes| hide-err{{=}}yes }}
You might want to write something like:
*{{#if:{{{1|}}}||{{tnull | ISO 639 name | fn{{=}}iso_639 | ''ISO code or language name'' | link{{=}}yes| hide-err{{=}}yes }}}}
(might want to put that at the end of the §Usage section in order to mind the list gap)
In a like fashion, {{ISO 639 name documentation}} would be called from Template:ISO 639 name/doc with {{ISO 639 name documentation}} (no positional parameter set).
Trappist the monk (talk) 00:11, 30 March 2025 (UTC)[reply]

bh is deprecated as per Bihari languages, List of ISO 639 language codes and SIL, but still valid as per IANA language-subtag-registry file. --Namoroka (talk) 14:06, 5 October 2025 (UTC)[reply]

Until IANA deprecates bh and recognizes bih in the subtag registry, there's naught much to be done because browsers and whatnot will still recognize bh but won't recognize bih so Module:Lang must still recognize bh.
MediaWiki still mislabels bh:
{{#language:bh|en}} → Bhojpuri
and does not recognize bih:
{{#language:bih|en}} → bih
so cs1|2 must continue to workaround those two tags.
We might remove bh from Module:ISO 639 name/ISO 639-1 but the data in the module come from the IANA subtag registry so bh will be removed when IANA deprecates it.
Trappist the monk (talk) 15:14, 5 October 2025 (UTC)[reply]
Okay, thanks for your reply.--Namoroka (talk) 15:19, 5 October 2025 (UTC)[reply]

update request

[edit]

Please update Module:ISO 639 name/ISO 639-3 (dep) as per iso-639-3_Retirements.tab.

-- File-Date: 2025-10-15
	["dek"] = {"Dek"},
	["nte"] = {"Nathembo"},
	["yol"] = {"Yola"},
dek	Dek	D	sqm		2024-10-15
nte	Nathembo	M	eko		2024-10-15
yol	Yola	M	enm		2025-10-15

--Namoroka (talk) 08:45, 26 November 2025 (UTC)[reply]

{{ISO 639 name|dek}} → Dek
{{ISO 639 name|nte}} → Nathembo
{{ISO 639 name|yol}} → Yola
Trappist the monk (talk) 19:51, 26 November 2025 (UTC)[reply]
Thank you!--Namoroka (talk) 06:27, 27 November 2025 (UTC)[reply]