「モジュール:Coordinates」の版間の差分

ナビゲーションに移動 検索に移動
template>Lucie Kaffee (WMDE)
(changed back to getEntityObject after finding my mistake. very sorry for breaking it!)
template>Lucie Kaffee (WMDE)
(remove mw.wikibase.entity.create (unnecessary))
580行目: 580行目:
end
end
elseif pFrame.args[1] == nil and mw.wikibase.getEntityObject() ~= nil then
elseif pFrame.args[1] == nil and mw.wikibase.getEntityObject() ~= nil then
local entity = mw.wikibase.entity.create( mw.wikibase.getEntityObject() )
local entity = mw.wikibase.getEntityObject()
if entity and entity.claims and entity.claims.P625 and  
if entity and entity.claims and entity.claims.P625 and  
entity.claims.P625[1].mainsnak.snaktype == "value" then
entity.claims.P625[1].mainsnak.snaktype == "value" then