词条 | Module:Sandbox/Kotz/G |
释义 | function getProperty( entityName, propertyName ) mw.log ("entityName=" .. entityName) mw.log ("propertyName=" .. propertyName) if (entityName) then entity=mw.wikibase.getEntityObject(); else entity=mw.wikibase.getEntityObject(entityName) end if (entity) then mw.log(entity) local property = entity.getProperties() if (property) then return property end end end return end function property( frame ) local status, result = pcall(getProperty, string.upper(frame.args[1]), string.lower(frame.args[2])) return (status and '' or 'Error: ') .. (result or '') end return { property = property, Property = property } |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。