"ମଡ୍ୟୁଲ:Infobox" ପୃଷ୍ଠାର ସଂସ୍କରଣଗୁଡ଼ିକ ମଧ୍ୟରେ ତଫାତ
Content deleted Content added
No edit summary |
update to use mw.html instead of Module:HtmlBuilder - conversion courtesy of User:WOSlinker |
||
୪ କ ଧାଡ଼ି:
local p = {}
local args = {}
local origArgs
local root
local function union(t1, t2)
-- Returns the union of the values of two tables, as a sequence.
Line ୪୫ ⟶ ୪୩:
if rowArgs.header then
root
elseif rowArgs.data then
local row = root
row
row
if rowArgs.label then
row
end
local dataCell = row
if not rowArgs.label then
dataCell
end
dataCell
end
end
Line ୯୦ ⟶ ୮୮:
root
end
Line ୧୦୦ ⟶ ୯୮:
root
end
Line ୧୧୫ ⟶ ୧୧୩:
root
end
Line ୧୫୩ ⟶ ୧୫୧:
for k, num in ipairs(imagenums) do
local caption = args['caption' .. tostring(num)]
local data =
if caption then
data
end
addRow({
Line ୧୯୪ ⟶ ୧୯୨:
root
title = 'navbar',
args = { args.name, mini = 1 }
Line ୨୦୭ ⟶ ୨୦୫:
local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title'])
if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then
root
end
end
Line ୨୧୪ ⟶ ୨୧୨:
if args.decat ~= 'yes' then
if #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
root
end
if args.child == 'yes' and args.title then
root
end
end
Line ୨୨୬ ⟶ ୨୨୪:
-- if the infobox is used as a 'child' inside another infobox.
if args.child ~= 'yes' then
root =
root
if args.subbox == 'yes' then
root
else
root
end
root
renderTitle()
renderAboveRow()
else
root =
root
end
|