Module:Infobox: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
allow setting ids for rows, headers, labels and data fields, per protected edit request by User:Czarkoff |
update to use mw.html instead of Module:HtmlBuilder - conversion courtesy of User:WOSlinker |
||
लाइन 4:
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 45 ⟶ 43:
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 90 ⟶ 88:
root
end
Line 100 ⟶ 98:
root
end
Line 115 ⟶ 113:
root
end
Line 153 ⟶ 151:
for k, num in ipairs(imagenums) do
local caption = args['caption' .. tostring(num)]
local data =
if caption then
data
end
addRow({
Line 194 ⟶ 192:
root
title = 'navbar',
args = { args.name, mini = 1 }
Line 207 ⟶ 205:
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 214 ⟶ 212:
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 226 ⟶ 224:
-- 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
|