Page MenuHomePhabricator

Make 'cmn' an interlanguage prefix instead of an interwiki prefix
Open, Needs TriagePublic

Description

Currently the prefix cmn is an interwiki prefix and not and interlanguage prefix in Wikipedia: https://en.wikipedia.org/wiki/Special:Interwiki.

The wikitext [[cmn:Foo]] makes an inline interwiki link to https://zh.wikipedia.org/wiki/Foo instead of interlanguage linking the article with https://zh.wikipedia.org/wiki/Foo.

cmn is the language code for Mandarin Chinese and part of the macrolanguage Chinese (zh). The parts of the macrolanguage Chinese (zh) are (https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry):

The wikitext

[[cdo:Foo]]
[[cmn:Foo]]
[[gan:Foo]]
[[hak:Foo]]
[[lzh:Foo]]
[[nan:Foo]]
[[wuu:Foo]]
[[yue:Foo]]

makes interlanguage links for all languages except for cmn. cmn is only an interwiki prefix and makes an inline interwiki link. (https://en.wikipedia.org/wiki/Special:ExpandTemplates?title=Special%3AExpandTemplates&wpInput=[[cdo%3AFoo]]%0D%0A[[cmn%3AFoo]]%0D%0A[[gan%3AFoo]]%0D%0A[[hak%3AFoo]]%0D%0A[[lzh%3AFoo]]%0D%0A[[nan%3AFoo]]%0D%0A[[wuu%3AFoo]]%0D%0A[[yue%3AFoo]])

The prefix cmn should be an interlanguage prefix like the other parts of the macrolanguage Chinese (zh).

Event Timeline

Stang renamed this task from Make 'cnm' an interlanguage prefix instead of an interwiki prefix to Make 'cmn' an interlanguage prefix instead of an interwiki prefix.Nov 1 2021, 8:03 PM

Maybe this can be done, but why not just use zh? I understand that it's a macro language, but that's what we've always used in practice, and that's what (probably) the rest of the web does, so we can just avoid using cmn in wikitext.