Page MenuHomePhabricator

Citoid automated feature is not correctly configured on the Chinese Wikipedia
Closed, ResolvedPublic8 Estimated Story Points

Description

If one tries to put, for example this link "http://www.bbc.com/zhongwen/trad/world/2016/05/160504_us_trump_clinton" into citoid in english wikipedia, it can get the citation properly. However, if you put the same link into Chinese Wikipedia, then it can only shows "空引用”(empty citation).

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript
Shangkuanlc renamed this task from Citoid automatic tranlsation feature is broken in Chinese Wikipedia to Citoid automated feature is broken in Chinese Wikipedia.May 5 2016, 1:14 PM

The most probable cause of this is missing a citoid maps object in the
template data for the template corresponding to 'newspaperArticle'. I will
have a look to confirm.

Thank you so much, @Mvolz . It seems to be broken for a few months, but I didn't know how should we report. It is really nice to have instant feedback on a long stuck issue. :D

So it looks like that link is actually a "webpage" type citation and the cite web template is missing the 'maps' object in the template data. I've added maps to this template.

https://zh.wikipedia.org/w/index.php?title=Template%3ACite_web%2Fdoc&type=revision&diff=39999121&oldid=38748749

It's possible that the feature still won't work all the time if other templates are also missing this information; unfortunately I have to leave for the airport soon but I will make sure to check the other templates as well when I get back.

If you want to try fixing it yourself, you can go to https://zh.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json and check each template listed there to make sure they each have a maps object (ctrl+f for 'citoid' in the documentation page). You can learn more about adding maps to templates here:

https://www.mediawiki.org/wiki/Citoid#Ensure_each_template_specified_in_MediaWiki:Citoid-template-type-map.json_has_an_.27citoid.27_maps_value
https://www.mediawiki.org/wiki/Citoid/Maps_TemplateData
https://www.mediawiki.org/wiki/Citoid#Empty_references_appear

Jdforrester-WMF renamed this task from Citoid automated feature is broken in Chinese Wikipedia to Citoid automated feature is not correctly configured on the Chinese Wikipedia.May 9 2016, 3:30 PM
Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF added a project: patch-welcome.
Jdforrester-WMF set the point value for this task to 8.
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.

Yes, it appears the mediawiki message was installed without putting citoid maps in any of the tempaltes.

So I've gone through and added template data maps object to all of the citation templates listed in https://zh.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json simply by copying them from en wiki. https://zh.wikipedia.org/wiki/Template:Citation didn't have template data at all so it could probably use some translation :)

I've tried a few things and it works ... sort of . 10.1101/050211 gets me
"
Saulnier, Emma; Alizon, Samuel; Gascuel, Olivier. -{zh;zh-hans;zh-hant|Assessing the accuracy of Approximate Bayesian Computation approaches to infer epidemiological parameters from phylogenies}-. bioRxiv. 2016-04-26: 050211. doi:10.1101/050211 (英文).
"

When I open the template data editor, the title is correct though with no prefix. Is the {zh;zh-hans;zh-hant| prefix supposed to appear in citations on zh wiki?

Mvolz claimed this task.

Thank you!

When I open the template data editor, the title is correct though with no prefix. Is the {zh;zh-hans;zh-hant| prefix supposed to appear in citations on zh wiki?

Yes, that's the result of the language variants system, which VE doesn't support right now.