Module:Sandbox/zache explained

local p =

function p.is_leapyear(frame) year = frame.args[1] return frame:callParserFunctionend

function p.get_social_networks(frame) local item = frame.args[1] or frame.args.item or ""; local entity = mw.wikibase.getEntityObject(item); local targetproperties= local out= for n, property in pairs(targetproperties) do if (entity.claims[property]) then for p, claim in pairs(entity.claims[property]) do if claim["mainsnak"]["datatype"]~="wikibase-item" then out[property]=claim["mainsnak"]["datavalue"]["value"] end end end end return mw.text.jsonEncode(out)end

return p