User:Liangent/wb-lang/dev/old

Requirements

 * Clean up language codes first (eg zh-classical => lzh, zh-yue => yue and disable some codes)
 * User:Stevenliuyi find this table from IANA And according to my experience in Commons and wikidata, the 6 dialect language tags are very confusing. So even if the 6 dialect language tags exist, their names and tags should be changed . zh-hk => zh-hant-hk, zh-tw => zh-hant-tw, zh-cn => zh-hans-cn, zh-mo => zh-hant-mo, zh-sg => zh-hans-sg, zh-my => zh-hans-my. --fanchy (talk) 13:32, 6 June 2013 (UTC)
 * Sorry but this point was meant to keep close to MediaWiki core. ie. Language::factory('zh-classical')->getCode == 'lzh'. Maybe you can file a bug against core first and see whether they accept it, and it seems out of scope of this plan. Liangent (talk) 13:43, 6 June 2013 (UTC)
 * bug49274--fanchy (talk) 20:40, 6 June 2013 (UTC)


 * Site link table (see above)
 * Opt-out: {{#babel:en-0}}
 * Interesting idea. I am actually using -0 to say "I am interested in that language, but I don't speak it", and to switch it on, not off. Why would one want to opt-out, do you have a (not too hypothetical) use case? In the case of yes, -0 could work, I guess. --Denny (talk) 21:13, 31 May 2013 (UTC)
 * I'm reading en-0 as "I'm expected to be able to use en but actually I can't use it" - eg, {{#babel:en-N|fr-0}} on frwiki. Liangent (talk) 15:19, 2 June 2013 (UTC)

API

 * For all wbset* actions:
 * Behaviors are not changed. Data set to exact language code requested by user.
 * Remember to take care of zh-classical and such (this falls out of scope of this project)