Module:Sandbox/RexxS/Wd

-- Demo of calling Module:Wd from another module Licensed: CC-0 --

local p = {}

local wd = require("Module:Wd")

function p.rundemo(frame) local out = {} local val

-- this is equivalent to 	val = wd._property( {"Q17533992", "P31"} ) out[#out+1] = val

-- this is equivalent to 	val = wd._property( {"Q17533992", "P1435"} ) out[#out+1] = val

-- this is equivalent to 	val = wd._qualifier( {"Q17533992", "P1435", "P580"} ) out[#out+1] = val

-- this is equivalent to 	val = wd._property( {"qualifier", "Q17533992", "P1435", "P580"} ) out[#out+1] = val

-- this is equivalent to 	val = wd._property( {"reference", "Q17533992", "P1435"} ) out[#out+1] = val

return " Demo " .. table.concat(out, " ") end

return p