Module:Set list/name

-- Receives a card/set name and a language. -- Returns the name of that card/set in the given language. local Values = {};

function Values.localized_name( name, language ) local _name = name local _language = language local out = '' -- SMW: local result = mw.smw.ask{  .._name.. , '?' .._language.. ' name=', limit = 1, mainlabel = '-' } -- Process SMW resutlt: for _, v in ipairs(result) do       local aux = '' for _, p in ipairs(v) do           aux = aux .. p       end out = out .. aux -- Should have only one value. end return out end

return Values