« Module:Message box » : différence entre les versions

mAucun résumé des modifications
Balise : Révocation manuelle
mAucun résumé des modifications
Ligne 7 : Ligne 7 :
     local root = mw.html.create('div')
     local root = mw.html.create('div')


    root:addClass('box')
     root:wikitext(
     root:wikitext(
         mw.getCurrentFrame():extensionTag( 'templatestyles', '', { src = 'Module:Message_box/style.css' } )
         mw.getCurrentFrame():extensionTag( 'templatestyles', '', { src = 'Module:Message_box/style.css' } )
     )
     )
    root:addClass('box')
     if self.image ~= nil then
     if self.image ~= nil then
         root:wikitext('[[' .. self.image .. ']]')
         root:wikitext('[[' .. self.image .. ']]')
     end
     end
     root:tag('h4'):wikitext(self.title)
     root:tag('h4'):wikitext(self.title)
     root:tag('p'):wikitext(self.content)
     root:tag('p'):wikitext(self.content):addClass('test')


     return tostring(root)
     return tostring(root)