<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.dsp-wiki.com/Module:Tabber/history?feed=atom</id>
	<title>Module:Tabber - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.dsp-wiki.com/Module:Tabber/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://dev.dsp-wiki.com/Module:Tabber/history"/>
	<updated>2026-05-08T17:43:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://dev.dsp-wiki.com/index.php?title=Module:Tabber&amp;diff=14938&amp;oldid=prev</id>
		<title>Antt1995: 1 revision imported: New Files</title>
		<link rel="alternate" type="text/html" href="https://dev.dsp-wiki.com/index.php?title=Module:Tabber&amp;diff=14938&amp;oldid=prev"/>
		<updated>2024-03-24T11:54:37Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: New Files&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;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:54, 24 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Antt1995</name></author>
	</entry>
	<entry>
		<id>https://dev.dsp-wiki.com/index.php?title=Module:Tabber&amp;diff=14934&amp;oldid=prev</id>
		<title>Antt1995: fix table empty check</title>
		<link rel="alternate" type="text/html" href="https://dev.dsp-wiki.com/index.php?title=Module:Tabber&amp;diff=14934&amp;oldid=prev"/>
		<updated>2023-06-01T22:20:20Z</updated>

		<summary type="html">&lt;p&gt;fix table empty check&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;
--- Helper function to get Tabber length&lt;br /&gt;
--- @param table&lt;br /&gt;
--- @return int&lt;br /&gt;
local function getTabberLength( t )&lt;br /&gt;
	local length = 0&lt;br /&gt;
    for k, _ in next, t do&lt;br /&gt;
    	if string.find( k, &amp;#039;label&amp;#039; ) == 1 then&lt;br /&gt;
        	length = length + 1&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return length&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- Render Tabber&lt;br /&gt;
--- @param table data { label{n}, content{n} }&lt;br /&gt;
--- @return string wikitext of Tabber&lt;br /&gt;
function p.renderTabber( data )&lt;br /&gt;
	local tabberContent = {}&lt;br /&gt;
&lt;br /&gt;
	for i = 1, getTabberLength( data ) do&lt;br /&gt;
		local label = data[ &amp;#039;label&amp;#039; .. i ]&lt;br /&gt;
		local content = data[ &amp;#039;content&amp;#039; .. i ]&lt;br /&gt;
&lt;br /&gt;
		if label ~= nil and label ~= &amp;#039;&amp;#039; and content ~= nil and content ~= &amp;#039;&amp;#039; then&lt;br /&gt;
			table.insert( tabberContent, table.concat( { &amp;#039;|-|&amp;#039;, label, &amp;#039;=&amp;#039;, content } ) )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if next( tabberContent ) == nil then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return mw.getCurrentFrame():extensionTag{&lt;br /&gt;
        name = &amp;#039;tabber&amp;#039;, content = table.concat( tabberContent )&lt;br /&gt;
    }&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Antt1995</name></author>
	</entry>
</feed>