Module:Navbox: Difference between revisions

318 bytes added ,  11 years ago
Manually force in order parsing of key fields
m>Dragons flight
m (Changed protection level of Module:Navbox: Highly visible template or Lua module ([Edit=Block all non-admin users] (indefinite) [Move=Block all non-admin users] (indefinite)))
m>Dragons flight
(Manually force in order parsing of key fields)
Line 392: Line 392:
     -- them false too.
     -- them false too.
     local args = {}
     local args = {}
     for k, v in pairs(frame:getParent().args) do
    local parent_args = frame:getParent().args;
 
    -- Out of order parsing bug.
    local temp;
    temp = parent_args.title;
    temp = parent_args.above;
    for i = 1, 20 do
        temp = parent_args["group" .. tostring(i)];
        temp = parent_args["list" .. tostring(i)];
    end   
    temp = parent_args.below;
   
     for k, v in pairs(parent_args) do
         if v ~= '' then
         if v ~= '' then
             args[k] = v
             args[k] = v
Anonymous user