<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.roatpkz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASynced_switch</id>
	<title>Module:Synced switch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.roatpkz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASynced_switch"/>
	<link rel="alternate" type="text/html" href="https://wiki.roatpkz.com/index.php?title=Module:Synced_switch&amp;action=history"/>
	<updated>2026-04-28T11:22:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.roatpkz.com/index.php?title=Module:Synced_switch&amp;diff=2586&amp;oldid=prev</id>
		<title>Hefner: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.roatpkz.com/index.php?title=Module:Synced_switch&amp;diff=2586&amp;oldid=prev"/>
		<updated>2024-03-30T22:16:41Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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 22:16, 30 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>Hefner</name></author>
	</entry>
	<entry>
		<id>https://wiki.roatpkz.com/index.php?title=Module:Synced_switch&amp;diff=2585&amp;oldid=prev</id>
		<title>Bosses&gt;Gaz Lloyd: css covers it</title>
		<link rel="alternate" type="text/html" href="https://wiki.roatpkz.com/index.php?title=Module:Synced_switch&amp;diff=2585&amp;oldid=prev"/>
		<updated>2019-05-29T17:36:53Z</updated>

		<summary type="html">&lt;p&gt;css covers it&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;
local hc = require(&amp;#039;Module:Paramtest&amp;#039;).has_content&lt;br /&gt;
&lt;br /&gt;
p._sortFunc = function(a,b)&lt;br /&gt;
	return a.id &amp;lt; b.id&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.main = function(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local parsed = { {id=0, content=args.default or &amp;#039;&amp;#039;, showing = true} }&lt;br /&gt;
	&lt;br /&gt;
	for k,v in pairs(args) do&lt;br /&gt;
		local s = tostring(k):match(&amp;#039;version(%d+)&amp;#039;)&lt;br /&gt;
		if hc(v) and s then&lt;br /&gt;
			local obj = {id=tonumber(s), text=args[&amp;#039;text&amp;#039;..s], content=v}&lt;br /&gt;
			if obj.id == 1 then&lt;br /&gt;
				obj.showing = true&lt;br /&gt;
				parsed[1].showing = false&lt;br /&gt;
			end&lt;br /&gt;
			table.insert(parsed, obj)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.sort(parsed, p._sortFunc)&lt;br /&gt;
	&lt;br /&gt;
	return p._main(parsed)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._main = function(args)&lt;br /&gt;
	local outer_div = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
	outer_div:addClass(&amp;#039;rsw-synced-switch&amp;#039;)&lt;br /&gt;
	for i,v in ipairs(args) do&lt;br /&gt;
		local inner_div = outer_div:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
		inner_div	:addClass(&amp;#039;rsw-synced-switch-item&amp;#039;)&lt;br /&gt;
					:attr({&lt;br /&gt;
						[&amp;#039;data-item&amp;#039;] = v.id,&lt;br /&gt;
						[&amp;#039;data-item-text&amp;#039;] = v.text&lt;br /&gt;
					})&lt;br /&gt;
					:wikitext(v.content)&lt;br /&gt;
		if v.showing then&lt;br /&gt;
			inner_div:addClass(&amp;#039;showing&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return outer_div&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Bosses&gt;Gaz Lloyd</name></author>
	</entry>
</feed>