<?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%2FSquc%2FRoman%2Fdoc</id>
	<title>Module:Sandbox/Squc/Roman/doc - 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%2FSquc%2FRoman%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Squc/Roman/doc&amp;action=history"/>
	<updated>2026-05-17T09:49:00Z</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/Squc/Roman/doc&amp;diff=146216&amp;oldid=prev</id>
		<title>imported&gt;Technical 13: HTML5 standardization</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Squc/Roman/doc&amp;diff=146216&amp;oldid=prev"/>
		<updated>2014-06-17T17:47:42Z</updated>

		<summary type="html">&lt;p&gt;HTML5 standardization&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This module converts [[Roman numerals]] to [[decimal]] form, and rejects invalid ones. It can be used normally, or through another module. This is still under construction, check back in a few days!&lt;br /&gt;
&lt;br /&gt;
This module is intended to run through a template, which is still under construction.&lt;br /&gt;
&lt;br /&gt;
To convert Roman numerals to decimal form, use {{mlx|{{PAGENAME}}|todecimal|MMXIII}}, which outputs {{#invoke:Sandbox/Squc/Roman|todecimal|MMXIII}}. If the Roman numeral is invalid, it will throw an error. If JavaScript is enabled, you can click the &amp;#039;&amp;#039;&amp;#039;Script error&amp;#039;&amp;#039;&amp;#039; link, and the first sentence should show the cause of the error. The final value will still be given in brackets after the error messages.&lt;br /&gt;
&lt;br /&gt;
To force no errors, use {{mlx|{{PAGENAME}}|todecimal|mode=1|MMXIII}}.&lt;br /&gt;
&lt;br /&gt;
To output errors directly into the text, use {{mlx|{{PAGENAME}}|todecimal|mode=2|disp=Decimal number: \n, Errors \e, Time \t|MMXIII}}.&lt;br /&gt;
&lt;br /&gt;
To use this through another module, use something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local roman = require( &amp;quot;Module:Sandbox/Squc/Roman&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
local romannum = &amp;quot;MMXIII&amp;quot;&lt;br /&gt;
local value = roman.todecimald( romannum )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|+ Error demonstration&lt;br /&gt;
! function !! No errors !! Warnings !! Invalid !! Errors&lt;br /&gt;
|-&lt;br /&gt;
! Example !! MMXIII !! XXXXX !! XCC !! ABC&lt;br /&gt;
|-&lt;br /&gt;
|todecimal||{{#invoke:Sandbox/Squc/Roman|todecimal|MMXIII}}||{{#invoke:Sandbox/Squc/Roman|todecimal|XXXXX}}||{{#invoke:Sandbox/Squc/Roman|todecimal|XCC}}||{{#invoke:Sandbox/Squc/Roman|todecimal|ABC}}&lt;br /&gt;
|-&lt;br /&gt;
|todecimal&amp;amp;#124;mode=1||{{#invoke:Sandbox/Squc/Roman|todecimal|mode=1|MMXIII}}||{{#invoke:Sandbox/Squc/Roman|todecimal|mode=1|XXXXX}}||{{#invoke:Sandbox/Squc/Roman|todecimal|mode=1|XCC}}||{{#invoke:Sandbox/Squc/Roman|todecimal|mode=1|ABC}}&lt;br /&gt;
|-&lt;br /&gt;
|todecimal&amp;amp;#124;mode=2&amp;amp;#124;disp=Decimal ...||{{#invoke:Sandbox/Squc/Roman|todecimal|mode=2|disp=Decimal number: \n, Errors \e, Time \t|MMXIII}}||{{#invoke:Sandbox/Squc/Roman|todecimal|mode=2|disp=Decimal number: \n, Errors \e, Time \t|XXXXX}}||{{#invoke:Sandbox/Squc/Roman|todecimal|mode=2|disp=Decimal number: \n, Errors \e, Time \t|XCC}}||{{#invoke:Sandbox/Squc/Roman|todecimal|mode=2|disp=Decimal number: \n, Errors \e, Time \t|ABC}}&lt;br /&gt;
|-&lt;br /&gt;
|todecimald||colspan=4|Intended for use only from other modules. See below for more details.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Errors will be combined, e.g. &amp;quot;XXXXXXCC&amp;quot; gives:&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Sandbox/Squc/Roman|todecimal|mode=2|disp=Decimal number: \n, Errors \e, Time \t|XXXXXXCC}}&lt;br /&gt;
&lt;br /&gt;
or with mode=2&amp;amp;#124;disp=0 (default):&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Sandbox/Squc/Roman|todecimal|mode=2|disp=0|XXXXXXCC}}&lt;br /&gt;
;todecimald&lt;br /&gt;
The function todecimald (direct) is only intended for use in other modules. The output will be in the form (comma-separated list): &amp;lt;code&amp;gt;Decimal, Error message, Time taken&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The decimal will be a number, it will be the converted number if there are no errors or if it is a warning (it is invalid but still can be converted), it will be -1 if there is an error (cannot be converted). The error message is a string and will always exist, it will be &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; if no error is found.&lt;/div&gt;</summary>
		<author><name>imported&gt;Technical 13</name></author>
	</entry>
</feed>