The "code" field for natural language objects in Wikifunctions mixes different types of codes. Some are MediaWiki language codes, some are BCP 47 language codes. These are not fully compatible with each other, which makes it unclear how they should be interpreted, and in some cases, unclear what is meant.
MediaWiki contains mappings from its language codes to BCP 47-compatible ones in https://gerrit.wikimedia.org/g/mediawiki/core/+/master/includes/language/LanguageCode.php. The codes in DEPRECATED_LANGUAGE_CODE_MAPPING plus egl are also MediaWiki languages, the rest are generally only used to create valid HTML lang attributes and not otherwise understood by MediaWiki.
Examples:
- T360672: Alter Wikifunctions's Z1755 object to define 'sgs' as primary and 'bat-smg' as secondary
- T360673: Alter Wikifunctions's Z1231 object to define 'de-x-formal' as primary and 'de-formal' as secondary
https://www.wikifunctions.org/view/de/Z1624
- Code: ar-001
- Note: ar-001 is a BCP 47-compatible code used by CLDR but not MediaWiki.
- T360675: Merge Wikifunctions's Z1405 object into Z1508 (duplicate MW vs. BCP47 object)
- T360674: Alter Wikifunctions's Z1668 object to define 'ro-cyrl-md' as primary and 'ro' as secondary
https://www.wikifunctions.org/view/de/Z1124
- Code: en-x-simple
- Code aliases: simple
- Note: The MediaWiki code is simple. The equivalent BCP 47 code is en-simple. en-x-simple is a BCP 47-compatible code using a private use subtag.
https://www.wikifunctions.org/view/de/Z1679
- Code: roa-tara
- Note: roa-tara is a MediaWiki code without an assigned BCP 47 code.
- T360676: Alter Wikifunctions's Z1394 object to add 'sr-latn' as primary and 'sr-el' as secondary
- T360677: Alter Wikifunctions's Z1181 object to add 'sr-cyrl' as primary and 'sr-ec' as secondary
https://www.wikifunctions.org/view/de/Z1782
- Code: cbk-zam
- Note: cbk-zam is a MediaWiki code without an assigned BCP 47 code.
https://www.wikifunctions.org/view/de/Z1826
- Code: map-bms
- Note: map-bms is a MediaWiki code without an assigned BCP 47 code.
https://www.wikifunctions.org/view/de/Z1503
- Code: bho
- Code aliases: bh
- Note: bho is the BCP 47 code and preferred MediaWiki code. bh is a MediaWiki code which means Bihari in BCP 47.
https://www.wikifunctions.org/view/de/Z1346
- Code: vro
- Code aliases: fiu-vro
- Note: fiu-vro is a MediaWiki code. vro is the BCP 47 code and preferred MediaWiki code.
- Note: Previously duplicated, cf. Z1346 & Z1816 discussion -- It was removed from function-schemata before merging onwiki.
- T360679: Merge Wikifunctions's Z1501/zh-min-nan object into Z221/nan (duplicate MW vs. BCP47 object)
https://www.wikifunctions.org/view/en/Z1229
- Code: zh-classical
- Note: zh-classical is a deprecated MediaWiki code. The BCP 47 code and preferred MediaWiki code is lzh (= Z1152).
- Note: Duplication solved on Wikifunctions, cf. Z1152 & Z1229 discussion
https://www.wikifunctions.org/view/de/Z1849
- Code: nrm
- Note: This is a MediaWiki code. The equivalent BCP 47 code is nrf. nrm means Narom in BCP 47.