![]() | Template:ISO 639 name is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. This template does not have a testcases subpage. You can create the testcases subpage here. |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
|
|
This page has archives. Sections older than 180 days may be automatically archived by Lowercase sigmabot III when more than 3 sections are present. |
Hi, is it possible to add two features?
Thanks.-- Carnby (talk) 20:12, 3 September 2024 (UTC)
{{ISO 639 name link}}
, go ahead.There is an issue with this language, see the following:
{{ISO 639 name|mnr}}
→ Mono{{ISO 639 code|Mono}}
→ error: Mono not found in ISO 639-1, -2, -2B, -3, -5 list (help)Gonnym (talk) 13:45, 27 October 2024 (UTC)
{{ISO 639 code|Mono (Democratic Republic of Congo)}}
→ mnh{{ISO 639 code|Mono (USA)}}
→ mnr{{ISO 639 code|Mono (Cameroon)}}
→ mru{{ISO 639 code|Mono (Solomon Islands)}}
→ mte{{IPA|mnr|test}}
gets the non-disambiguated name (Category:Pages with Mono IPA)? Gonnym (talk) 14:26, 27 October 2024 (UTC)
{{lang|fn=name_from_tag|mnr}}
→ Mono (lines 65–72)|raw=yes
parameter:
{{#invoke:ISO 639 name|iso_639_code_to_name|mnr|raw=yes}}
→ Mono (USA){{ISO 639 name|mnr|raw=yes}}
→ Mono (USA)_iso_639_code_to_name (frame)
meant as a module entry point also? It currently doesn't work like _iso_639_name_to_code (args)
. Gonnym (talk) 15:29, 27 October 2024 (UTC)
_iso_639_code_to_name (frame)
is not exported and because it accepts frame
as a variable, would be a template access point. Mayhaps I got started on creating module access points and got side-tracked? Don't know, I'll give some thought to fixing that.the input can be an IETF tag?
{{ISO 639 name}}
supports ISO 639-1, -2, -3, and -5 language tags only. It does not support IETF language tags. The only category link emitted by {{ISO 639 name}}
is Category:ISO 639 name template errors; there is no other categorization.Module:IPA might do better to fetch the name from Module:ISO 639 name using the |raw=yes
parameter
. I'm pointing out that doesn't work because e.g. {{IPA|pt-BR|...}}
needs to show the same label as {{langx|pt-BR|...}}
(which, if used in an article, puts it in Category:Articles containing Brazilian Portuguese-language text rather than Category:Articles containing Portuguese-language text). Nardog (talk) 15:28, 26 December 2024 (UTC)
{{IPA}}
and {{Langx}}
must show the same label then {{ISO 639 name}}
is not the correct tool for {{IPA}}
.{{langx}}
categorizes out-of-scope for {{ISO 639 name}}
.name_from_tag()
supports |raw=yes
. It would be up to Module:IPA to decide what it does with that parameter.pt-BR
to "Brazilian Portuguese" and mnr
to "Mono (USA)", i.e. what {{lang(x)}} does to generate categories? Can you make one? Nardog (talk) 16:52, 26 December 2024 (UTC)
{{ISO 639 name|pt-BR}}
→ Portuguese error: pt-BR is an IETF tag (help){{ISO 639 name|mnr}}
→ Mono{{ISO 639 name|mnr|raw=yes}}
→ Mono (USA)|raw=yes
option to get the full name. Gonnym (talk) 17:44, 26 December 2024 (UTC)
{{lang|fn=name_from_tag|mnr}}
→ Mono{{lang|fn=name_from_tag|mnr|raw=yes}}
→ Mono (USA)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)
{{sfn}}
does. That template shares its documentation with several Harvard-style short-form reference templates. The common documentation template is {{Harvard citation documentation}}
.{{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''}}
{{ISO 639 name|ISO code}}
– for the unlinked form{{ISO 639 name link|ISO code}}
– for the linked form{{ISO 639 name link}}
documentation:
* {{tnull | ISO 639 name | fn{{=}}iso_639 | ''ISO code or language name'' | link{{=}}yes| hide-err{{=}}yes }}
*{{#if:{{{1|}}}||{{tnull | ISO 639 name | fn{{=}}iso_639 | ''ISO code or language name'' | link{{=}}yes| hide-err{{=}}yes }}}}
{{ISO 639 name documentation}}
would be called from Template:ISO 639 name/doc with {{ISO 639 name documentation}}
(no positional parameter set).