Module:Airport destination list/sandbox: Difference between revisions

Content deleted Content added
width 10% attach only to 3rd col
Changes
Line 8:
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
local cols
if isnotempty(args['4thcoltitle']) and isnotempty(args['3rdcoltitlerefcoltitle']) then
cols = 43
elseif isnotempty(args['3rdcoltitle']) then cols = 3
else cols = 2
end
 
Line 38 ⟶ 36:
cell:addClass('unsortable')
cell:wikitext('Destinations')
if (isnotempty(args['3rdcoltitlerefcoltitle'])) then
cell= row:tag('th')
cell:css('width','10%')
cell:wikitextaddClass(args['3rdcoltitleunsortable'])
cell:wikitext(args['4thcoltitlerefcoltitle'])
end
if (isnotempty(args['4thcoltitle'])) then
cell= row:tag('th')
cell:wikitext(args['4thcoltitle'])
end
-- loop over rows