Modul:Navbox: Unterschied zwischen den Versionen
don't require the wrapper template
(check is inverted) |
(don't require the wrapper template) |
||
Zeile 386: | Zeile 386: | ||
-- them false too. | -- them false too. | ||
local args = {} | local args = {} | ||
local | local parentTitle = frame:getParent():getTitle() | ||
local frame_args = (parentTitle == 'Template:Navbox' or parentTitle == 'Template:Navbox/sandbox') and frame:getParent().args or frame.args; | |||
-- Out of order parsing bug. | -- Out of order parsing bug. | ||
local temp; | local temp; | ||
temp = | temp = frame_args.title; | ||
temp = | temp = frame_args.above; | ||
for i = 1, 20 do | for i = 1, 20 do | ||
temp = | temp = frame_args["group" .. tostring(i)]; | ||
temp = | temp = frame_args["list" .. tostring(i)]; | ||
end | end | ||
temp = | temp = frame_args.below; | ||
for k, v in pairs( | for k, v in pairs(frame_args) do | ||
if v ~= '' then | if v ~= '' then | ||
args[k] = v | args[k] = v |