local p = {}
 
-- Return autor(er) til artikkelen
function p.ulenket(frame)
    if not mw.wikibase then
        return ""
    end
    local artikkel = mw.wikibase.getEntity()
    if not artikkel then
        return "[[Kategori:Artikler som ikke er koblet til Wikidata]]"
    end
    local claims = artikkel.claims
    if not claims then
        return "[[Kategori:Artikler som mangler utsagn på Wikidata]]"
    end
    local p405 = artikkel.claims.p405
    if not p405 then
        return "[[Kategori:Artikler som mangler utsagn om autor på Wikidata]]"
    end
    local autor = ""
    for i = 0, p405.length, 1 do
		if i > 0 then
			autor = autor.. ", "
		end
		autor = autor .. artikkel.claims.p405[i].mainsnak.datavalue["value"]
	end
    return autor
end

function p.lenket(frame)
    return p.ulenket(frame)    
end
 
return p