الفرق بين النسختين بتاع: «وحدة:Airport destination list»

تم حذف المحتوى تمت إضافة المحتوى
ص Protected Module:Airport destination list: To match Template:Airport destination list ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))
imported>Andy M. Wang
allow param 4thcoltitle for fourth column when specified (per edit request(s))
سطر 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
local cols =elseif isnotempty(args['3rdcoltitle']) andthen 3cols or= 23
else cols = 2
end
 
-- compute the maximum cell index
السطر 37 ⟵ 42:
cell:css('width','10%')
cell:wikitext(args['3rdcoltitle'])
end
if (isnotempty(args['4thcoltitle'])) then
cell= row:tag('th')
cell:wikitext(args['4thcoltitle'])
end
-- loop over rows