편집 요약 없음
편집 요약 없음 |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
-- | -- | ||
-- This module will implement {{Navbox}} | -- This module will implement {{Navbox}} | ||
-- | -- | ||
273번째 줄: | 272번째 줄: | ||
function getTrackingCategories() | function getTrackingCategories() | ||
local cats = {} | local cats = {} | ||
if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end | if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end | ||
if hasCustomListSpacing() then table.insert(cats, 'Navigational boxes with custom list spacing') end | if hasCustomListSpacing() then table.insert(cats, 'Navigational boxes with custom list spacing') end | ||
if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colours') end | if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colours') end | ||
return cats | return cats | ||
end | end | ||
392번째 줄: | 386번째 줄: | ||
return tostring(res) | return tostring(res) | ||
end | end | ||
function p.navbox(frame) | function p.navbox(frame) | ||
-- ParserFunctions considers the empty string to be false, so to preserve the previous | -- ParserFunctions considers the empty string to be false, so to preserve the previous | ||
456번째 줄: | 396번째 줄: | ||
-- Out of order parsing bug. | -- Out of order parsing bug. | ||
local temp; | local temp; | ||
temp = parent_args.title | temp = parent_args.title; | ||
temp = parent_args.above | temp = parent_args.above; | ||
for i = 1, 20 do | for i = 1, 20 do | ||
temp = parent_args["group | temp = parent_args["group" .. tostring(i)]; | ||
temp = parent_args["list | temp = parent_args["list" .. tostring(i)]; | ||
end | end | ||
temp = parent_args.below | temp = parent_args.below; | ||
for k, v in pairs(parent_args) do | for k, v in pairs(parent_args) do | ||
if v ~= '' then | if v ~= '' then | ||
args[ | args[k] = v | ||
end | end | ||
end | end |