Content deleted Content added
more fixes |
put some sane limits |
||
Line 3:
local getArgs
local ul
local args
function p.addItem (mini, full, link, descrip
local l
if url then
Line 14 ⟶ 15:
:addClass('nv-'..full)
:wikitext(l[1] .. link .. l[2])
:tag(
:attr('title', descrip..' this template')
:cssText(args.fontstyle)
:wikitext(
:done()
:wikitext(l[3])
end
function p._navbar(
local show = {true, true, true, false, false, false}
local titleArg = 1
if args.collapsible then
titleArg = 2
Line 41:
titleArg = 'template'
show = {true, false, false, false, false, false}
local index = {t = 2, d = 2, e = 3, h = 4, m = 5, w = 6, talk = 2, edit = 3, hist = 4, move = 5, watch = 6}
for k,v in ipairs(require ('Module:TableTools').compressSparseArray(args)) do
num = index[v]
if num then
show[num] = true
end
end
Line 94 ⟶ 87:
:cssText(args.fontstyle)
:wikitext('[ ')
end
ul = div:tag('ul')
local move = mw.title.new ('Special:Movepage')
if args.brackets then
Line 135 ⟶ 122:
getArgs = require('Module:Arguments').getArgs
end
return p._navbar()
end
|