226
edits
DerpyTheNon (talk | contribs) (Created page with "-- This module implements the {{lua}} template. local yesno = require('Module:Yesno') local mList = require('Module:List') local mTableTools = require('Module:TableTools') local mMessageBox = require('Module:Message box') local p = {} function p.main(frame) local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = v:match('^%s*(.-)%s*$') if v ~= '' then args[k] = v end end return p._main(args) end function p._main(args)...") |
DerpyTheNon (talk | contribs) No edit summary |
||
| Line 47: | Line 47: | ||
boxArgs.text = 'This module depends on the following other modules:' .. moduleList | boxArgs.text = 'This module depends on the following other modules:' .. moduleList | ||
else | else | ||
boxArgs.text = 'This template uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList | boxArgs.text = 'This template uses [[Wikipedia:Wikipedia:Lua|Lua]]:\n' .. moduleList | ||
end | end | ||
end | end | ||
boxArgs.type = 'notice' | boxArgs.type = 'notice' | ||
boxArgs.small = true | boxArgs.small = true | ||
return mMessageBox.main('mbox', boxArgs) | return mMessageBox.main('mbox', boxArgs) | ||
end | end | ||
edits