Izvor: Vojna Enciklopedija
{{#ifeq:док |док
|
{{#ifeq:show |show
|
}}{{#if: |
| {{#ifexist:Шаблон:Roman
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}
Ovaj šablon pokreće Lua :
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
{{#if:{{Roman|number |message }}|{{Roman|number |message }}}}{{#if:||{{{2}}}|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}{{#if:||{{{9}}}|}}{{#if:||{{{10}}}|}}{{#if:||{{{11}}}|}}{{#if:||{{{12}}}|}}{{#if:||{{{13}}}|}}{{#if:||{{{14}}}|}}{{#if:||{{{15}}}|}}{{#if:||{{{16}}}|}}{{#if:||{{{17}}}|}}{{#if:||{{{18}}}|}}{{#if:||{{{19}}}|}}
Replace number 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 message with your preferred text.
Examples
Arabic Numerals
Template Call
Римски Numerals
1
{{Римски|1}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
2
{{Римски|2}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
49
{{Римски|49}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
50
{{Римски|50}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
51
{{Римски|51}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
1024
{{Римски|1024}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
4999
{{Римски|4999}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
5000
{{Римски|5000}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
5001
{{Римски|5001}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
1048576
{{Римски|1048576}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
7654321
{{Римски|7654321}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
7654321
{{Римски|7654321|too high}}
Lua грешка in Модул:Roman at line 121: attempt to index field 'ext' (a nil value).
TemplateData
{{#ifeq:док|sandbox||
}}
<templatedata>
{
"params": {
"1": {
"type": "number",
"label": "Број",
"description": "Број који ће бити пребачен у римски број.",
"example": "23",
"required": true,
"suggested": true
},
"2": {
"label": "Порука",
"description": "Порука која ће бити приказана за бројеве који су превелики за приказивање у римској варијанти (највећи могући број је 4999999).",
"type": "string"
}
},
"description": "Овај шаблон се користи за пребацивање бројева у римску варијанту.",
"format": "inline"
}
</templatedata>
See also
Math templates
Functions Numeral systems
| [[Template:{{{2}}}|{{{2}}} ]]
| base 36
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| binary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| dec2hex
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| decimal2Base
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| duodecimal
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| hex2dec
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| hexadecimal
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| octal
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| quaternary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| quinary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| rn
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| roman
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| senary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| ternary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| vigesimal
}}
|
Functions Numeral systems
| [[Template:{{{2}}}|{{{2}}} ]]
| base 36
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| binary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| dec2hex
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| decimal2Base
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| duodecimal
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| hex2dec
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| hexadecimal
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| octal
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| quaternary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| quinary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| rn
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| roman
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| senary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| ternary
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| vigesimal
}}
}}
{{#if:Conversions
|
Conversions
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| bbl to t
}} barrels of oil to tonnes
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| convert
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| convert/scale
}} to convert any linearly related units
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| long ton
}} long hundredweights, quarters and pounds to kilograms; long tons and hundredweights to pounds and metric tonnes
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| convinfobox
}} for use in infoboxes
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| decdeg
}} degrees, minutes and seconds to decimal degrees
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| hms2deg
}} hour angle (in hours, minutes, and seconds) to decimal degrees
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| deg2hms
}} decimal degrees to hour angle (in hours, minutes, and seconds)
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| inflation
}} to calculate inflation of Consumer Price Index-related prices
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| miles-chains
}} miles and chains to kilometres linking "chains"
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| pop density
}} density of a population in an area
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| track gauge
}} railway track gauges
|
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| bbl to t
}} barrels of oil to tonnes
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| convert
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| convert/scale
}} to convert any linearly related units
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| long ton
}} long hundredweights, quarters and pounds to kilograms; long tons and hundredweights to pounds and metric tonnes
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| convinfobox
}} for use in infoboxes
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| decdeg
}} degrees, minutes and seconds to decimal degrees
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| hms2deg
}} hour angle (in hours, minutes, and seconds) to decimal degrees
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| deg2hms
}} decimal degrees to hour angle (in hours, minutes, and seconds)
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| inflation
}} to calculate inflation of Consumer Price Index-related prices
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| miles-chains
}} miles and chains to kilometres linking "chains"
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| pop density
}} density of a population in an area
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| track gauge
}} railway track gauges
}}
{{#if:Notation
|
Notation
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| bigmath
}} for stand-alone formulas, using a bigger font to match PNG-rendered TeX formulas
bra–ket notation
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| frac
}} for creating fractions
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| intmath
}} integral symbols
angular brackets
multiline delimiters (2-5 lines inclusive)
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| math
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| mathcal
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| mvar
}} a short form to refer to individual italicized maths variables in normal text
arbitrary characters/diacritics set above/below one another
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| radic
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| sfrac
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| sqrt
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| tmath
}}
wraps a TeX math expression in <math> tags
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| val
}} to report measurement values, uncertainties and units
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| vec
}} for various overarrows, underarrows, pointing left, right or both ways
|
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| bigmath
}} for stand-alone formulas, using a bigger font to match PNG-rendered TeX formulas
bra–ket notation
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| frac
}} for creating fractions
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| intmath
}} integral symbols
angular brackets
multiline delimiters (2-5 lines inclusive)
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| math
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| mathcal
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| mvar
}} a short form to refer to individual italicized maths variables in normal text
arbitrary characters/diacritics set above/below one another
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| radic
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| sfrac
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| sqrt
}}
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| tmath
}}
wraps a TeX math expression in <math> tags
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| val
}} to report measurement values, uncertainties and units
{{#if:
| [[Template:{{{2}}}|{{{2}}} ]]
| vec
}} for various overarrows, underarrows, pointing left, right or both ways
}}
{{#if:Boxes|{{#if:Tags|}}{{#if:Notices|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}}}{{#if:
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculation results
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculus
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| Infobox mathematics function
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| functions
}}
|{{#if:Boxes|}}{{#if:Boxes||{{#switch:|off|0|0em|0px|0%|0;|0em;|0px;|0%;=|#default=}}}}}}{{#if:
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| metricate
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| undue precision
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| units attention
}}
|}}{{#if:
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculation
}}
|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|{{#if:
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculation results
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculus
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| Infobox mathematics function
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| functions
}}
Boxes|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}}}
Boxes Tags Notices {{{col4header}}} {{{col5header}}} {{{col6header}}} {{{col7header}}} {{{col8header}}} {{{col9header}}} {{{col10header}}} {{{col11header}}} {{{col12header}}} {{{col13header}}} {{{col14header}}} {{{col15header}}} {{{col16header}}} {{{col17header}}} {{{col18header}}} {{{col19header}}} {{{col20header}}}
{{{col1footer}}} {{{col2footer}}} {{{col3footer}}} {{{col4footer}}} {{{col5footer}}} {{{col6footer}}} {{{col7footer}}} {{{col8footer}}} {{{col9footer}}} {{{col10footer}}} {{{col11footer}}} {{{col12footer}}} {{{col13footer}}} {{{col14footer}}} {{{col15footer}}} {{{col16footer}}} {{{col17footer}}} {{{col18footer}}} {{{col19footer}}} {{{col20footer}}}
|
{{#if:Boxes|{{#if:Tags|}}{{#if:Notices|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}}}{{#if:
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculation results
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculus
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| Infobox mathematics function
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| functions
}}
|{{#if:Boxes|}}{{#if:Boxes||{{#switch:|off|0|0em|0px|0%|0;|0em;|0px;|0%;=|#default=}}}}}}{{#if:
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| metricate
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| undue precision
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| units attention
}}
|}}{{#if:
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculation
}}
|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|{{#if:
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculation results
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| calculus
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| Infobox mathematics function
}}
| [[Template:{{{2}}}|{{{2}}} ]]
| functions
}}
Boxes|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}}}
Boxes Tags Notices {{{col4header}}} {{{col5header}}} {{{col6header}}} {{{col7header}}} {{{col8header}}} {{{col9header}}} {{{col10header}}} {{{col11header}}} {{{col12header}}} {{{col13header}}} {{{col14header}}} {{{col15header}}} {{{col16header}}} {{{col17header}}} {{{col18header}}} {{{col19header}}} {{{col20header}}}
{{{col1footer}}} {{{col2footer}}} {{{col3footer}}} {{{col4footer}}} {{{col5footer}}} {{{col6footer}}} {{{col7footer}}} {{{col8footer}}} {{{col9footer}}} {{{col10footer}}} {{{col11footer}}} {{{col12footer}}} {{{col13footer}}} {{{col14footer}}} {{{col15footer}}} {{{col16footer}}} {{{col17footer}}} {{{col18footer}}} {{{col19footer}}} {{{col20footer}}}
}}
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|
{{#if:
|