Jump to content

Module:User:Legoktm/bad idea

From Wikipedia, the free encyclopedia
--[[
Demonstrates how to use Wikidata
for interwiki transclusion.
@author Legoktm
]] --

local p = {}

function p.expand(frame)
    local entity = mw.wikibase.getEntity()
    local text = entity.claims.p370[0].mainsnak.datavalue.value
    return frame:preprocess( text )
end

return p