Module:Sandbox/Sebotic/query test

local p = {} function p.hello(frame) entity = mw.wikibase.getEntityObject(frame.args[1]) infobox_string = infobox_string2 =

infobox_string3 = " " .. "|header1 = dds" .. "|label1 = label1" .. "|data1 = " .. "|data1a = data1a" .. "|data1b = data1" .. "|data1c = data1c" .. " "	--return entity['aliases']['en'][1]['value'] return infobox_string end

function p.get_aliases(frame) entity = mw.wikibase.getEntityObject(frame.args['from']) a = '' if entity['aliases'] ~= nil then test = entity['aliases']['en'] for key, value in ipairs(test) do a = a .. ', ' .. value['value'] end return a	end end return p