Content deleted Content added
Andy M. Wang (talk | contribs) Create sandbox version of Module:Airport destination list |
Restored revision 794628147 by JJMC89 (talk): Rv clueless trail-and-error poking; sorry for any disruption. |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 7:
function p.table(frame)
local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args
local cols
local cols = isnotempty(args['3rdcoltitle']) and 3 or 2▼
if isnotempty(args['4thcoltitle']) and isnotempty(args['3rdcoltitle']) then
cols = 4
else cols = 2
end
-- compute the maximum cell index
Line 36 ⟶ 41:
cell= row:tag('th')
cell:css('width','10%')
if (isnotempty(args['3rdcolunsortable'])) 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:addClass('unsortable')
end
cell:wikitext(args['4thcoltitle'])
end
-- loop over rows
|