Anonymous user
Module:Navbox with collapsible groups: Difference between revisions
testing
(testing) |
(testing) |
||
Line 22:
end
function p._navbox(
local tracking = ''
Line 39:
['imageleft']=true,['imageleftstyle']=true
}
for k,v in pairs(
if k and type(k) == 'string' then
if passthrough[k] then
Line 46:
or k:match('^content[0-9][0-9]*$') ) then
local n = mw.ustring.gsub(k, '^[a-z]*([0-9]*)$', '%1')
if (targs['list' .. n] == nil and
and
targs['list' .. n] = concatstrings(
end
elseif (k:match('^group[0-9][0-9]*$')
Line 56:
if targs['list' .. n] == nil then
local titlestyle = concatstyles(
{
local liststyle = concatstyles(
{
local title = concatstrings(
{
local list = concatstrings(
{
local state = (
and 'uncollapsed' or
local sargs = {'child', navbar = 'plain', state = state,
basestyle =
title = title, titlestyle = titlestyle,
list1 = list, liststyle = liststyle,
listclass =
image =
imageleft =
listpadding =
targs['list' .. n] =
tracking = tracking .. '<hr /><center><b>k = ' .. k .. ', n = ' .. n .. '</b></center><hr />\n'
for ks,vs in pairs(sargs) do
Line 92:
-- child or subgroup
if targs['border'] == nil then targs['border'] =
-- debug
Line 108:
getArgs = require('Module:Arguments').getArgs
end
local
-- Read the arguments in the order they'll be output in, to make references number in the right order.
local _
_ =
_ =
for i = 1, 20 do
_ =
_ =
end
_ =
return p._navbox(
end
|