« Module:Message box » : différence entre les versions
mAucun résumé des modifications |
mAucun résumé des modifications |
||
| Ligne 11 : | Ligne 11 : | ||
) | ) | ||
root:addClass('box') | root:addClass('box') | ||
local left = root:tag('div'):addClass('left') | |||
local right = root:tag('div'):addClass('right') | |||
if self.image ~= nil then | if self.image ~= nil then | ||
left:wikitext('[[File:' .. self.image .. ']]') | |||
end | end | ||
left:tag('h4'):wikitext(self.title) | |||
root:tag('p'):wikitext(self.content) | root:tag('p'):wikitext(self.content) | ||