Lou Montana/Sandbox/Template:Function – User

From Bohemia Interactive Community
Jump to navigation Jump to search
(name seealso parameter)
m (Add Problems and MP fields)
Line 170: Line 170:
<br><br>
<br><br>
----
----
{{User:Lou_Montana/Sandbox/Template:Function|Comments=
{{User:Lou_Montana/Sandbox/Template:Function
____________________________________________________________________________________________


| arma3 |Game name=
| 1
| 2
| 3
| 4
| 5
| 6
| 7
| 8
|game= arma3
|version= 1.00


|1.00|Game version=
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Convert integer to roman numeral (e.g. 42 becomes "XLII"). |DESCRIPTION=
|description= Convert integer to roman numeral (e.g. 42 becomes "XLII").
____________________________________________________________________________________________


| integer [[call]] [[BIS_fnc_romanNumeral]] |SYNTAX=
|s1= integer [[call]] [[BIS_fnc_romanNumeral]]


|p1= integer: [[Number]], [[String]], [[Code]] or [[Config]], same as [[BIS_fnc_parseNumber]] (used in this function) - any '''integer''' between 1 and 3999 |parameter 1=
|p1= integer: [[Number]], [[String]], [[Code]] or [[Config]], same as [[BIS_fnc_parseNumber]] (used in this function) - any '''integer''' between 1 and 3999


| [[String]] - Roman number |RETURNVALUE=
|r1= [[String]] - Roman number
____________________________________________________________________________________________


|x1= <code>1 [[call]] [[BIS_fnc_romanNumeral]]; {{cc|returns "I"}}</code> |EXAMPLE1=
|x1= <code>1 [[call]] [[BIS_fnc_romanNumeral]]; {{cc|returns "I"}}</code>


|x2= <code>3999 [[call]] [[BIS_fnc_romanNumeral]]; {{cc|returns "MMMCMXCIX"}}</code> |EXAMPLE2=
|x2= <code>3999 [[call]] [[BIS_fnc_romanNumeral]]; {{cc|returns "MMMCMXCIX"}}</code>
____________________________________________________________________________________________


| [[BIS_fnc_ordinalNumber]], [[BIS_fnc_phoneticalWord]]|SEEALSO=
|seealso= [[BIS_fnc_ordinalNumber]], [[BIS_fnc_phoneticalWord]]
 
|pr= Pompei - so hot right now!


|pr=This is a problem
|exec= exec
|exec= exec
|mp= This works well in Multiplayer. Have fun!
}}
}}


Line 216: Line 224:
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
<dd class="note">
A Roman numeral is read like this:
A Roman numeral is read like this: with your ''eyes''.<br>
{{{!}} class{{=}}"bikitable"
To learn more: '''{{Wikipedia|Eye}}'''
{{!}}- style{{=}}"font-family: serif; text-align: center"
! style{{=}}"font-family: sans-serif; text-align: left" {{!}} Numeral
{{!}} I {{!}}{{!}} V {{!}}{{!}}  X {{!}}{{!}}  L {{!}}{{!}}  C {{!}}{{!}}  D {{!}}{{!}}    M
{{!}}-
! Value
{{!}} 1 {{!}}{{!}} 5 {{!}}{{!}} 10 {{!}}{{!}} 50 {{!}}{{!}} 100 {{!}}{{!}} 500 {{!}}{{!}} 1000
{{!}}}
 
* It is read from left to right from the biggest numeral to the lowest*, adding up:<br><small>*: not entirely true, see subtractions below</small>
** <tt>DCLVII</tt> {{=}} <tt>D</tt> → <tt>C</tt> → <tt>L</tt> → <tt>V</tt> → <tt>I</tt> → <tt>I</tt> {{=}} 500 + 100 + 50 + 5 + 1 + 1 {{=}} 657
* A subtraction is done by writing '''one''' smaller numeral before a big one:
** 9 could be written <tt>VIIII</tt>, or <tt>IX</tt> {{=}} 1 and 10 {{=}} 10 - 1 {{=}} 9 / but <tt>IIX</tt> for 8 doesn't exist, only <tt>VIII</tt>
* The same numeral can be put together multiple times, but ''usually'' (there is no standard, but the shorter version is usually preferred) up to the point where it can be subtracted from the bigger numeral above the used one (subtraction still done with only '''one''' numeral):
** <tt>IIII</tt> {{=}} <tt>IV</tt>, <tt>CCCC</tt> {{=}} <tt>CD</tt>
 
 
Now let's see if you can translate this one: <tt>MCMLXXXV</tt>. Tip: where it all started ;-) <small><small><tt>MCMLXXXII</tt> for the purists!</small></small><br>
To learn more: '''{{Wikipedia|Roman_numerals|Roman numerals on wikipedia}}'''
</dd>
</dd>
</dl>
</dl>

Revision as of 22:24, 23 December 2019


{{Command/documentation}}

This page is an attempt to refresh the Function template, do not empty it even if this page is listed in commands categories!




Arma 3 logo black.png1.00Logo A2.png1.00
Click on the images for descriptions

Description

Description:
Convert integer to roman numeral (e.g. 42 becomes "XLII").
Multiplayer:
This works well in Multiplayer. Have fun!
Problems:
Pompei - so hot right now!

Syntax

Syntax:
integer call BIS_fnc_romanNumeral
Template:Command-param
Return Value:
String - Roman number

Examples

Template:Command-example Template:Command-example

Additional Information

Execution:
exec
See also:
Template:busaBIS_fnc_ordinalNumberBIS_fnc_phoneticalWord

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Bottom Section

Posted on October 1, 2019 - 01:46 (UTC)
Lou Montana
A Roman numeral is read like this: with your eyes.
To learn more: Eye