FANDOM


local MyInput = {};
 
function MyInput.test( frame )
    local _name = frame.args.name
    local _ln = frame.args.ln
    local out = ''
 
    local name = mw.smw.ask{ '[[' .._name.. ']]', '?' .._ln.. ' name=', limit = 1, mainlabel = '-' }
 
    for _, v in ipairs(name) 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 MyInput

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.