Module:Wikibase: Difference between revisions
m
1 revision imported
Vivaporius (talk | contribs) m (1 revision imported) |
Vivaporius (talk | contribs) m (1 revision imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 7:
return "no mw.wikibase"
end
entity = mw.wikibase.getEntityObject()
Line 12 ⟶ 13:
return "no entity"
end
return entity.id
end
Line 18 ⟶ 20:
-- if no argument is provided to this method.
function p.label(frame)
end
Line 31 ⟶ 26:
-- if no argument is provided to this method.
function p.description(frame)
end
Line 47 ⟶ 35:
entity = mw.wikibase.getEntityObject()
if not entity then return nil end
id = entity.id
else
id =
end
return mw.wikibase.sitelink( id )
end
|