<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="lt">
	<id>https://wiki.mcslime.lt/index.php?action=history&amp;feed=atom&amp;title=Module%3AOrdinal</id>
	<title>Module:Ordinal - Versijų istorija</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mcslime.lt/index.php?action=history&amp;feed=atom&amp;title=Module%3AOrdinal"/>
	<link rel="alternate" type="text/html" href="https://wiki.mcslime.lt/index.php?title=Module:Ordinal&amp;action=history"/>
	<updated>2026-04-09T10:47:14Z</updated>
	<subtitle>Šio puslapio versijų istorija projekte</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.mcslime.lt/index.php?title=Module:Ordinal&amp;diff=884&amp;oldid=prev</id>
		<title>M0dii: Naujas puslapis: local p = {} local lang = mw.getContentLanguage() local hc = require(&#039;Module:Paramtest&#039;).has_content  p._ordinals = { 	[0] = &#039;th&#039;, 	&#039;st&#039;, 	&#039;nd&#039;, 	&#039;rd&#039;, 	&#039;th&#039;, 	&#039;th&#039;, --5 	&#039;th&#039;, 	&#039;th&#039;, 	&#039;th&#039;, 	&#039;th&#039;, 	&#039;th&#039;, --10 	 	-- special exceptions 	&#039;th&#039;, --11th 	&#039;th&#039;, --12th 	&#039;th&#039;, --13th }  p._text = { 	[0] = &#039;zeroth&#039;, 	&#039;first&#039;, 	&#039;second&#039;, 	&#039;third&#039;, 	&#039;fourth&#039;, 	&#039;fifth&#039;, 	&#039;sixth&#039;, 	&#039;seventh&#039;, 	&#039;eighth&#039;, 	&#039;ninth&#039;, 	&#039;tenth&#039;, 	&#039;eleventh&#039;, 	&#039;twelfth&#039;, 	&#039;thirteenth&#039;, 	&#039;fourteenth&#039;, 	&#039;fifteen...</title>
		<link rel="alternate" type="text/html" href="https://wiki.mcslime.lt/index.php?title=Module:Ordinal&amp;diff=884&amp;oldid=prev"/>
		<updated>2025-04-11T12:55:42Z</updated>

		<summary type="html">&lt;p&gt;Naujas puslapis: local p = {} local lang = mw.getContentLanguage() local hc = require(&amp;#039;Module:Paramtest&amp;#039;).has_content  p._ordinals = { 	[0] = &amp;#039;th&amp;#039;, 	&amp;#039;st&amp;#039;, 	&amp;#039;nd&amp;#039;, 	&amp;#039;rd&amp;#039;, 	&amp;#039;th&amp;#039;, 	&amp;#039;th&amp;#039;, --5 	&amp;#039;th&amp;#039;, 	&amp;#039;th&amp;#039;, 	&amp;#039;th&amp;#039;, 	&amp;#039;th&amp;#039;, 	&amp;#039;th&amp;#039;, --10 	 	-- special exceptions 	&amp;#039;th&amp;#039;, --11th 	&amp;#039;th&amp;#039;, --12th 	&amp;#039;th&amp;#039;, --13th }  p._text = { 	[0] = &amp;#039;zeroth&amp;#039;, 	&amp;#039;first&amp;#039;, 	&amp;#039;second&amp;#039;, 	&amp;#039;third&amp;#039;, 	&amp;#039;fourth&amp;#039;, 	&amp;#039;fifth&amp;#039;, 	&amp;#039;sixth&amp;#039;, 	&amp;#039;seventh&amp;#039;, 	&amp;#039;eighth&amp;#039;, 	&amp;#039;ninth&amp;#039;, 	&amp;#039;tenth&amp;#039;, 	&amp;#039;eleventh&amp;#039;, 	&amp;#039;twelfth&amp;#039;, 	&amp;#039;thirteenth&amp;#039;, 	&amp;#039;fourteenth&amp;#039;, 	&amp;#039;fifteen...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Naujas puslapis&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local lang = mw.getContentLanguage()&lt;br /&gt;
local hc = require(&amp;#039;Module:Paramtest&amp;#039;).has_content&lt;br /&gt;
&lt;br /&gt;
p._ordinals = {&lt;br /&gt;
	[0] = &amp;#039;th&amp;#039;,&lt;br /&gt;
	&amp;#039;st&amp;#039;,&lt;br /&gt;
	&amp;#039;nd&amp;#039;,&lt;br /&gt;
	&amp;#039;rd&amp;#039;,&lt;br /&gt;
	&amp;#039;th&amp;#039;,&lt;br /&gt;
	&amp;#039;th&amp;#039;, --5&lt;br /&gt;
	&amp;#039;th&amp;#039;,&lt;br /&gt;
	&amp;#039;th&amp;#039;,&lt;br /&gt;
	&amp;#039;th&amp;#039;,&lt;br /&gt;
	&amp;#039;th&amp;#039;,&lt;br /&gt;
	&amp;#039;th&amp;#039;, --10&lt;br /&gt;
	&lt;br /&gt;
	-- special exceptions&lt;br /&gt;
	&amp;#039;th&amp;#039;, --11th&lt;br /&gt;
	&amp;#039;th&amp;#039;, --12th&lt;br /&gt;
	&amp;#039;th&amp;#039;, --13th&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
p._text = {&lt;br /&gt;
	[0] = &amp;#039;zeroth&amp;#039;,&lt;br /&gt;
	&amp;#039;first&amp;#039;,&lt;br /&gt;
	&amp;#039;second&amp;#039;,&lt;br /&gt;
	&amp;#039;third&amp;#039;,&lt;br /&gt;
	&amp;#039;fourth&amp;#039;,&lt;br /&gt;
	&amp;#039;fifth&amp;#039;,&lt;br /&gt;
	&amp;#039;sixth&amp;#039;,&lt;br /&gt;
	&amp;#039;seventh&amp;#039;,&lt;br /&gt;
	&amp;#039;eighth&amp;#039;,&lt;br /&gt;
	&amp;#039;ninth&amp;#039;,&lt;br /&gt;
	&amp;#039;tenth&amp;#039;,&lt;br /&gt;
	&amp;#039;eleventh&amp;#039;,&lt;br /&gt;
	&amp;#039;twelfth&amp;#039;,&lt;br /&gt;
	&amp;#039;thirteenth&amp;#039;,&lt;br /&gt;
	&amp;#039;fourteenth&amp;#039;,&lt;br /&gt;
	&amp;#039;fifteenth&amp;#039;,&lt;br /&gt;
	&amp;#039;sixteenth&amp;#039;,&lt;br /&gt;
	&amp;#039;seventeenth&amp;#039;,&lt;br /&gt;
	&amp;#039;eighteenth&amp;#039;,&lt;br /&gt;
	&amp;#039;nineteenth&amp;#039;,&lt;br /&gt;
	&amp;#039;twentieth&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	return p._main(args[1], {txt = hc(args.text), caps = hc(args.caps)})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(ord, opts)&lt;br /&gt;
	ord = lang:parseFormattedNumber(ord)&lt;br /&gt;
	if not ord then&lt;br /&gt;
		ord = 1&lt;br /&gt;
	end&lt;br /&gt;
	ord = math.floor(ord)&lt;br /&gt;
	if opts.txt then&lt;br /&gt;
		if p._text[ord] then&lt;br /&gt;
			if opts.caps then&lt;br /&gt;
				return lang:ucfirst(p._text[ord])&lt;br /&gt;
			else&lt;br /&gt;
				return p._text[ord]&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		-- if not txt then just do the normal number stuff&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local suff&lt;br /&gt;
	local ord_digit = ord % 10&lt;br /&gt;
	if ord_digit == 1 or ord_digit == 2 or ord_digit == 3 then&lt;br /&gt;
		suff = p._ordinals[ord % 100] or p._ordinals[ord_digit]&lt;br /&gt;
	else&lt;br /&gt;
		suff = p._ordinals[ord_digit]&lt;br /&gt;
	end&lt;br /&gt;
	if not opts.nosup then&lt;br /&gt;
		suff = &amp;#039;&amp;lt;sup&amp;gt;&amp;#039;..suff..&amp;#039;&amp;lt;/sup&amp;gt;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if opts.nonum then&lt;br /&gt;
		return suff&lt;br /&gt;
	end&lt;br /&gt;
	return lang:formatNum(ord) .. suff&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>M0dii</name></author>
	</entry>
</feed>