Module:lua banner: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "-- This module implements the {{lua}} template. local yesno = require('Module:Yesno') local mList = require('Module:List') local mTableTools = require('Module:TableTools') loc...")
 
No edit summary
Line 1: Line 1:
-- This module implements the {{lua}} template.
-- This module implements the {{lua}} template.
local yesno = require('Module:Yesno')
local yesno = require('Module:Yesno')
local mList = require('Module:List')
local m_List = require('Module:List')
local mTableTools = require('Module:TableTools')
local m_TableTools = require('Module:TableTools')
local mMessageBox = require('Module:Message box')
local m_MessageBox = require('Module:Message box')


local p = {}
local p = {}
Line 20: Line 20:


function p._main(args)
function p._main(args)
local modules = mTableTools.compressSparseArray(args)
local modules = m_TableTools.compressSparseArray(args)
local box = p.renderBox(modules)
local box = p.renderBox(modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
Line 39: Line 39:
end
end
end
end
local moduleList = mList.makeList('bulleted', moduleLinks)
local moduleList = m_List.makeList('bulleted', moduleLinks)
local title = mw.title.getCurrentTitle()
local title = mw.title.getCurrentTitle()
if title.subpageText == "doc" then
if title.subpageText == "doc" then
Line 53: Line 53:
boxArgs.small = true
boxArgs.small = true
boxArgs.image = '[[File:Lua-logo-nolabel.svg|30px|alt=|link=]]'
boxArgs.image = '[[File:Lua-logo-nolabel.svg|30px|alt=|link=]]'
return mMessageBox.main('mbox', boxArgs)
return m_MessageBox.main('mbox', boxArgs)
end
end


Navigation menu