Lou Montana/Sandbox/Template:Function – User

From Bohemia Interactive Community
Jump to navigation Jump to search
(name seealso parameter)
(Page cleanup)
Tag: Replaced
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
To be removed; kept for Function history - [[User:Lou Montana|Lou Montana]] ([[User talk:Lou Montana|talk]]) 02:24, 26 December 2019 (CET)
-->__NOTOC__<!--
-->__NOEDITSECTION__<!--
-->{{DISPLAYTITLE:{{PAGENAMEE}}}}<!--
-->{{DEFAULTSORT:{{uc:{{PAGENAME}}}}}}<!--
-->[[Category:{{Name|{{{game|{{{game1|{{{1}}}}}}}}}}}: New Functions List|{{uc:{{PAGENAME}}}}]]<!-- Automatically includes page in "New Scripting Commands List" category
-->{{#ifeq: {{Name|{{{game|{{{game1|{{{1}}}}}}}}}}} | {{Name|arma3dev}} | [[Category:Introduced with Arma 3 Development Branch]] | }}<!-- Includes every arma 3 dev function in one category as well as reg version subcategories


// TODO: split BIS_fnc_ / BIN_fnc_ ?
[[Category: Sandbox]]
[[Category:Functions|{{uc:romanNumeral}}]]
[[Category:{{Name|{{{game|{{{game1|{{{1}}}}}}}}}}}: Functions|{{uc:romanNumeral}}]]
--><div class="_description fnc"><!--
 
-->{{GVI|{{{game|{{{game1|{{{1}}}}}}}}}|{{{version|{{{version1|{{{2|1.00}}}}}}}}}|categorize}}<!--
-->{{#if:{{{game2|}}}|{{GVI|{{{game2}}}|{{{version2|1.00}}}|categorize}}|}}<!--
-->{{#if:{{{game3|}}}|{{GVI|{{{game3}}}|{{{version3|1.00}}}|categorize}}|}}<!--
-->{{#if:{{{game4|}}}|{{GVI|{{{game4}}}|{{{version4|1.00}}}|categorize}}|}}<!--
-->{{#if:{{{game5|}}}|{{GVI|{{{game5}}}|{{{version5|1.00}}}|categorize}}|}}<!--
 
-->{{#if:{{{arg|{{{eff|}}}}}}|<span style="margin-left: 1em">|}}<!-- space between game versions and arguments/effects
 
-->{{#if:{{{arg|}}}|{{EffArg|fnc|arg|{{{arg}}}|categorize}}|}}<!--
-->{{#if:{{{eff|}}}|{{EffArg|fnc|eff|{{{eff}}}|categorize}}|}}<!--
 
-->{{#if:{{{arg|{{{eff|}}}}}}|</span>|}}<!--
 
--><div style="font-size: 0.9em"><!--
-->[[:Category:{{Name|{{{game|{{{game1|{{{1}}}}}}}}}}}: New Scripting Commands List|Introduced in '''{{Name|{{{game|{{{game1|{{{1}}}}}}}}}}}''']] <!--
-->[[:Category:Introduced with {{Name|{{{game|{{{game1|{{{1}}}}}}}}}}} version {{{version|{{{2|1.00}}}}}}|version '''{{{version|{{{2|1.00}}}}}}''']]<!--
--></div>
 
<div style="color:grey; font-size:0.75em">Click on the images for descriptions</div>
 
<h3>Description</h3>
<dl>
<dt>Description:</dt>
<dd>{{{description|{{{3|}}}}}}</dd>
</dl><!--
 
-->{{#if:{{{mp|}}}|
<dt>Multiplayer:</dt>
<dd>{{{mp}}}</dd>|}}<!--
 
-->{{#if:{{{pr|}}}|
<dt>Problems:</dt>
<dd>{{{pr}}}</dd>|}}<!--
 
--><h3>Syntax</h3>
<dl>
<dt>Syntax:</dt>
<dd>{{{s1|{{{4|'''{{PAGENAMEE}}'''}}}}}}</dd><!--
 
-->{{#if:{{{p1|}}}|
{{Command-param|{{{p1}}}|Parameters:}}
{{#if:{{{p2|}}}| {{Command-param| {{{p2}}}}}
{{#if:{{{p3|}}}| {{Command-param| {{{p3}}}}}
{{#if:{{{p4|}}}| {{Command-param| {{{p4}}}}}
{{#if:{{{p5|}}}| {{Command-param| {{{p5}}}}}
{{#if:{{{p6|}}}| {{Command-param| {{{p6}}}}}
{{#if:{{{p7|}}}| {{Command-param| {{{p7}}}}}
{{#if:{{{p8|}}}| {{Command-param| {{{p8}}}}}
{{#if:{{{p9|}}}| {{Command-param| {{{p9}}}}}
{{#if:{{{p10|}}}|{{Command-param|{{{p10}}}}}
{{#if:{{{p11|}}}|{{Command-param|{{{p11}}}}}
{{#if:{{{p12|}}}|{{Command-param|{{{p12}}}}}
{{#if:{{{p13|}}}|{{Command-param|{{{p13}}}}}
{{#if:{{{p14|}}}|{{Command-param|{{{p14}}}}}
{{#if:{{{p15|}}}|{{Command-param|{{{p15}}}}}
{{#if:{{{p16|}}}|{{Command-param|{{{p16}}}}}
{{#if:{{{p17|}}}|{{Command-param|{{{p17}}}}}
{{#if:{{{p18|}}}|{{Command-param|{{{p18}}}}}
{{#if:{{{p19|}}}|{{Command-param|{{{p19}}}}}
{{#if:{{{p20|}}}|{{Command-param|{{{p20}}}}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}<!--
 
--><dt>Return Value:</dt>
<dd>{{{r1|{{{5|[[Nothing]]}}}}}}</dd>
</dl><!--
 
-->{{#if:{{{s2|}}}|
<h3>Alternative Syntax</h3>
<dl>
<dt>Syntax:</dt>
<dd>{{{s2}}}</dd>|}}<!--
 
-->{{#if:{{{p21|}}}|
{{Command-param|{{{p21}}}|Parameters:}}
{{#if:{{{p22|}}}|{{Command-param|{{{p22}}}}}
{{#if:{{{p23|}}}|{{Command-param|{{{p23}}}}}
{{#if:{{{p24|}}}|{{Command-param|{{{p24}}}}}
{{#if:{{{p25|}}}|{{Command-param|{{{p25}}}}}
{{#if:{{{p26|}}}|{{Command-param|{{{p26}}}}}
{{#if:{{{p27|}}}|{{Command-param|{{{p27}}}}}
{{#if:{{{p28|}}}|{{Command-param|{{{p28}}}}}
{{#if:{{{p29|}}}|{{Command-param|{{{p29}}}}}
{{#if:{{{p30|}}}|{{Command-param|{{{p30}}}}}
{{#if:{{{p31|}}}|{{Command-param|{{{p31}}}}}
{{#if:{{{p32|}}}|{{Command-param|{{{p32}}}}}
{{#if:{{{p33|}}}|{{Command-param|{{{p33}}}}}
{{#if:{{{p34|}}}|{{Command-param|{{{p34}}}}}
{{#if:{{{p35|}}}|{{Command-param|{{{p35}}}}}
{{#if:{{{p36|}}}|{{Command-param|{{{p36}}}}}
{{#if:{{{p37|}}}|{{Command-param|{{{p37}}}}}
{{#if:{{{p38|}}}|{{Command-param|{{{p38}}}}}
{{#if:{{{p39|}}}|{{Command-param|{{{p39}}}}}
{{#if:{{{p40|}}}|{{Command-param|{{{p40}}}}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}<!--
 
-->{{#if:{{{s2|}}}|
<dt>Return Value:</dt>
<dd>{{{r2|[[Nothing]]}}}</dd>
</dl>|}}<!--
 
-->
<h3>Examples</h3>
<dl><!--
 
-->{{#switch:{{{x1|}}}
|
|example
|(example)
|<code></code>
|<code>
</code>
|<code>example</code>
|<code>(example)</code>
|<pre></pre>
|<pre>
</pre>
|<pre>example</pre>
|<pre>(example)</pre>={{Command-example|{{Example needed}}|Example 1:}}
|#default=      {{Command-example|{{{x1}}}|Example 1:}}
{{#if:{{{x2|}}}|{{Command-example|{{{x2}}}|Example 2:}}
{{#if:{{{x3|}}}|{{Command-example|{{{x3}}}|Example 3:}}
{{#if:{{{x4|}}}|{{Command-example|{{{x4}}}|Example 4:}}
{{#if:{{{x5|}}}|{{Command-example|{{{x5}}}|Example 5:}}
{{#if:{{{x6|}}}|{{Command-example|{{{x6}}}|Example 6:}}
{{#if:{{{x7|}}}|{{Command-example|{{{x7}}}|Example 7:}}
{{#if:{{{x8|}}}|{{Command-example|{{{x8}}}|Example 8:}}
{{#if:{{{x9|}}}|{{Command-example|{{{x9}}}|Example 9:}}
{{#if:{{{x10|}}}|{{Command-example|{{{x10}}}|Example 10:}}|}}|}}|}}|}}|}}|}}|}}|}}|}} }}<!--
 
--></dl>
<h3>Additional Information</h3>
<dl>
<dt>Execution:</dt>
<dd>{{#ifeq:{{{exec|call}}}|call|[[call]]|'''[[{{{exec}}}]]'''}}</dd>
<dt>See also:</dt>
<dd class="seealso">{{busa}}{{#if:{{{seealso|{{{6|}}}}}}|{{#replace:{{#replace:{{{seealso|{{{6}}}}}}|], [|][}}|],[|][}}|{{See also needed}}}}</dd><!--
 
--></dl>
 
<h3>Notes</h3>
<dd style{{=}}"font-size: smaller; text-align: center">
{{Messagebox
| '''Only post proven facts here.'''<!--
--> Report bugs on [http://feedback.arma3.com/ the feedback tracker].<!--
--> Use the [[{{NAMESPACE}} talk:{{PAGENAME}}|Talk page]] or the [https://forums.bohemia.net/ Forums] for discussions.
<div class{{=}}"plainlinks" style{{=}}"margin-top: -0.25em">
[{{canonicalurl:{{FULLPAGENAMEE}}|action=edit&section{{=}}new&preload{{=}}Template:Add_new_note&preloadtitle{{=}}&summary{{=}}Added+new+note&nosummary{{=}}true}} Add New Note] <nowiki>|</nowiki> [[How To#Add a new note|How To]]
</div>
| i
| #E5EEF8
}}
</dd>
</div></includeonly><noinclude>
 
 
{{<nowiki/>Command/documentation}}
 
{{Important | This page is an attempt to refresh the [[Template:Function|Function]] template, do not empty it even if this page is listed in commands categories!}}
<br><br>
----
{{User:Lou_Montana/Sandbox/Template:Function|Comments=
____________________________________________________________________________________________
 
| arma3 |Game name=
 
|1.00|Game version=
____________________________________________________________________________________________
 
| Convert integer to roman numeral (e.g. 42 becomes "XLII"). |DESCRIPTION=
____________________________________________________________________________________________
 
| integer [[call]] [[BIS_fnc_romanNumeral]] |SYNTAX=
 
|p1= integer: [[Number]], [[String]], [[Code]] or [[Config]], same as [[BIS_fnc_parseNumber]] (used in this function) - any '''integer''' between 1 and 3999 |parameter 1=
 
| [[String]] - Roman number |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>1 [[call]] [[BIS_fnc_romanNumeral]]; {{cc|returns "I"}}</code> |EXAMPLE1=
 
|x2= <code>3999 [[call]] [[BIS_fnc_romanNumeral]]; {{cc|returns "MMMCMXCIX"}}</code> |EXAMPLE2=
____________________________________________________________________________________________
 
| [[BIS_fnc_ordinalNumber]], [[BIS_fnc_phoneticalWord]]|SEEALSO=
 
|pr=This is a problem
|exec= exec
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
 
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Strings|{{uc:romanNumeral}}]]
[[Category:Functions|{{uc:romanNumeral}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:romanNumeral}}]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on October 1, 2019 - 01:46 (UTC)</dd>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
A Roman numeral is read like this:
{{{!}} class{{=}}"bikitable"
{{!}}- 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>
</dl>
<!-- DISCONTINUE Notes -->
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>

Latest revision as of 02:24, 26 December 2019

To be removed; kept for Function history - Lou Montana (talk) 02:24, 26 December 2019 (CET)