Moduuli:Fr:Infobox/parameterhelp
Siirry navigaatioon
Siirry hakuun
Lua-virhe rivillä 43: bad argument #1 to 'wikitext' (string or number expected, got function).
local p = {}
local lang = 'fi'
function p.parameterlist()
localdata = require( 'Module:Fr:Infobox/Localdata' )
item = localdata.item
local moduledata = require('Module:Fr:Infobox/' .. localdata.modulename)
moduledata.name = localdata.modulename
local style=""
local html = mw.html.create('table'):css({})
for i, j in pairs( moduledata.parts ) do
local param = j["type"] or ""
local property = j["label"] or ""
local description = j["value"] or ""
-- infobox:node( p.buildblock(j) )
local formattedparam = ""
local formattedproperty = ""
local formatteddescription =""
if param then
formattedparam = mw.html.create('th')
:attr('scope', 'row')
:wikitext(label)
:done()
end
if property then
formattedproperty = mw.html.create('td')
:attr('scope', 'row')
:wikitext(property)
:done()
end
if description then
formatteddescription = mw.html.create('td')
:attr('scope', 'row')
:wikitext(description)
:done()
end
mw.html.create('tr')
:addClass(class)
:css(style)
:node(formattedlabel)
:node(formattedproperty)
:node(formatteddescription)
:done()
end
tab:allDone()
end
return p;