跳转到内容

模組討論:Wikidata

页面内容不支持其他语言。
维基百科,自由的百科全书

这是本页的一个历史版本,由A1Cafel留言 | 贡献2017年1月23日 (一) 04:01 (// Edit via Wikiplus)编辑。这可能和当前版本存在着巨大的差异。


Dabao qian在话题“getImageLegend”中的最新留言:8年前

mw.wikibase.getEntity to mw.wikibase.getEntityObject

I am trying to change all important modules using mw.wikibase.getEntity() which is deprecated to mw.wikibase.getEntityObject(). You can find more details here [1]. If you could change it on this module, that would be great! Thank you a lot! --Lucie Kaffee (WMDE)留言2015年2月27日 (五) 12:13 (UTC)回复

Breaking change to mw.wikibase.getEntity()

请求已拒绝

mw.wikibase.getEntity() will be changed in a not backwards compatible way in two weeks. In order for your module still work then you need to change from mw.wikibase.getEntity() to mw.wikibase.getEntityObject(). Please reach out to me if you have any questions regarding this change. I’d be happy to help! --Lucie Kaffee (WMDE)留言2015年3月24日 (二) 15:59 (UTC)回复

@Liangent。--Jimmy Xu 2015年3月25日 (三) 01:21 (UTC)回复
直接抓enwiki的过来了。看了一下之前的历史,@Jackmcbarn的修改应该不需要了吧,前面检查了claims[1].mainsnak.datavalue.type == "wikibase-entityid")应该总有numeric-id了,而空label已在前面替换为id。Liangent留言 2015年3月25日 (三) 03:44 (UTC)回复
I don't speak Chinese at all, and the Google translation isn't very good. Can someone translate what I'm being asked? Jackmcbarn留言2016年3月19日 (六) 20:07 (UTC)回复

编辑请求

请求已处理

@Liangent求管理员把里面的提示语和日期时间表达方式改成中文好不好?现在如果用这个模块从维基数据抓取一个人的出生日期,返回的结果是“D M月 YYYY”,但这并不符合中文语境中的使用习惯,正确的表达方式应该是“YYYY年M月D日”。--Dabao qian留言2015年11月15日 (日) 17:32 (UTC)回复

完成。--Jimmy Xu 2015年12月2日 (三) 18:47 (UTC)回复

中文化问题

请求已处理

首先感谢@Jimmy Xu的编辑,但中文化做得不彻底,仍旧有英文元素在里面。我自己写了一个版本,还望管理员能够patch一下。--Dabao qian留言2015年12月8日 (二) 02:01 (UTC)回复

mw.language.new(wiki.langcode):formatDate不应该能出am/pm吧,要是出了去找mw修……Liangent留言 2015年12月8日 (二) 20:20 (UTC)回复
完成。--Jimmy Xu 2016年1月18日 (一) 09:39 (UTC)回复

getImageLegend

User:Manchiu

目前中文版的此模块还没有这个函数,但在象棋手信息框模板中已经用到了这个函数,能否在模块中添加此函数?--Dabao qian留言2016年12月24日 (六) 01:58 (UTC)回复