Anonymous user
Module:TemplateBox: Difference between revisions
From The FunKey Wiki
m
fix typo in comment
m (1 revision imported) |
WC>Lucas Werkmeister m (fix typo in comment) |
||
Line 167:
default = nil,
t = 'string'
},
autovalue = {
default = '',
t = 'string',
alias = 'av',
},
suggestedvalues = {
default = '',
t = 'table',
alias = 'sv',
extract = function(pargs, number, paramVal)
if paramVal == nil then
return nil
end
local cleaned = {}
for m in mw.text.gsplit( paramVal, '/', true ) do
cleaned[#cleaned+1] = mw.text.trim(m)
end
return cleaned
end,
},
-- sets will be treated differently because we can only have a plain structure in wikitext
}
|