For the Indonesian languages Madurese (local name: Madhurâ; language code: mad) and Nias (local name: Niha; language code: nia), the #language parser function does not provide a label.
The languages are in use in Template:VN on Wikispecies.
For the Indonesian languages Madurese (local name: Madhurâ; language code: mad) and Nias (local name: Niha; language code: nia), the #language parser function does not provide a label.
The languages are in use in Template:VN on Wikispecies.
#language is not part of ParserFunctions as per https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions hence removing tag.
"mad" and "nia" are part of CLDR, at least for English and German: https://species.wikimedia.org/wiki/User:Raymond/languages
In which languages are the labels missing?
The labels do not appear in Template:VN on Wikispecies; see demo at https://species.wikimedia.org/w/index.php?title=User:Raymond/languages&diff=8009350&oldid=8009277
My language is set to En.
I see the issue: The template calls
-->{{#if:{{{mad|}}}|'''{{#language:mad}}:''' {{{mad}}}<br/>}}<!--
which means the autonym of the language is requested. The autonyms are stored in MediaWiki core, in file Names.php.
But additions there are done only for languages with existing translations of the MediaWiki user interface.
Now I have no idea how to fix this task. @Nikerabbit ?
Good idea, tested locally by creating LocalNamesMad.php with 1 entry:
'mad' => 'Madhurâ',
Wikitext:
{{#language:mad}} {{#language:mad|mad}} {{#language:mad|en}}
Rendering result:
mad Madhurâ Madurese
Not really the expected result :-( Bug or feature?