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

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


    root:attr('class', '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' } )
Ligne 15 : Ligne 14 :
     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('content')


     return tostring(root)
     return tostring(root)