<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.earthmc.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ARuby</id>
	<title>Module:Ruby - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.earthmc.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ARuby"/>
	<link rel="alternate" type="text/html" href="https://wiki.earthmc.net/index.php?title=Module:Ruby&amp;action=history"/>
	<updated>2026-10-28T09:45:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.earthmc.net/index.php?title=Module:Ruby&amp;diff=215796&amp;oldid=prev</id>
		<title>924819012037263471: fix bug</title>
		<link rel="alternate" type="text/html" href="https://wiki.earthmc.net/index.php?title=Module:Ruby&amp;diff=215796&amp;oldid=prev"/>
		<updated>2023-01-04T14:07:56Z</updated>

		<summary type="html">&lt;p&gt;fix bug&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:07, 4 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		rb:wikitext(args.rbtext)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		rb:wikitext(args.rbtext)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	rb:tag(&#039;span&#039;):addClass(&#039;template-ruby-hidden&#039;):wikitext(&#039;（&#039;):done()&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local rt = html:tag(&amp;#039;rt&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local rt = html:tag(&amp;#039;rt&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l67&quot;&gt;Line 67:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		rt:wikitext(args.rttext)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		rt:wikitext(args.rttext)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	html:tag(&#039;span&#039;):addClass(&#039;template-ruby-hidden&#039;):wikitext(&#039;）&#039;):done()&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	return tostring ( html )&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	return tostring ( html )&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>924819012037263471</name></author>
	</entry>
	<entry>
		<id>https://wiki.earthmc.net/index.php?title=Module:Ruby&amp;diff=215795&amp;oldid=prev</id>
		<title>924819012037263471: Created page with &quot;local module = {} local g_frame   function get_arg ( name, plain ) 	if g_frame.args[name] and (mw.text.trim(g_frame.args[name]) ~= &#039;&#039; or plain) then 		return mw.text.trim(g_frame.args[name]) 	end end   function module.ruby ( frame ) 	local parent = frame:getParent() 	if parent and (parent:getTitle() == &quot;Template:Ruby&quot; or parent:getTitle() == &quot;Template:Ruby/Sandbox&quot; or parent:getTitle() == &quot;Template:沙盒&quot;) then 		frame = parent 	end 	g_frame = frame 	local args = { 		cl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.earthmc.net/index.php?title=Module:Ruby&amp;diff=215795&amp;oldid=prev"/>
		<updated>2023-01-04T14:05:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local module = {} local g_frame   function get_arg ( name, plain ) 	if g_frame.args[name] and (mw.text.trim(g_frame.args[name]) ~= &amp;#039;&amp;#039; or plain) then 		return mw.text.trim(g_frame.args[name]) 	end end   function module.ruby ( frame ) 	local parent = frame:getParent() 	if parent and (parent:getTitle() == &amp;quot;Template:Ruby&amp;quot; or parent:getTitle() == &amp;quot;Template:Ruby/Sandbox&amp;quot; or parent:getTitle() == &amp;quot;Template:沙盒&amp;quot;) then 		frame = parent 	end 	g_frame = frame 	local args = { 		cl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local module = {}&lt;br /&gt;
local g_frame&lt;br /&gt;
 &lt;br /&gt;
function get_arg ( name, plain )&lt;br /&gt;
	if g_frame.args[name] and (mw.text.trim(g_frame.args[name]) ~= &amp;#039;&amp;#039; or plain) then&lt;br /&gt;
		return mw.text.trim(g_frame.args[name])&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function module.ruby ( frame )&lt;br /&gt;
	local parent = frame:getParent()&lt;br /&gt;
	if parent and (parent:getTitle() == &amp;quot;Template:Ruby&amp;quot; or parent:getTitle() == &amp;quot;Template:Ruby/Sandbox&amp;quot; or parent:getTitle() == &amp;quot;Template:沙盒&amp;quot;) then&lt;br /&gt;
		frame = parent&lt;br /&gt;
	end&lt;br /&gt;
	g_frame = frame&lt;br /&gt;
	local args = {&lt;br /&gt;
		class = get_arg(&amp;#039;class&amp;#039;),&lt;br /&gt;
		id = get_arg(&amp;#039;id&amp;#039;),&lt;br /&gt;
		style = ( get_arg(&amp;#039;style&amp;#039;) or get_arg(&amp;#039;css&amp;#039;) ),&lt;br /&gt;
		rbclass = get_arg(&amp;#039;rbclass&amp;#039;),&lt;br /&gt;
		rbid = get_arg(&amp;#039;rbid&amp;#039;),&lt;br /&gt;
		rbsize = get_arg(&amp;#039;rbsize&amp;#039;),&lt;br /&gt;
		rtclass = get_arg(&amp;#039;rtclass&amp;#039;),&lt;br /&gt;
		rtid = get_arg(&amp;#039;rtid&amp;#039;),&lt;br /&gt;
		rtsize = get_arg(&amp;#039;rtsize&amp;#039;),&lt;br /&gt;
		rbtext = ( get_arg(1, true) or &amp;#039;{{{1}}}&amp;#039; ),&lt;br /&gt;
		rttext = ( get_arg(2, true) or &amp;#039;{{{2}}}&amp;#039; ),&lt;br /&gt;
		rblang = get_arg(3),&lt;br /&gt;
	}&lt;br /&gt;
	args.rtlang = get_arg(4) or args.rblang&lt;br /&gt;
	return module._ruby ( args, frame )&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function module._ruby ( args, frame )&lt;br /&gt;
	local html = mw.html.create():tag(&amp;#039;ruby&amp;#039;)&lt;br /&gt;
	if args.class then html:addClass( args.class) end&lt;br /&gt;
	if args.id then html:attr(&amp;#039;id&amp;#039;, args.id) end&lt;br /&gt;
	if args.style then html:cssText(args.style) end&lt;br /&gt;
 &lt;br /&gt;
	local rb = html:tag(&amp;#039;rb&amp;#039;):attr(&amp;#039;data-id&amp;#039;, &amp;#039;template-ruby&amp;#039;)&lt;br /&gt;
	if args.rbclass then rb:addClass(args.rbclass) end&lt;br /&gt;
	if args.rbid then rb:attr(&amp;#039;id&amp;#039;, args.rbid) end&lt;br /&gt;
	if args.rbsize then rb:css(&amp;#039;font-size&amp;#039;, args.rbsize) end&lt;br /&gt;
 &lt;br /&gt;
	if args.rblang then&lt;br /&gt;
		if frame then &lt;br /&gt;
			rb:wikitext( frame:expandTemplate{ title = &amp;#039;lang&amp;#039;, args = { args.rblang, args.rbtext } } )&lt;br /&gt;
		else&lt;br /&gt;
			rb:tag(&amp;#039;span&amp;#039;):attr(&amp;#039;lang&amp;#039;, args.rblang):attr(&amp;#039;xml:lang&amp;#039;, args.rblang):wikitext(args.rbtext)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		rb:wikitext(args.rbtext)&lt;br /&gt;
	end&lt;br /&gt;
	rb:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;template-ruby-hidden&amp;#039;):wikitext(&amp;#039;（&amp;#039;):done()&lt;br /&gt;
 &lt;br /&gt;
	local rt = html:tag(&amp;#039;rt&amp;#039;)&lt;br /&gt;
	if args.rtclass then rt:addClass(args.rtclass) end&lt;br /&gt;
	if args.rtid then rt:attr(&amp;#039;id&amp;#039;, args.rtid) end&lt;br /&gt;
	if args.rtsize ~= &amp;#039;&amp;#039; then rt:css(&amp;#039;font-size&amp;#039;, (args.rtsize or &amp;#039;0.75em&amp;#039;) ) end&lt;br /&gt;
	if args.rtlang then&lt;br /&gt;
		if frame then&lt;br /&gt;
			rt:wikitext( frame:expandTemplate{ title = &amp;#039;lang&amp;#039;, args = { args.rtlang, args.rttext } } )&lt;br /&gt;
		else&lt;br /&gt;
			rt:tag(&amp;#039;span&amp;#039;):attr(&amp;#039;lang&amp;#039;, args.rtlang):attr(&amp;#039;xml:lang&amp;#039;, args.rtlang):wikitext(args.rttext)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		rt:wikitext(args.rttext)&lt;br /&gt;
	end&lt;br /&gt;
	html:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;template-ruby-hidden&amp;#039;):wikitext(&amp;#039;）&amp;#039;):done()&lt;br /&gt;
 &lt;br /&gt;
	return tostring ( html )&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return module&lt;/div&gt;</summary>
		<author><name>924819012037263471</name></author>
	</entry>
</feed>