Módulo:Wikibase: diferenças entre revisões

Conteúdo apagado Conteúdo adicionado
 
m sincronizando com código do en.wikisource
Linha 1:
---------- Module:Wikibase ----------------
local p = {}
 
Linha 17:
end
 
-- Return the label of a given data item., or of connected page
-- if no argument is provided to this method.
function p.label(frame)
ifreturn mw.wikibase.label( frame.args[1] == nil then)
end
entity = mw.wikibase.getEntityObject()
if not entity then return nil end
 
id = entity.id
else
id = frame.args[1]
end
 
-- Return the description of a given data item, or of connected page
return mw.wikibase.label( id )
-- if no argument is provided to this method.
function p.description(frame)
return mw.wikibase.labeldescription( idframe.args[1] )
end
 
-- Return the local page about a given data item., or of connected page
-- if id is not specified.
function p.page(frame)
if frame.args[1] == nil then