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

Aucun résumé des modifications
Aucun résumé des modifications
 
(3 versions intermédiaires par le même utilisateur non affichées)
Ligne 13 : Ligne 13 :
function Script:build()
function Script:build()
     local root = mw.html.create()
     local root = mw.html.create()
     root:wikitext('<syntaxhighlight lang="bash">')
     root:wikitext("<syntaxhighlight lang=\"bash\">")
     local command = self.template
     local command = self.template
     if self.arguments then
     if self.arguments then
Ligne 24 : Ligne 24 :
     root:wikitext(command)
     root:wikitext(command)
     root:wikitext("</syntaxhighlight>")
     root:wikitext("</syntaxhighlight>")
 
     return mw:getCurrentFrame():preprocess(tostring(root))
     return tostring(root)
end
end