« Module:Script » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 14 : | Ligne 14 : | ||
local root = mw.html.create() | local root = mw.html.create() | ||
local command = self.template | local command = self.template | ||
for key, value in pairs(self.arguments) do | if self.arguments == nil then | ||
for key, value in pairs(self.arguments) do | |||
if value ~= nil then | |||
command = String:replace(frame:newChild{title = "module invocation", args = {source = command, pattern = "{" .. key .. "}", replace = value}}) | |||
end | |||
end | |||
end | end | ||
root:wikitext(command) | root:wikitext(command) | ||