Module:Airport destination list/sandbox: Difference between revisions

Content deleted Content added
add 4thcoltitle (?)
Restored revision 794628147 by JJMC89 (talk): Rv clueless trail-and-error poking; sorry for any disruption.
 
(11 intermediate revisions by 4 users not shown)
Line 8:
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
local cols
if isemptyisnotempty(args['4thcoltitle']) and isnotempty(args['3rdcoltitle']) then
cols = 4
elseif isnotempty(args['3rdcoltitle']) andthen 3cols or= 23
else cols = 32
elseif isnotempty(args['3rdcoltitle']) then
cols = 3
else
cols = 2 -- just pick up 2, since 3rdcoltitle does not exist
end
 
Line 43 ⟶ 41:
cell= row:tag('th')
cell:css('width','10%')
elseif if (isnotempty(args['3rdcoltitle3rdcolunsortable'])) then
cell:addClass('unsortable')
end
cell:wikitext(args['3rdcoltitle'])
end
if (isnotempty(args['4thcoltitle'])) then
cell= row:tag('th')
if (isnotempty(args['4thcolunsortable'])) then
cell:css('width','10%')
cell:wikitextaddClass(args['3rdcoltitleunsortable'])
end
cell:wikitext(args['4thcoltitle'])
end
-- loop over rows