Template:Roman/doc

This template converts Arabic numerals (that is, 1, 2, 3, etc.) into Roman numerals (I, II, III etc.). It currently works for any whole number between 1 and 4999999.

Usage
Replace  with the number you would like to be converted to Roman numerals. For numbers higher than 4999999 the template outputs "N/A". This can be changed by replacing  with your preferred text.

An overline, representing multiplication by 1000, is used to extend the upper range of the function.

See Roman numerals for further information.

Fraction support
The template can accept parsing decimals, fractions, and arithmetic expressions. This is not enabled by default. To enable this, supply yes, i.e.  or.

Roman numeral output for fractional values uses these symbols:
 * S = 1⁄2
 * Є = $1/6$
 * ƧƧ = $1/12$
 * Ɔ = $1/24$
 * Ƨ = $1/36$
 * Ƨ = $1/48$
 * N = 0
 * Ƨ = $1/72$
 * N = 0
 * N = 0
 * N = 0

Examples
If the number provided is negative, the template will output an error message. If the first parameter provided cannot be interpreted as a number, the template will also output an error message. If no arguments are given, the template produces no output.

TemplateData
{	"params": { "1": {			"type": "number", "label": "Number", "example": "69105", "description": "The number to be converted to Roman numerals. If the parameter passed cannot be interpreted as a numerical value, no output is generated." },		"2": {			"default": "N/A", "label": "Message", "example": "Too big", "description": "Message to display for numbers that are too big to be displayed in Roman numerals. (The largest number supported is 4999999.)", "type": "string" }	},	"description": "Convert numbers to Roman numerals." }