<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Modul%3AAligned_table</id>
	<title>Modul:Aligned table - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Modul%3AAligned_table"/>
	<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Modul:Aligned_table&amp;action=history"/>
	<updated>2026-04-05T23:37:28Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Verzauberte Welten e.V.</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Modul:Aligned_table&amp;diff=1078&amp;oldid=prev</id>
		<title>Maintenance script: Schützte „Modul:Aligned table“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Modul:Aligned_table&amp;diff=1078&amp;oldid=prev"/>
		<updated>2015-08-09T08:56:19Z</updated>

		<summary type="html">&lt;p&gt;Schützte „&lt;a href=&quot;/Modul:Aligned_table&quot; title=&quot;Modul:Aligned table&quot;&gt;Modul:Aligned table&lt;/a&gt;“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 9. August 2015, 10:56 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Modul:Aligned_table&amp;diff=380&amp;oldid=prev</id>
		<title>mw&gt;Oetterer: Schützte „Modul:Aligned table“: Häufig eingebundenes Modul ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Modul:Aligned_table&amp;diff=380&amp;oldid=prev"/>
		<updated>2014-09-29T09:26:59Z</updated>

		<summary type="html">&lt;p&gt;Schützte „&lt;a href=&quot;/Modul:Aligned_table&quot; title=&quot;Modul:Aligned table&quot;&gt;Modul:Aligned table&lt;/a&gt;“: Häufig eingebundenes Modul ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{aligned table}}&lt;br /&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[3] ~= nil) and frame.args or frame:getParent().args&lt;br /&gt;
	local entries = {}&lt;br /&gt;
	local colclass = {}&lt;br /&gt;
	local colstyle = {}&lt;br /&gt;
	local cols = tonumber(args['cols']) or 2&lt;br /&gt;
&lt;br /&gt;
	-- create the root table&lt;br /&gt;
	local root = mw.html.create('table')&lt;br /&gt;
&lt;br /&gt;
	-- add table style for fullwidth&lt;br /&gt;
	if isnotempty(args['fullwidth']) then&lt;br /&gt;
		root&lt;br /&gt;
			:css('width', '100%')&lt;br /&gt;
			:css('border-collapse', 'collapse')&lt;br /&gt;
			:css('border-spacing', '0px 0px')&lt;br /&gt;
			:css('border', 'none')&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- add table classes&lt;br /&gt;
	if isnotempty(args['class']) then&lt;br /&gt;
		root:addClass(args['class'])&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- add table style&lt;br /&gt;
	if isnotempty(args['style']) then&lt;br /&gt;
		root:cssText(args['style'])&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- build arrays with the column styles and classes&lt;br /&gt;
	if isnotempty(args['leftright']) then&lt;br /&gt;
		colstyle[1] = 'text-align:left;'&lt;br /&gt;
		colstyle[2] = 'text-align:right;'&lt;br /&gt;
	end&lt;br /&gt;
	for i = 1,cols do&lt;br /&gt;
		colclass[ i ] = colclass[ i ] or ''&lt;br /&gt;
		colstyle[ i ] = colstyle[ i ] or ''&lt;br /&gt;
		if isnotempty(args['colstyle']) then&lt;br /&gt;
			colstyle[ i ] = args['colstyle'] .. ';' .. colstyle[ i ]&lt;br /&gt;
		end&lt;br /&gt;
		if isnotempty(args['colalign' .. tostring(i)]) then&lt;br /&gt;
			colstyle[ i ] = 'text-align:' .. args['colalign' .. tostring(i)] .. ';' .. colstyle[ i ]&lt;br /&gt;
		elseif isnotempty(args['col' .. tostring(i) .. 'align']) then&lt;br /&gt;
			colstyle[ i ] = 'text-align:' .. args['col' .. tostring(i) .. 'align'] .. ';' .. colstyle[ i ]&lt;br /&gt;
		elseif isnotempty(args['align' .. tostring(i)]) then&lt;br /&gt;
			colstyle[ i ] = 'text-align:' .. args['align' .. tostring(i)] .. ';' .. colstyle[ i ]&lt;br /&gt;
		end&lt;br /&gt;
		if isnotempty(args['colnowrap' .. tostring(i)]) then&lt;br /&gt;
			colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]&lt;br /&gt;
		elseif isnotempty(args['col' .. tostring(i) .. 'nowrap']) then&lt;br /&gt;
			colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]&lt;br /&gt;
		elseif isnotempty(args['nowrap' .. tostring(i)]) then&lt;br /&gt;
			colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]&lt;br /&gt;
		end&lt;br /&gt;
		if isnotempty(args['colwidth' .. tostring(i)]) then&lt;br /&gt;
			colstyle[ i ] = 'width:' .. args['colwidth' .. tostring(i)] .. ';' .. colstyle[ i ]&lt;br /&gt;
		elseif isnotempty(args['col' .. tostring(i) .. 'width']) then&lt;br /&gt;
			colstyle[ i ] = 'width:' .. args['col' .. tostring(i) .. 'width'] .. ';' .. colstyle[ i ]&lt;br /&gt;
		elseif isnotempty(args['colwidth']) then&lt;br /&gt;
			colstyle[ i ] = 'width:' .. args['colwidth'] .. ';' .. colstyle[ i ]&lt;br /&gt;
		end&lt;br /&gt;
		if isnotempty(args['colstyle' .. tostring(i)]) then&lt;br /&gt;
			colstyle[ i ] = colstyle[ i ] .. args['colstyle' .. tostring(i)]&lt;br /&gt;
		elseif isnotempty(args['col' .. tostring(i) .. 'style']) then&lt;br /&gt;
			colstyle[ i ] = colstyle[ i ] .. args['col' .. tostring(i) .. 'style']&lt;br /&gt;
		elseif isnotempty(args['style' .. tostring(i)]) then&lt;br /&gt;
			colstyle[ i ] = colstyle[ i ] .. args['style' .. tostring(i)]&lt;br /&gt;
		end&lt;br /&gt;
		if isnotempty(args['colclass' .. tostring(i)]) then&lt;br /&gt;
			colclass[ i ] =  args['colclass' .. tostring(i)]&lt;br /&gt;
		elseif isnotempty(args['col' .. tostring(i) .. 'class']) then&lt;br /&gt;
			colclass[ i ] =  args['col' .. tostring(i) .. 'class']&lt;br /&gt;
		elseif isnotempty(args['class' .. tostring(i)]) then&lt;br /&gt;
			colclass[ i ] =  args['class' .. tostring(i)]&lt;br /&gt;
		end&lt;br /&gt;
	end&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' 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;
	-- build the table content&lt;br /&gt;
	if isnotempty(args['title']) then&lt;br /&gt;
		local caption = root:tag('caption')&lt;br /&gt;
		caption:cssText(args['titlestyle'])&lt;br /&gt;
		caption:wikitext(args['title'])&lt;br /&gt;
	end&lt;br /&gt;
	if isnotempty(args['above']) then&lt;br /&gt;
		local row = root:tag('tr')&lt;br /&gt;
		local cell = row:tag('th')&lt;br /&gt;
		cell:attr('colspan', cols)&lt;br /&gt;
		cell:cssText(args['abovestyle'])&lt;br /&gt;
		cell:wikitext(args['above'])&lt;br /&gt;
	end&lt;br /&gt;
	for j=1,rows do&lt;br /&gt;
		-- start a new row&lt;br /&gt;
		local row = root:tag('tr')&lt;br /&gt;
		row:css('vertical-align', 'top')&lt;br /&gt;
		-- loop over the cells in each row&lt;br /&gt;
		for i=1,cols do&lt;br /&gt;
			local cell&lt;br /&gt;
			if isnotempty(args['row' .. tostring(j) .. 'header']) then&lt;br /&gt;
				cell = row:tag('th')&lt;br /&gt;
			else&lt;br /&gt;
				cell = row:tag('td')&lt;br /&gt;
			end&lt;br /&gt;
			if args['class' .. tostring(j) .. '.' .. tostring(i)] then&lt;br /&gt;
				cell:addClass(args['class' .. tostring(j) .. '.' .. tostring(i)])&lt;br /&gt;
			else&lt;br /&gt;
				if args['rowclass' .. tostring(j)] then&lt;br /&gt;
					cell:addClass(args['rowclass' .. tostring(j)])&lt;br /&gt;
				elseif args['row' .. tostring(j) .. 'class'] then&lt;br /&gt;
					cell:addClass(args['row' .. tostring(j) .. 'class'])&lt;br /&gt;
				end&lt;br /&gt;
				if colclass[i] ~= '' then&lt;br /&gt;
					cell:addClass(colclass[i])&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			if args['style' .. tostring(j) .. '.' .. tostring(i)] then&lt;br /&gt;
				cell:cssText(args['style' .. tostring(j) .. '.' .. tostring(i)])&lt;br /&gt;
			else&lt;br /&gt;
				if args['rowstyle' .. tostring(j)] then&lt;br /&gt;
					cell:cssText(args['rowstyle' .. tostring(j)])&lt;br /&gt;
				elseif args['row' .. tostring(j) .. 'style'] then&lt;br /&gt;
					cell:cssText(args['row' .. tostring(j) .. 'style'])&lt;br /&gt;
				end&lt;br /&gt;
				if isnotempty(colstyle[i]) then&lt;br /&gt;
					cell:cssText(colstyle[i])&lt;br /&gt;
				end&lt;br /&gt;
			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>mw&gt;Oetterer</name></author>
	</entry>
</feed>