﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14421	[patch] Language codes with dashes fail in Wikipedia tags	nyurik	simon04	"If wikipedia tag uses an uncommon language like ""zh-classical"" or ""be-tarask"", Fetch wikidata id will fail, because the site ID is different from those language codes.  A general rule of thumb is to replace '-' with '_', but there are some exceptions, like ""be-tarask"" and ""be-x-old"" should both use ""be_x_old"" site ID.

The ""proper"" way to do it is to call the API and use ""wikiid"" value. The ID should never change.
  https://zh-yue.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=general

The workaround patch is attached"	defect	closed	normal		Plugin wikipedia		fixed		
