« Module:Infobox » : différence entre les versions

Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
Aucun résumé des modifications
Ligne 60 : Ligne 60 :
text = text .. '<br /><small>' .. subtext .. '</small>'
text = text .. '<br /><small>' .. subtext .. '</small>'
end
end
local class = 'entete'
local class = 'avt-infobox-header'
     local style = {}
     local style = {}
Ligne 67 : Ligne 67 :
style[i] = j
style[i] = j
end
end
end
local icon = nil
if part.icon then
icon = tostring(mw.html.create('div')
:addClass('avt-infobox-header-icon')
:wikitext('[[Fichier:'..part.icon..'|30x30px|alt=|link=]]')
:allDone())
end
end
Ligne 77 : Ligne 85 :
}})
}})
subhead = tostring(mw.html.create('div')
subhead = tostring(mw.html.create('div')
:addClass('subhead')
:addClass('avt-infobox-header-subhead')
:wikitext(subheadText)
:wikitext(subheadText)
:allDone())
:allDone())
Ligne 85 : Ligne 93 :
:addClass(class)
:addClass(class)
:css(style)
:css(style)
:node(icon)
:node(subhead)
:node(subhead)
:tag('div')
:tag('div')
:addClass('avt-infobox-header-title')
:wikitext(text)
:wikitext(text)
:allDone()
:allDone()