DanTMan pisze: > John Q.? Someone else? > Do you think we could get a wgLanguageCode or languageCode attribute in > the <general /> element in the API: > http://www.wikia.com/api.php?action=query&meta=siteinfo&siprop=general|namespaces
Hi, I just did it. There is new attribute in "general" node called "languagecode". Examples: http://beidipedia.wikia.com/api.php?action=query&meta=siteinfo&siprop=general http://www.wikia.com/api.php?action=query&meta=siteinfo&siprop=general Inez > > I was considering modifying pywikipediabot at some point to be able run > on wikia without using family files by grabbing > the data needed from the api, and just using a wikia_* family with a > lang. But there's no way to check out the content language of the wiki > to verify it or set the default namespaces right or various other things > without using an extremely > complex and touchy method which requires the grabbing of multiple API > pages to list every Wikia's domain, and search for wiki with > www.*.wikia.com and www.lang.*.wikia.com to grab it's ID, then grab the > configuration variables from the API. > _______________________________________________ Wikia-l mailing list [email protected] http://lists.wikia.com/mailman/listinfo/wikia-l
