Module:Uses TemplateStyles: Difference between revisions

Jump to navigation Jump to search
m
1 revision imported: Blockquote import
enwp>Pppery
(Matching reality rather than 2018 me's wishful thinking)
m (1 revision imported: Blockquote import)
 
(3 intermediate revisions by 2 users not shown)
Line 101: Line 101:
end
end


function p._main(args, cfg)
function p._main(args)
local cfg = getConfig()
if #args == 0 then
local prefixed = mw.title.getCurrentTitle().prefixedText
prefixed = prefixed:gsub("/doc","")
args[1] = prefixed .. "/" .. cfg["default_subpage_name"]
end
local tStyles = mTableTools.compressSparseArray(args)
local tStyles = mTableTools.compressSparseArray(args)
local box = renderBox(tStyles)
local box = renderBox(tStyles)

Navigation menu