Difference between revisions of "Module:sandbox/propertyID"

From Rhizome Catalog
Jump to: navigation, search
Line 16: Line 16:
 
end
 
end
  
function p.property(frame)
+
--function p.property(frame)
    return mw.wikibase.resolvePropertyId( 'browser plug-ins' )         
+
  -- return mw.wikibase.resolvePropertyId( 'browser plug-ins' )         
end     
+
--end     
  
 
return p
 
return p

Revision as of 00:21, 9 May 2016


local p = {}

function p.id(frame)
    if not mw.wikibase then
        return "no mw.wikibase"
    end
    entity = mw.wikibase.getEntityObject()
    if entity == nil then
        return "no entity"
    end
    return entity.id
end
 
function p.label(frame)
    return mw.wikibase.label( frame.args[1] )
end

--function p.property(frame)
   -- return mw.wikibase.resolvePropertyId( 'browser plug-ins' )         
--end    

return p