<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AAirport_destination_list</id>
	<title>Module:Airport destination list - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AAirport_destination_list"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Airport_destination_list&amp;action=history"/>
	<updated>2026-06-15T23:27:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Airport_destination_list&amp;diff=470947&amp;oldid=prev</id>
		<title>Zoran: Moved page from wikipedia:en:Module:Airport destination list</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Airport_destination_list&amp;diff=470947&amp;oldid=prev"/>
		<updated>2021-07-08T19:16:09Z</updated>

		<summary type="html">&lt;p&gt;Moved page from &lt;a href=&quot;/index.php?title=Wikipedia:en:Module:Airport_destination_list&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Wikipedia:en:Module:Airport destination list (page does not exist)&quot;&gt;wikipedia:en:Module:Airport destination list&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local function isnotempty(s)&lt;br /&gt;
	return s and s:match( '^%s*(.-)%s*$' ) ~= ''&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function p.table(frame)&lt;br /&gt;
	local args = (frame.args[1] ~= nil) and frame.args or frame:getParent().args&lt;br /&gt;
	local cols&lt;br /&gt;
	if isnotempty(args['4thcoltitle']) and isnotempty(args['3rdcoltitle']) then&lt;br /&gt;
		cols = 4&lt;br /&gt;
	elseif isnotempty(args['3rdcoltitle']) then cols = 3&lt;br /&gt;
	else cols = 2&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- compute the maximum cell index&lt;br /&gt;
	local cellcount = 0&lt;br /&gt;
	for k, v in pairs( args ) do&lt;br /&gt;
		if type( k ) == 'number' and isnotempty(v) then&lt;br /&gt;
			cellcount = math.max(cellcount, k)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- compute the number of rows&lt;br /&gt;
	local rows = math.ceil(cellcount / cols)&lt;br /&gt;
&lt;br /&gt;
	-- create the root table&lt;br /&gt;
	local root = mw.html.create('table')&lt;br /&gt;
	root&lt;br /&gt;
		:addClass('wikitable')&lt;br /&gt;
		:addClass('sortable')&lt;br /&gt;
		:css('font-size', '95%')&lt;br /&gt;
&lt;br /&gt;
	-- add the header row&lt;br /&gt;
	local row = root:tag('tr')&lt;br /&gt;
	local cell= row:tag('th')&lt;br /&gt;
	cell:wikitext('Airlines')&lt;br /&gt;
	cell= row:tag('th')&lt;br /&gt;
	cell:addClass('unsortable')&lt;br /&gt;
	cell:wikitext('Destinations')&lt;br /&gt;
	if (isnotempty(args['3rdcoltitle'])) then&lt;br /&gt;
		cell= row:tag('th')&lt;br /&gt;
		cell:css('width','10%')&lt;br /&gt;
		if (isnotempty(args['3rdcolunsortable'])) then&lt;br /&gt;
			cell:addClass('unsortable')&lt;br /&gt;
		end&lt;br /&gt;
		cell:wikitext(args['3rdcoltitle'])&lt;br /&gt;
	end&lt;br /&gt;
	if (isnotempty(args['4thcoltitle'])) then&lt;br /&gt;
		cell= row:tag('th')&lt;br /&gt;
		if (isnotempty(args['4thcolunsortable'])) then&lt;br /&gt;
			cell:addClass('unsortable')&lt;br /&gt;
		end&lt;br /&gt;
		cell:wikitext(args['4thcoltitle'])&lt;br /&gt;
	end&lt;br /&gt;
	-- loop over rows&lt;br /&gt;
	for j=1,rows do&lt;br /&gt;
		row = root:tag('tr')&lt;br /&gt;
		for i=1,cols do&lt;br /&gt;
			cell= row:tag('td')&lt;br /&gt;
			if (i &amp;gt; 2) then cell:css('text-align','center') end&lt;br /&gt;
			cell:wikitext(args[cols*(j - 1) + i] or '')&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- return the root table&lt;br /&gt;
	return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>