<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://middleseadirectory.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AFormatnum%2Fdoc</id>
	<title>Module:Formatnum/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://middleseadirectory.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AFormatnum%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://middleseadirectory.com/wiki/index.php?title=Module:Formatnum/doc&amp;action=history"/>
	<updated>2026-04-12T17:04:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://middleseadirectory.com/wiki/index.php?title=Module:Formatnum/doc&amp;diff=345&amp;oldid=prev</id>
		<title>Lightfall: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://middleseadirectory.com/wiki/index.php?title=Module:Formatnum/doc&amp;diff=345&amp;oldid=prev"/>
		<updated>2025-12-11T06:08:59Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:08, 11 December 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lightfall</name></author>
	</entry>
	<entry>
		<id>https://middleseadirectory.com/wiki/index.php?title=Module:Formatnum/doc&amp;diff=344&amp;oldid=prev</id>
		<title>w&gt;Warudo: Added the page to :Category:Module documentation pages</title>
		<link rel="alternate" type="text/html" href="https://middleseadirectory.com/wiki/index.php?title=Module:Formatnum/doc&amp;diff=344&amp;oldid=prev"/>
		<updated>2024-08-29T21:29:57Z</updated>

		<summary type="html">&lt;p&gt;Added the page to &lt;a href=&quot;/wiki/index.php?title=Category:Module_documentation_pages&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Module documentation pages (page does not exist)&quot;&gt;Category:Module documentation pages&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This module provides a number formatting function. This function can be used from #invoke or from other Lua modules.&lt;br /&gt;
&lt;br /&gt;
This module is used by [[Module:Complex date]]&lt;br /&gt;
&lt;br /&gt;
== Use from other Lua modules ==&lt;br /&gt;
To use the module from normal wiki pages, no special preparation is needed. If you are using the module from another Lua module, first you need to load it, like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mf = require(&amp;#039;Module:Formatnum&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(The &amp;lt;code&amp;gt;mf&amp;lt;/code&amp;gt; variable stands for &amp;#039;&amp;#039;&amp;#039;M&amp;#039;&amp;#039;&amp;#039;odule &amp;#039;&amp;#039;&amp;#039;F&amp;#039;&amp;#039;&amp;#039;ormatnum; you can choose something more descriptive if you prefer.)&lt;br /&gt;
&lt;br /&gt;
Most functions in the module have a version for Lua and a version for #invoke. It is possible to use the #invoke functions from other Lua modules, but using the Lua functions has the advantage that you do not need to access a Lua [[mw:Extension:Scribunto/Lua reference manual#Frame object|frame object]]. Lua functions are preceded by &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt;, whereas #invoke functions are not.&lt;br /&gt;
&lt;br /&gt;
== main ==&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;#123;{#invoke:Formatnum|main|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;|&amp;#039;&amp;#039;lang=&amp;#039;&amp;#039;|&amp;#039;&amp;#039;prec=&amp;#039;&amp;#039;|&amp;#039;&amp;#039;sep=&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mf.formatNum(x, lang, prec, sep)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Math templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>w&gt;Warudo</name></author>
	</entry>
</feed>