模組:沙盒/Alexander Misel/Wikidata维基百科,自由的 encyclopedia 模块文档[查看] [编辑] [历史] [清除缓存] 上述文档嵌入自Module:沙盒/Alexander Misel/Wikidata/doc。 (编辑 | 历史)编者可以在本模块的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。本模块的子页面。 local p = {} function p.desc() entity = mw.wikibase.getEntityObject() if entity == nil then return '' end id = entity.id return entity:getDescription( 'zh' ) end return p
模块文档[查看] [编辑] [历史] [清除缓存] 上述文档嵌入自Module:沙盒/Alexander Misel/Wikidata/doc。 (编辑 | 历史)编者可以在本模块的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。本模块的子页面。 local p = {} function p.desc() entity = mw.wikibase.getEntityObject() if entity == nil then return '' end id = entity.id return entity:getDescription( 'zh' ) end return p