模組討論:Wikidata
外观
Dabao qian在话题“编辑请求”中的最新留言:9年前
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()
{{edit protected|Module:Wikidata}} 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)
编辑请求
![]() | 正在請求他人代為編輯受保護的頁面(编辑:仅允许管理员;移动:仅允许管理员(保护日志)) 注意:本模板不是用於請求開放頁面給予編輯,相關請求請至请求解除保护頁申請;本模板是用於請求可以編輯的用户幫忙修改內容。 請求時請列明理由及內容,確保修改有共識基礎及沒有爭議,否則請先在受保護頁面的討論頁進行討論。(工具:處理、申請解除保護) 如果您想直接展示给管理员修改后的页面及清楚地列出编辑差异,请将本模板改为 {{Editprotected|patch=}} ,点击「显示预览」并按照提示进一步操作。 |