<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="id">
	<id>https://wiki.javasatu.com/index.php?action=history&amp;feed=atom&amp;title=Modul%3AOrdinal</id>
	<title>Modul:Ordinal - Riwayat revisi</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.javasatu.com/index.php?action=history&amp;feed=atom&amp;title=Modul%3AOrdinal"/>
	<link rel="alternate" type="text/html" href="https://wiki.javasatu.com/index.php?title=Modul:Ordinal&amp;action=history"/>
	<updated>2026-04-07T00:55:20Z</updated>
	<subtitle>Riwayat revisi halaman ini di wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.javasatu.com/index.php?title=Modul:Ordinal&amp;diff=1342&amp;oldid=prev</id>
		<title>Adminjavasatu: ←Membuat halaman berisi '--     This template will add the appropriate ordinal prefix to a given integer.   Please do not modify this code without applying the changes first at Module:Ordinal/sandbox and testing at Module:Ordinal/sandbox/testcases and Module talk:Ordinal/sandbox/testcases.     local p = {}  --[[ This function converts an integer value into a numeral followed by ordinal indicator. The output string might contain HTML tags.   Usage: {{#invoke:Ordinal|ordinal|1=}} {{#in...'</title>
		<link rel="alternate" type="text/html" href="https://wiki.javasatu.com/index.php?title=Modul:Ordinal&amp;diff=1342&amp;oldid=prev"/>
		<updated>2023-09-20T14:15:46Z</updated>

		<summary type="html">&lt;p&gt;←Membuat halaman berisi &amp;#039;--[[     This template will add the appropriate ordinal prefix to a given integer.   Please do not modify this code without applying the changes first at Module:Ordinal/sandbox and testing at Module:Ordinal/sandbox/testcases and Module talk:Ordinal/sandbox/testcases.   ]]  local p = {}  --[[ This function converts an integer value into a numeral followed by ordinal indicator. The output string might contain HTML tags.   Usage: {{#invoke:Ordinal|ordinal|1=}} {{#in...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Halaman baru&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[  &lt;br /&gt;
 &lt;br /&gt;
This template will add the appropriate ordinal prefix to a given integer.&lt;br /&gt;
 &lt;br /&gt;
Please do not modify this code without applying the changes first at&lt;br /&gt;
Module:Ordinal/sandbox and testing at Module:Ordinal/sandbox/testcases and&lt;br /&gt;
Module talk:Ordinal/sandbox/testcases.&lt;br /&gt;
 &lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
This function converts an integer value into a numeral followed by ordinal indicator.&lt;br /&gt;
The output string might contain HTML tags.&lt;br /&gt;
 &lt;br /&gt;
Usage:&lt;br /&gt;
{{#invoke:Ordinal|ordinal|1=}}&lt;br /&gt;
{{#invoke:Ordinal|ordinal}} - uses the caller's parameters&lt;br /&gt;
 &lt;br /&gt;
Parameters&lt;br /&gt;
    1: Any number or string.&lt;br /&gt;
]]&lt;br /&gt;
function p.ordinal(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
    if args[1] == nil then&lt;br /&gt;
        args = frame:getParent().args&lt;br /&gt;
    end&lt;br /&gt;
    if args[1] == nil then&lt;br /&gt;
    	args[1] = &amp;quot;{{{1}}}&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    return p._ordinal(args[1])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._ordinal(n)&lt;br /&gt;
	local x = tonumber(mw.ustring.match(n, &amp;quot;(%d*)%W*$&amp;quot;))&lt;br /&gt;
	local prefix = &amp;quot;ke-&amp;quot;&lt;br /&gt;
	return prefix .. n&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Adminjavasatu</name></author>
	</entry>
</feed>