<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.2006scape.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AFloorNumber</id>
	<title>Module:FloorNumber - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.2006scape.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AFloorNumber"/>
	<link rel="alternate" type="text/html" href="https://wiki.2006scape.org/index.php?title=Module:FloorNumber&amp;action=history"/>
	<updated>2026-04-22T13:32:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://wiki.2006scape.org/index.php?title=Module:FloorNumber&amp;diff=374&amp;oldid=prev</id>
		<title>Halogod35: floor numbers for US/UK people</title>
		<link rel="alternate" type="text/html" href="https://wiki.2006scape.org/index.php?title=Module:FloorNumber&amp;diff=374&amp;oldid=prev"/>
		<updated>2023-02-02T20:50:23Z</updated>

		<summary type="html">&lt;p&gt;floor numbers for US/UK people&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local ordinal = require(&amp;#039;Module:Ordinal&amp;#039;)._main&lt;br /&gt;
local yn = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	return p._main(frame:getParent().args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local nohelp = yn(args.nohelp)&lt;br /&gt;
	local caps = yn(args.caps)&lt;br /&gt;
	local flr = tonumber(args.uk)&lt;br /&gt;
	-- prevent people from using anything but the main syntax for consistency across the wiki. Big red errors should make stuff clear.&lt;br /&gt;
	assert(flr, &amp;quot;Missing parameter `uk`&amp;quot;)&lt;br /&gt;
	-- prevent unnamed parameters, which indicates people wanting to use deprecated |nohelp}}, |caps}}, or {{floornumber|1}} syntax.&lt;br /&gt;
	assert(args[1] == nil, &amp;quot;Unrecognised parameter&amp;quot;)&lt;br /&gt;
	local flr_us = flr+1&lt;br /&gt;
	local ord_gb = ordinal(flr, {nosup=true, nonum=true})&lt;br /&gt;
	local ord_us = ordinal(flr_us, {nosup=true, nonum=true})&lt;br /&gt;
			&lt;br /&gt;
	&lt;br /&gt;
	local ret = mw.html.create(&amp;#039;span&amp;#039;)&lt;br /&gt;
	ret:addClass(&amp;#039;floornumber&amp;#039;)&lt;br /&gt;
	local spn_gb = ret:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
	spn_gb	:addClass(&amp;#039;floornumber-gb&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	if flr == 0 then&lt;br /&gt;
		if caps then&lt;br /&gt;
			spn_gb:wikitext(&amp;#039;Ground&amp;#039;)&lt;br /&gt;
		else&lt;br /&gt;
			spn_gb:wikitext(&amp;#039;ground&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		spn_gb:wikitext(flr)&lt;br /&gt;
				:tag(&amp;#039;sup&amp;#039;)&lt;br /&gt;
					:addClass(&amp;#039;floornumber-ordinal-suffix&amp;#039;)&lt;br /&gt;
					:wikitext(ord_gb)&lt;br /&gt;
				:done()&lt;br /&gt;
	end&lt;br /&gt;
	spn_gb:wikitext(&amp;#039;&amp;amp;nbsp;floor&amp;#039;)&lt;br /&gt;
	if not nohelp then&lt;br /&gt;
		spn_gb:tag(&amp;#039;sup&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;floornumber-help noexcerpt&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;&amp;amp;#91;&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;fact-text&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;floor-convention&amp;#039;)&lt;br /&gt;
				:attr(&amp;#039;title&amp;#039;, &amp;#039;British convention; floor &amp;#039;..flr_us..&amp;#039; in the US&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;UK&amp;#039;)&lt;br /&gt;
			:done()&lt;br /&gt;
			:wikitext(&amp;#039;&amp;amp;#93;&amp;#039;)&lt;br /&gt;
	end	&lt;br /&gt;
	&lt;br /&gt;
	local spn_us = ret:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
	spn_us	:addClass(&amp;#039;floornumber-us noexcerpt&amp;#039;)&lt;br /&gt;
			:wikitext(flr_us)&lt;br /&gt;
			:tag(&amp;#039;sup&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;floornumber-ordinal-suffix&amp;#039;)&lt;br /&gt;
				:wikitext(ord_us)&lt;br /&gt;
			:done()&lt;br /&gt;
			:wikitext(&amp;#039;&amp;amp;nbsp;floor&amp;#039;)&lt;br /&gt;
		:done()&lt;br /&gt;
	&lt;br /&gt;
	if not nohelp then&lt;br /&gt;
		local flr_gb&lt;br /&gt;
		if flr == 0 then&lt;br /&gt;
			flr_gb = &amp;#039;ground floor&amp;#039;&lt;br /&gt;
		else&lt;br /&gt;
			flr_gb = &amp;#039;floor &amp;#039;..flr&lt;br /&gt;
		end&lt;br /&gt;
		spn_us:tag(&amp;#039;sup&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;floornumber-help noexcerpt&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;&amp;amp;#91;&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;fact-text&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;floor-convention&amp;#039;)&lt;br /&gt;
				:attr(&amp;#039;title&amp;#039;, &amp;#039;US convention; &amp;#039;..flr_gb..&amp;#039; in the UK&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;US&amp;#039;)&lt;br /&gt;
			:done()&lt;br /&gt;
			:wikitext(&amp;#039;&amp;amp;#93;&amp;#039;)&lt;br /&gt;
	end	&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Halogod35</name></author>
	</entry>
</feed>