45,640
edits
(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 | local m_List = require('Module:List') | ||
local | local m_TableTools = require('Module:TableTools') | ||
local | 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 = | 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 = | 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 | return m_MessageBox.main('mbox', boxArgs) | ||
end | end | ||