<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ethans-workspace.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ASwitcher</id>
	<title>Module:Switcher - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ethans-workspace.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ASwitcher"/>
	<link rel="alternate" type="text/html" href="http://ethans-workspace.com/w/index.php?title=Module:Switcher&amp;action=history"/>
	<updated>2026-05-25T07:35:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://ethans-workspace.com/w/index.php?title=Module:Switcher&amp;diff=3236&amp;oldid=prev</id>
		<title>Ethan: Created page with &quot;local p = {}  function p.main(frame) 	local args = frame:getParent().args 	local root = mw.html.create(&#039;div&#039;):addClass(&#039;switcher-container&#039;) 	local default = (tonumber(args.default) or 0) * 2 - 1 	for i,v in ipairs(args) do 		if i % 2 == 1 then 			local span = root 				:tag(&#039;div&#039;) 					:wikitext(args[i]) 					:tag(&#039;span&#039;) 						:addClass(&#039;switcher-label&#039;) 						:css(&#039;display&#039;, &#039;none&#039;) 						:wikitext(mw.text.trim(args[i + 1] or &#039;&#039;)) 			if i == default then 				span:attr(...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ethans-workspace.com/w/index.php?title=Module:Switcher&amp;diff=3236&amp;oldid=prev"/>
		<updated>2025-12-10T17:46:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.main(frame) 	local args = frame:getParent().args 	local root = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;switcher-container&amp;#039;) 	local default = (tonumber(args.default) or 0) * 2 - 1 	for i,v in ipairs(args) do 		if i % 2 == 1 then 			local span = root 				:tag(&amp;#039;div&amp;#039;) 					:wikitext(args[i]) 					:tag(&amp;#039;span&amp;#039;) 						:addClass(&amp;#039;switcher-label&amp;#039;) 						:css(&amp;#039;display&amp;#039;, &amp;#039;none&amp;#039;) 						:wikitext(mw.text.trim(args[i + 1] or &amp;#039;&amp;#039;)) 			if i == default then 				span:attr(...&amp;quot;&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;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local root = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;switcher-container&amp;#039;)&lt;br /&gt;
	local default = (tonumber(args.default) or 0) * 2 - 1&lt;br /&gt;
	for i,v in ipairs(args) do&lt;br /&gt;
		if i % 2 == 1 then&lt;br /&gt;
			local span = root&lt;br /&gt;
				:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
					:wikitext(args[i])&lt;br /&gt;
					:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
						:addClass(&amp;#039;switcher-label&amp;#039;)&lt;br /&gt;
						:css(&amp;#039;display&amp;#039;, &amp;#039;none&amp;#039;)&lt;br /&gt;
						:wikitext(mw.text.trim(args[i + 1] or &amp;#039;&amp;#039;))&lt;br /&gt;
			if i == default then&lt;br /&gt;
				span:attr(&amp;#039;data-switcher-default&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return root&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Ethan</name></author>
	</entry>
</feed>