<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FRexxS</id>
	<title>Module:Sandbox/RexxS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FRexxS"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/RexxS&amp;action=history"/>
	<updated>2026-05-24T00:15:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/RexxS&amp;diff=146060&amp;oldid=prev</id>
		<title>imported&gt;RexxS: debug</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/RexxS&amp;diff=146060&amp;oldid=prev"/>
		<updated>2020-12-16T23:32:56Z</updated>

		<summary type="html">&lt;p&gt;debug&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This is here as a placeholder.&lt;br /&gt;
-- It is to demonstrate to Google-Code-in students what the module sandbox is.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.cats(frame)&lt;br /&gt;
	local title = frame.args.title or &amp;quot;&amp;quot;&lt;br /&gt;
	local ttlobj = mw.title.new( title, 14 )&lt;br /&gt;
	if ttlobj then&lt;br /&gt;
		local cont = ttlobj:getContent()&lt;br /&gt;
		if cont then return cont:sub( 1, 100000 ) end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.namespaces(frame)&lt;br /&gt;
	local ns = mw.site.namespaces&lt;br /&gt;
	local msg = &amp;quot;&amp;quot;&lt;br /&gt;
	for k, v in pairs(ns) do&lt;br /&gt;
		msg = msg .. k .. &amp;quot; = &amp;quot; .. v.name .. &amp;quot;&amp;lt;br&amp;gt;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return msg&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.roundto = function(frame)&lt;br /&gt;
	local x = tonumber(frame.args.x) or 0&lt;br /&gt;
	local sf = tonumber(frame.args.sf) or 0&lt;br /&gt;
	if x == 0 then return 0 end&lt;br /&gt;
	local s = 1&lt;br /&gt;
	if x &amp;lt; 0 then&lt;br /&gt;
		x = -x&lt;br /&gt;
		s = -1&lt;br /&gt;
	end&lt;br /&gt;
	if sf &amp;lt; 1 then sf = 1 end&lt;br /&gt;
	local p = 10 ^ (math.floor(math.log10(x)) - sf + 1)&lt;br /&gt;
	x = math.floor(x / p + 0.5) * p * s&lt;br /&gt;
	-- if it&amp;#039;s integral, cast to an integer:&lt;br /&gt;
	--if x == math.floor(x) then x = math.floor(x) end&lt;br /&gt;
	return x&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;RexxS</name></author>
	</entry>
</feed>