Moduł:Brudnopis/malarz pl/infobox
< Moduł:Brudnopis | malarz pl
Dokumentacja dla tego modułu może zostać utworzona pod nazwą Moduł:Brudnopis/malarz pl/infobox/opis
local p = {}
function p.Q(wywolanie)
local Q = wywolanie:getParent().args["Q"] or ""
return Q
end
function p.wiersz(wywolanie)
local etykieta = wywolanie.args["etykieta"]
local wartosc = wywolanie.args["wartość"]
local dodaj = wywolanie.args["dodaj"] or wartosc
local wiersz = wywolanie.args["wiersz"]
local kol1 = wywolanie.args["kol1"]
local kol2 = wywolanie.args["kol2"]
if not dodaj or #dodaj == 0 then
return
end
local builder = mw.html.create()
builder:wikitext("|-")
if wiersz and (#wiersz > 0) then
builder:wikitext(" ", wiersz)
end
builder:wikitext("\n| class=\"iboxl\" ")
if kol1 and (#kol1 > 0) then
builder:wikitext(kol1)
end
builder:wikitext("|")
if etykieta and (#etykieta > 0) then
builder:wikitext(etykieta)
-- elseif demo and demolabel and propid then
-- builder:wikitext("{{{", demolabel, "|", imageWDdemo("label"), "}}}")
-- elseif demo and propid then
-- builder:wikitext("{{{", imageWDdemo("label"), "}}}")
-- elseif demo and demolabel then
-- builder:wikitext("{{{", demolabel, "}}}")
-- elseif propid then
-- builder:wikitext("{{{etykieta}}}", resources.catMissingLabel)
-- else
-- builder:wikitext("{{{etykieta}}}")
end
builder:wikitext("\n|")
if kol2 and (#kol2 > 0) then
builder:wikitext(kol2)
end
builder:wikitext("|")
-- if demo and demovalue and propid then
-- builder:wikitext("{{{", demovalue, "|", imageWDdemo(propid), "}}}")
-- elseif demo and propid then
-- builder:wikitext("{{{", imageWDdemo(propid), "}}}")
-- elseif demo and demovalue then
-- builder:wikitext("{{{", demovalue, "}}}")
-- elseif wartosc then
builder:wikitext(wartosc)
-- else
-- return
-- end
builder:wikitext("\n|-")
return builder:allDone()
end
return p