Module:Navbox: Difference between revisions
per discussion at WT:Lua, this needs to be initialized in a non-global context
(optional list1class to allow templatestyles in Module:Navbox Canada) |
enwiki>Frietjes (per discussion at WT:Lua, this needs to be initialized in a non-global context) |
||
Line 10: | Line 10: | ||
local args | local args | ||
local border | local border | ||
local listnums | local listnums | ||
local ODD_EVEN_MARKER = '\127_ODDEVEN_\127' | local ODD_EVEN_MARKER = '\127_ODDEVEN_\127' | ||
local RESTART_MARKER = '\127_ODDEVEN0_\127' | local RESTART_MARKER = '\127_ODDEVEN0_\127' | ||
Line 385: | Line 385: | ||
function p._navbox(navboxArgs) | function p._navbox(navboxArgs) | ||
args = navboxArgs | args = navboxArgs | ||
listnums = {} | |||
for k, _ in pairs(args) do | for k, _ in pairs(args) do |