Difference between revisions of "Template:Command"

From Bohemia Interactive Community
Jump to navigation Jump to search
(increasing parameter count to 12)
(Forum link update)
 
(46 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>__NOTOC__ __NOEDITSECTION__
+
<includeonly>__NOTOC__ __NOEDITSECTION__ {{DEFAULTSORT:{{uc:{{PAGENAME}}}}}}
<div class="command_description">[[Image:{{{1}}}_{{{2}}}.gif|Introduced in {{{{{1}}}}} version {{{2}}}]]{{if defined call|{{{arg|}}}|Command-image|arguments_{{{arg}}}}}{{if defined call|{{{eff|}}}|Command-image|effects_{{{eff}}}}}
+
[[Category:{{Name|{{{1}}}}}: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]<!--Automatically includes page in "New Scripting Commands List" category-->
<span style="color:#999; font-size:0.7em; margin-top:0">Click on the images for descriptions</span>
+
{{#ifeq: {{Name|{{{1}}}}} | {{Name|arma3dev}} | [[Category:Introduced with Arma 3 Development Branch]] | }}<!--Includes every arma 3 dev command in one category as well as reg version subcategories-->
 +
{{#ifeq: {{{1}}} | vbs1 | | [[Category:Scripting Commands]]}}<!--Excludes VBS commands from main command category-->
 +
<div class="_description cmd"><!--
 +
-->{{GVI|{{{1}}}|{{{2}}}|categorize}}<!--
 +
-->{{#if:{{{game2|}}}|{{GVI|{{{game2}}}|{{{version2}}}|categorize}}|}}<!-- These parameters were not
 +
-->{{#if:{{{game3|}}}|{{GVI|{{{game3}}}|{{{version3}}}|categorize}}|}}<!-- mentioned in the documentation
 +
-->{{#if:{{{game4|}}}|{{GVI|{{{game4}}}|{{{version4}}}|categorize}}|}}<!-- which was copy pasted
 +
-->{{#if:{{{game5|}}}|{{GVI|{{{game5}}}|{{{version5}}}|categorize}}|}}<!-- from the documentation for {{Command}}
 +
-->&nbsp;&nbsp;<!--
 +
-->{{#if:{{{arg|}}}|{{EffArg|cmd|arg|{{{arg}}}|categorize}}|}}<!--
 +
-->{{#if:{{{eff|}}}|{{EffArg|cmd|eff|{{{eff}}}|categorize}}|}}<!--
 +
-->{{#if:{{{exec|}}}|{{ServerExec|cmd|exec|{{{exec}}}|categorize}}|}}<!-- Exec Param
  
=== Introduced in ===
+
--><p style="color:#999;font-size:0.7em;margin-top:0">Click on the images for descriptions</p>
 +
 
 +
<h3>Introduced in</h3>
 
<dl>
 
<dl>
<dt>Game:<dd>{{{{{1}}}}}
+
<dt>Game:</dt>
<dt>Version:<dd>{{{2|1.00}}}
+
<dd>{{Name|{{{1}}}}}</dd>
 +
<dt>Version:</dt>
 +
<dd>{{{2|1.00}}}</dd>
 
</dl>
 
</dl>
  
=== Description ===
+
<h3>Description</h3>
 
<dl>
 
<dl>
<dt>Description:<dd>{{{3|}}}
+
<dt>Description:</dt>
</dl>{{if defined call|{{{4|}}}|echo|
+
<dd>{{{3|}}}</dd>
 +
</dl><!--
  
<h3>Syntax</h3>
+
-->{{#if:{{{4|}}}|<h3>Syntax</h3>
 
<dl>
 
<dl>
<dt>Syntax:
+
<dt>Syntax:</dt>
<dd>{{{4}}}
+
<dd>{{{4}}}</dd>|}}<!--
}}
 
{{if defined call|{{{p1|}}}|Command-param|{{{p1}}}|<dt>Parameters:}}{{if defined call|{{{p2|}}}|Command-param|{{{p2}}}}}{{if defined call|{{{p3|}}}|Command-param|{{{p3}}}}}{{if defined call|{{{p4|}}}|Command-param|{{{p4}}}}}{{if defined call|{{{p5|}}}|Command-param|{{{p5}}}}}{{if defined call|{{{p6|}}}|Command-param|{{{p6}}}}}{{if defined call|{{{p7|}}}|Command-param|{{{p7}}}}}{{if defined call|{{{p8|}}}|Command-param|{{{p8}}}}}{{if defined call|{{{p9|}}}|Command-param|{{{p9}}}}}{{if defined call|{{{p10|}}}|Command-param|{{{p10}}}}}{{if defined call|{{{p11|}}}|Command-param|{{{p11}}}}}{{if defined call|{{{p12|}}}|Command-param|{{{p12}}}}}{{if defined call|{{{4|}}}|echo|
 
<dt>Return Value:
 
<dd>{{{5|None.}}}
 
</dl>}}{{if defined call|{{{s2|}}}|echo|
 
  
<h3> Alternative Syntax </h3>
+
-->{{#if:{{{p1|}}}|
<dl>
+
{{Command-param|{{{p1}}}|<dt>Parameters:</dt>}}
<dt>Syntax:
+
{{#if:{{{p2|}}}|{{Command-param|{{{p2}}}</dd>}}
<dd>{{{s2}}}
+
{{#if:{{{p3|}}}|{{Command-param|{{{p3}}}</dd>}}
}}
+
{{#if:{{{p4|}}}|{{Command-param|{{{p4}}}</dd>}}
{{if defined call|{{{p21|}}}|Command-param|{{{p21}}}|<dt>Parameters:}}{{if defined call|{{{p22|}}}|Command-param|{{{p22}}}}}{{if defined call|{{{p23|}}}|Command-param|{{{p23}}}}}{{if defined call|{{{p24|}}}|Command-param|{{{p24}}}}}{{if defined call|{{{p25|}}}|Command-param|{{{p25}}}}}{{if defined call|{{{p26|}}}|Command-param|{{{p26}}}}}{{if defined call|{{{p27|}}}|Command-param|{{{p27}}}}}{{if defined call|{{{p28|}}}|Command-param|{{{p28}}}}}{{if defined call|{{{p29|}}}|Command-param|{{{p29}}}}}{{if defined call|{{{p30|}}}|Command-param|{{{p30}}}}}{{if defined call|{{{p31|}}}|Command-param|{{{p31}}}}}{{if defined call|{{{p32|}}}|Command-param|{{{p32}}}}}{{if defined call|{{{s2|}}}|echo|
+
{{#if:{{{p5|}}}|{{Command-param|{{{p5}}}</dd>}}
<dt>Return Value:
+
{{#if:{{{p6|}}}|{{Command-param|{{{p6}}}</dd>}}
<dd>{{{r2|None.}}}
+
{{#if:{{{p7|}}}|{{Command-param|{{{p7}}}</dd>}}
</dl>}}{{if defined call|{{{4|}}}|echo|
+
{{#if:{{{p8|}}}|{{Command-param|{{{p8}}}</dd>}}
 +
{{#if:{{{p9|}}}|{{Command-param|{{{p9}}}</dd>}}
 +
{{#if:{{{p10|}}}|{{Command-param|{{{p10}}}</dd>}}
 +
{{#if:{{{p11|}}}|{{Command-param|{{{p11}}}</dd>}}
 +
{{#if:{{{p12|}}}|{{Command-param|{{{p12}}}</dd>}}
 +
{{#if:{{{p13|}}}|{{Command-param|{{{p13}}}</dd>}}
 +
{{#if:{{{p14|}}}|{{Command-param|{{{p14}}}</dd>}}
 +
{{#if:{{{p15|}}}|{{Command-param|{{{p15}}}</dd>}}
 +
{{#if:{{{p16|}}}|{{Command-param|{{{p16}}}</dd>}}
 +
{{#if:{{{p17|}}}|{{Command-param|{{{p17}}}</dd>}}
 +
{{#if:{{{p18|}}}|{{Command-param|{{{p18}}}</dd>}}
 +
{{#if:{{{p19|}}}|{{Command-param|{{{p19}}}</dd>}}
 +
{{#if:{{{p20|}}}|{{Command-param|{{{p20}}}</dd>}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}<!--
  
<h3>Examples</h3>
+
-->{{#if:{{{4|}}}|
<dl>}}{{if defined call|{{{x1|}}}|Command-example|{{{x1}}}|<dt>Example 1:}}{{if defined call|{{{x2|}}}|Command-example|{{{x2}}}|<dt>Example 2:}}{{if defined call|{{{x3|}}}|Command-example|{{{x3}}}|<dt>Example 3:}}{{if defined call|{{{x4|}}}|Command-example|{{{x4}}}|<dt>Example 4:}}{{if defined call|{{{4|}}}|echo|</dl>
+
<dt>Return Value:</dt>
 +
<dd>{{{5|None.}}}</dd>
 +
</dl>|}}<!--
  
<h3>Additional Information</h3>
+
-->{{#if:{{{s2|}}}|
 +
<h3>Alternative Syntax</h3>
 
<dl>
 
<dl>
<dt>Multiplayer:
+
<dt>Syntax:</dt>
<dd>{{{mp|-}}}
+
<dd>{{{s2}}}</dd>|}}<!--
}}{{if defined call|{{{pr|}}}|echo|<dt>Problems:<dd>{{{pr}}}}}
 
{{if defined call|{{{6|}}}|echo|<dt>See also:<dd>'''{{{6}}}'''}}{{if defined call|{{{4|}}}|echo|
 
</dl>
 
}}
 
=== Notes ===
 
<h3 style="display:none">Notes</h3>
 
<dl class="command_description">
 
<!-- Note Section BEGIN -->
 
  
<!-- Note Section END -->
+
-->{{#if:{{{p21|}}}|
</dl>
+
{{Command-param|{{{p21}}}|<dt>Parameters:</dt>}}
 +
{{#if:{{{p22|}}}|{{Command-param|{{{p22}}}</dd>}}
 +
{{#if:{{{p23|}}}|{{Command-param|{{{p23}}}</dd>}}
 +
{{#if:{{{p24|}}}|{{Command-param|{{{p24}}}</dd>}}
 +
{{#if:{{{p25|}}}|{{Command-param|{{{p25}}}</dd>}}
 +
{{#if:{{{p26|}}}|{{Command-param|{{{p26}}}</dd>}}
 +
{{#if:{{{p27|}}}|{{Command-param|{{{p27}}}</dd>}}
 +
{{#if:{{{p28|}}}|{{Command-param|{{{p28}}}</dd>}}
 +
{{#if:{{{p29|}}}|{{Command-param|{{{p29}}}</dd>}}
 +
{{#if:{{{p30|}}}|{{Command-param|{{{p30}}}</dd>}}
 +
{{#if:{{{p31|}}}|{{Command-param|{{{p31}}}</dd>}}
 +
{{#if:{{{p32|}}}|{{Command-param|{{{p32}}}</dd>}}
 +
{{#if:{{{p33|}}}|{{Command-param|{{{p33}}}</dd>}}
 +
{{#if:{{{p34|}}}|{{Command-param|{{{p34}}}</dd>}}
 +
{{#if:{{{p35|}}}|{{Command-param|{{{p35}}}</dd>}}
 +
{{#if:{{{p36|}}}|{{Command-param|{{{p36}}}</dd>}}
 +
{{#if:{{{p37|}}}|{{Command-param|{{{p37}}}</dd>}}
 +
{{#if:{{{p38|}}}|{{Command-param|{{{p38}}}</dd>}}
 +
{{#if:{{{p39|}}}|{{Command-param|{{{p39}}}</dd>}}
 +
{{#if:{{{p40|}}}|{{Command-param|{{{p40}}}</dd>}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}<!--
  
<!--[{{SERVER}}/wiki?title={{PAGENAMEE}}&action=edit&section=1 + Add Note]-->
+
-->{{#if:{{{s2|}}}|
 +
<dt>Return Value:</dt>
 +
<dd>{{{r2|None.}}}</dd>
 +
</dl>|}}<!--
  
<center>''Only post proven facts here. Use the [[{{NAMESPACE}} talk: {{PAGENAME}}|talk page]] or the [http://forums.bistudio.com/forumdisplay.php?f=4 forums] for discussions.''</center>
+
-->{{#if:{{{s3|}}}|
</div></includeonly><noinclude>
+
<h3>Alternative Syntax 2</h3>
== Syntax ==
+
<dl>
 +
<dt>Syntax:</dt>
 +
<dd>{{{s3}}}</dd>|}}<!--
  
You can insert a command using the following syntax:
+
-->{{#if:{{{p41|}}}|
 +
{{Command-param|{{{p41}}}|<dt>Parameters:</dt>}}
 +
{{#if:{{{p42|}}}|{{Command-param|{{{p42}}}</dd>}}
 +
{{#if:{{{p43|}}}|{{Command-param|{{{p43}}}</dd>}}
 +
{{#if:{{{p44|}}}|{{Command-param|{{{p44}}}</dd>}}
 +
{{#if:{{{p45|}}}|{{Command-param|{{{p45}}}</dd>}}
 +
{{#if:{{{p46|}}}|{{Command-param|{{{p46}}}</dd>}}
 +
{{#if:{{{p47|}}}|{{Command-param|{{{p47}}}</dd>}}
 +
{{#if:{{{p48|}}}|{{Command-param|{{{p48}}}</dd>}}
 +
{{#if:{{{p49|}}}|{{Command-param|{{{p49}}}</dd>}}
 +
{{#if:{{{p50|}}}|{{Command-param|{{{p50}}}</dd>}}
 +
{{#if:{{{p51|}}}|{{Command-param|{{{p51}}}</dd>}}
 +
{{#if:{{{p52|}}}|{{Command-param|{{{p52}}}</dd>}}
 +
{{#if:{{{p53|}}}|{{Command-param|{{{p53}}}</dd>}}
 +
{{#if:{{{p54|}}}|{{Command-param|{{{p54}}}</dd>}}
 +
{{#if:{{{p55|}}}|{{Command-param|{{{p55}}}</dd>}}
 +
{{#if:{{{p56|}}}|{{Command-param|{{{p56}}}</dd>}}
 +
{{#if:{{{p57|}}}|{{Command-param|{{{p57}}}</dd>}}
 +
{{#if:{{{p58|}}}|{{Command-param|{{{p58}}}</dd>}}
 +
{{#if:{{{p59|}}}|{{Command-param|{{{p59}}}</dd>}}
 +
{{#if:{{{p60|}}}|{{Command-param|{{{p60}}}</dd>}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}<!--
  
<pre>{{Command|=
+
-->{{#if:{{{s3|}}}|
____________________________________________________________________________________________
+
<dt>Return Value:</dt>
 +
<dd>{{{r3|None.}}}</dd>
 +
</dl>|}}<!--
  
| GAME |=
+
-->{{#if:{{{s4|}}}|
 +
<h3>Alternative Syntax 3</h3>
 +
<dl>
 +
<dt>Syntax:</dt>
 +
<dd>{{{s4}}}</dd>|}}<!--
  
|GAMEVERSION|=
+
-->{{#if:{{{p61|}}}|
 +
{{Command-param|{{{p61}}}|<dt>Parameters:</dt>}}
 +
{{#if:{{{p62|}}}|{{Command-param|{{{p62}}}</dd>}}
 +
{{#if:{{{p63|}}}|{{Command-param|{{{p63}}}</dd>}}
 +
{{#if:{{{p64|}}}|{{Command-param|{{{p64}}}</dd>}}
 +
{{#if:{{{p65|}}}|{{Command-param|{{{p65}}}</dd>}}
 +
{{#if:{{{p66|}}}|{{Command-param|{{{p66}}}</dd>}}
 +
{{#if:{{{p67|}}}|{{Command-param|{{{p67}}}</dd>}}
 +
{{#if:{{{p68|}}}|{{Command-param|{{{p68}}}</dd>}}
 +
{{#if:{{{p69|}}}|{{Command-param|{{{p69}}}</dd>}}
 +
{{#if:{{{p70|}}}|{{Command-param|{{{p70}}}</dd>}}
 +
{{#if:{{{p71|}}}|{{Command-param|{{{p71}}}</dd>}}
 +
{{#if:{{{p72|}}}|{{Command-param|{{{p72}}}</dd>}}
 +
{{#if:{{{p73|}}}|{{Command-param|{{{p73}}}</dd>}}
 +
{{#if:{{{p74|}}}|{{Command-param|{{{p74}}}</dd>}}
 +
{{#if:{{{p75|}}}|{{Command-param|{{{p75}}}</dd>}}
 +
{{#if:{{{p76|}}}|{{Command-param|{{{p76}}}</dd>}}
 +
{{#if:{{{p77|}}}|{{Command-param|{{{p77}}}</dd>}}
 +
{{#if:{{{p78|}}}|{{Command-param|{{{p78}}}</dd>}}
 +
{{#if:{{{p79|}}}|{{Command-param|{{{p79}}}</dd>}}
 +
{{#if:{{{p80|}}}|{{Command-param|{{{p80}}}</dd>}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}<!--
  
|arg= MPARGUMENTS |=
+
-->{{#if:{{{s4|}}}|
 +
<dt>Return Value:</dt>
 +
<dd>{{{r4|None.}}}</dd>
 +
</dl>|}}<!--
  
|eff= MPEFFECTS |=
+
-->{{#if:{{{s5|}}}|
____________________________________________________________________________________________
+
<h3>Alternative Syntax 4</h3>
 +
<dl>
 +
<dt>Syntax:</dt>
 +
<dd>{{{s5}}}</dd>|}}<!--
  
| DESCRIPTION |=
+
-->{{#if:{{{p81|}}}|
____________________________________________________________________________________________
+
{{Command-param|{{{p81}}}|<dt>Parameters:</dt>}}
 +
{{#if:{{{p82|}}}|{{Command-param|{{{p82}}}</dd>}}
 +
{{#if:{{{p83|}}}|{{Command-param|{{{p83}}}</dd>}}
 +
{{#if:{{{p84|}}}|{{Command-param|{{{p84}}}</dd>}}
 +
{{#if:{{{p85|}}}|{{Command-param|{{{p85}}}</dd>}}
 +
{{#if:{{{p86|}}}|{{Command-param|{{{p86}}}</dd>}}
 +
{{#if:{{{p87|}}}|{{Command-param|{{{p87}}}</dd>}}
 +
{{#if:{{{p88|}}}|{{Command-param|{{{p88}}}</dd>}}
 +
{{#if:{{{p89|}}}|{{Command-param|{{{p89}}}</dd>}}
 +
{{#if:{{{p90|}}}|{{Command-param|{{{p90}}}</dd>}}
 +
{{#if:{{{p91|}}}|{{Command-param|{{{p91}}}</dd>}}
 +
{{#if:{{{p92|}}}|{{Command-param|{{{p92}}}</dd>}}
 +
{{#if:{{{p93|}}}|{{Command-param|{{{p93}}}</dd>}}
 +
{{#if:{{{p94|}}}|{{Command-param|{{{p94}}}</dd>}}
 +
{{#if:{{{p95|}}}|{{Command-param|{{{p95}}}</dd>}}
 +
{{#if:{{{p96|}}}|{{Command-param|{{{p96}}}</dd>}}
 +
{{#if:{{{p97|}}}|{{Command-param|{{{p97}}}</dd>}}
 +
{{#if:{{{p98|}}}|{{Command-param|{{{p98}}}</dd>}}
 +
{{#if:{{{p99|}}}|{{Command-param|{{{p99}}}</dd>}}
 +
{{#if:{{{p100|}}}|{{Command-param|{{{p100}}}</dd>}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}<!--
  
| SYNTAX |=
+
-->{{#if:{{{s5|}}}|
 +
<dt>Return Value:</dt>
 +
<dd>{{{r5|None.}}}</dd>
 +
</dl>|}}<!--
  
|p1= PARAMETER1 |=
 
  
|p2= PARAMETER2 |=
+
-->{{#if:{{{s6|}}}|
 +
<h3>Alternative Syntax 5</h3>
 +
<dl>
 +
<dt>Syntax:</dt>
 +
<dd>{{{s6}}}</dd>|}}<!--
  
|p3= PARAMETER3 |=
+
-->{{#if:{{{p101|}}}|
 +
{{Command-param|{{{p101}}}|<dt>Parameters:</dt>}}
 +
{{#if:{{{p102|}}}|{{Command-param|{{{p102}}}</dd>}}
 +
{{#if:{{{p103|}}}|{{Command-param|{{{p103}}}</dd>}}
 +
{{#if:{{{p104|}}}|{{Command-param|{{{p104}}}</dd>}}
 +
{{#if:{{{p105|}}}|{{Command-param|{{{p105}}}</dd>}}
 +
{{#if:{{{p106|}}}|{{Command-param|{{{p106}}}</dd>}}
 +
{{#if:{{{p107|}}}|{{Command-param|{{{p107}}}</dd>}}
 +
{{#if:{{{p108|}}}|{{Command-param|{{{p108}}}</dd>}}
 +
{{#if:{{{p109|}}}|{{Command-param|{{{p109}}}</dd>}}
 +
{{#if:{{{p110|}}}|{{Command-param|{{{p110}}}</dd>}}
 +
{{#if:{{{p111|}}}|{{Command-param|{{{p111}}}</dd>}}
 +
{{#if:{{{p112|}}}|{{Command-param|{{{p112}}}</dd>}}
 +
{{#if:{{{p113|}}}|{{Command-param|{{{p113}}}</dd>}}
 +
{{#if:{{{p114|}}}|{{Command-param|{{{p114}}}</dd>}}
 +
{{#if:{{{p115|}}}|{{Command-param|{{{p115}}}</dd>}}
 +
{{#if:{{{p116|}}}|{{Command-param|{{{p116}}}</dd>}}
 +
{{#if:{{{p117|}}}|{{Command-param|{{{p117}}}</dd>}}
 +
{{#if:{{{p118|}}}|{{Command-param|{{{p118}}}</dd>}}
 +
{{#if:{{{p119|}}}|{{Command-param|{{{p119}}}</dd>}}
 +
{{#if:{{{p120|}}}|{{Command-param|{{{p120}}}</dd>}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}|}}<!--
  
|p4= PARAMETER4 |=
+
-->{{#if:{{{s6|}}}|
 +
<dt>Return Value:</dt>
 +
<dd>{{{r6|None.}}}</dd>
 +
</dl>|}}<!--
  
|p5= PARAMETER5 |=
+
-->{{#if:{{{4|}}}|
 +
<h3>Examples</h3>
 +
<dl>|}}<!--
  
|p6= PARAMETER6 |=
+
-->{{#switch:{{{x1|}}}
 
+
|
|p7= PARAMETER7 |=
+
|example
 
+
|(example)
|p8= PARAMETER8 |=
+
|<code></code>
 
+
|<code>
|p9= PARAMETER9 |=
+
</code>
 
+
|<code>example</code>
|p10= PARAMETER10 |=
+
|<code>(example)</code>
 
+
|<pre></pre>
|p11= PARAMETER11 |=
+
|<pre>
 
+
</pre>
|p12= PARAMETER12 |=
+
|<pre>example</pre>
 
+
|<pre>(example)</pre>=<dt>Example 1:</dt><dd>{{Example needed}}</dd>
| RETURNVALUE |=
+
|#default={{Command-example|{{{x1}}}</dd>|<dt>Example 1:</dt>}}
 
+
{{#if:{{{x2|}}}|{{Command-example|{{{x2}}}</dd>|<dt>Example 2:</dt>}}
 
+
{{#if:{{{x3|}}}|{{Command-example|{{{x3}}}</dd>|<dt>Example 3:</dt>}}
START alternative syntax (optional)
+
{{#if:{{{x4|}}}|{{Command-example|{{{x4}}}</dd>|<dt>Example 4:</dt>}}
 
+
{{#if:{{{x5|}}}|{{Command-example|{{{x5}}}</dd>|<dt>Example 5:</dt>}}
|s2= ALT_SYNTAX |=
+
{{#if:{{{x6|}}}|{{Command-example|{{{x6}}}</dd>|<dt>Example 6:</dt>}}
 
+
{{#if:{{{x7|}}}|{{Command-example|{{{x7}}}</dd>|<dt>Example 7:</dt>}}
|p21= ALT_PARAMETER1 |=
+
{{#if:{{{x8|}}}|{{Command-example|{{{x8}}}</dd>|<dt>Example 8:</dt>}}
 
+
{{#if:{{{x9|}}}|{{Command-example|{{{x9}}}</dd>|<dt>Example 9:</dt>}}
|p22= ALT_PARAMETER2 |=
+
{{#if:{{{x10|}}}|{{Command-example|{{{x10}}}</dd>|<dt>Example 10:</dt>}}|}}|}}|}}|}}|}}|}}|}}|}}|}} }}<!--
 
 
|p23= ALT_PARAMETER3 |=
 
 
 
|p24= ALT_PARAMETER4 |=
 
 
 
|p25= ALT_PARAMETER5 |=
 
 
 
|p26= ALT_PARAMETER6 |=
 
 
 
|p27= ALT_PARAMETER7 |=
 
 
 
|p28= ALT_PARAMETER8 |=
 
 
 
|p29= ALT_PARAMETER9 |=
 
 
 
|p30= ALT_PARAMETER10 |=
 
 
 
|p31= ALT_PARAMETER11 |=
 
 
 
|p32= ALT_PARAMETER12 |=
 
 
 
|r2= ALT_RETURNVALUE |=
 
 
 
END alternative syntax (optional)
 
  
 +
-->{{#if:{{{4|}}}|</dl>
 +
<h3>Additional Information</h3>
 +
<dl>
 +
<dt>Multiplayer:</dt>
 +
<dd>{{{mp|-}}}</dd>|}}<!--
  
|mp= MPBEHAVIOUR |=
+
-->{{#if:{{{pr|}}}|
____________________________________________________________________________________________
+
<dt>Problems:</dt>
 +
<dd>{{{pr}}}</dd>|}}
 +
<dt>See also:</dt>
 +
<dd class="seealso">{{busa}}{{#if:{{{6|}}}|{{#replace:{{#replace:{{{6}}}|], [|][}}|],[|][}}|{{See also needed}}}}</dd><!--
  
|x1= EXAMPLE1 |=
+
-->{{#if:{{{4|}}}|</dl>|}}
____________________________________________________________________________________________
 
 
 
|x2= EXAMPLE2 |=
 
____________________________________________________________________________________________
 
 
 
|x3= EXAMPLE3 |=
 
____________________________________________________________________________________________
 
 
 
|x4= EXAMPLE4 |=
 
____________________________________________________________________________________________
 
 
 
| SEEALSO |=
 
 
 
}}
 
 
 
<h3 style="display:none">Notes</h3>
 
<dl class="command_description">
 
<!-- Note Section BEGIN -->
 
 
 
<!-- Note Section END -->
 
</dl>
 
 
 
<h3 style="display:none">Bottom Section</h3></pre>
 
 
 
== Parameters ==
 
 
 
'''All of the following parameters should be replaced by reasonable text!'''
 
 
 
The paramter GAME should contain the short name of the game when the command was introduced, being one of "ofp", "ofpr" or "arma".
 
 
 
The parameter GAMEVERSION is obvious: It contains the version number when this command was included. '''This is the only parameter where you ''must not'' have spaces before or after the parameter!!!''' If the game version is a round number, include two zeros after the comma (ie, 1.00, 2.00). If not, write the version number with all required numbers after the comma (ie, 1.5, 1.34 ...)
 
 
 
The parameter MPARGUMENTS is optional. If you don't include it, delete the whole line. It contains either "local" or "global" and describes whether this command needs the arguments to be local to the client it is executed on or if they can be global.
 
 
 
The parameter MPEFFECTS is optional. If you don't include it, delete the whole line. It contains either "local" or "global" and describes whether the effects of the command are transfered through the net.
 
 
 
The parameter DESCRIPTION should contain a brief but detailed description of the command.
 
 
 
The parameter SYNTAX should show the syntax for the command. There are several possibilities of format:
 
<pre>'''commandName'''
 
 
 
preargument '''commandName'''
 
 
 
'''commandName''' postargument
 
 
 
preargument '''commandName''' postargument
 
 
 
[prearg1, prearg2] '''commandName''' postargument
 
 
 
preargument '''commandName''' [postarg1, postarg2]</pre>
 
etc. You get the drill.
 
 
 
PARAMETER1 to PARAMETER5 are all optional and should contain descriptions of the parameters. If there are no parameters, delete all lines. If there are two parameters, mention only |p1= PARAM | and |p2= PARAM | and delete |p3=, |p4= and |p5=. The format should be one of the following two:
 
<pre>parameter: [[Type]]
 
 
 
parameter: [[Type]] - Description</pre>
 
 
 
The parameter RETURNVALUE should contain a description of the return value. Again, there are two possible formats:
 
<pre>[[Type]]
 
 
 
[[Type]] - Description</pre>
 
 
 
All parameters starting with ALT_ belong to the "alternative syntax" section and can be '''left away''' in commands with only one syntax. They are of the same format as the parameters without ALT_.
 
 
 
The parameter MPBEHAVIOUR should contain a description of the command's behaviour in multiplayer. If you have no description, delete the line.
 
 
 
The parameters EXAMPLE1 to EXAMPLE3 are again all optional. If you don't include one of them, delete the line. They should contain examples for the command (using <nowiki><pre> or <code></nowiki> ?) including descriptions of the examples.
 
 
 
The parameter SEEALSO should contain a comma-separated list of links related to this command. Example for [[doFire]] would be:
 
<pre>[[commandFire]], [[fire]]</pre>
 
 
 
== Example ==
 
 
 
''Should be replaced by a valid example later . . .''
 
 
 
<pre>{{Command|=
 
____________________________________________________________________________________________
 
 
 
|1.00|=
 
____________________________________________________________________________________________
 
 
 
| Adds an event handler to a given unit. For more information about event handlers and their
 
types check the scripting topic Event Handlers in this reference. You may add as many event
 
handlers of any type as you like to every unit, if you add an event handler of type "killed"
 
and there already exists one, the old one doesn't get overwritten. Use removeEventHandler to
 
delete event handlers. |=
 
____________________________________________________________________________________________
 
 
 
| object '''addEventHandler''' [type, code] |=
 
 
 
|p1= object: [[Object]] |=
 
 
 
|p2= type: [[String]] - Explanation |=
 
 
 
|p3= code: [[String]] - Explanation |=
 
 
 
| [[Integer]] - The index of the currently added event handler is returned. Indices start at
 
0 for each unit and increment with each added event handler. |=
 
 
 
| Behaviour unknown. |=
 
____________________________________________________________________________________________
 
 
 
|x1= Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
 
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam
 
et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
 
Lorem ipsum dolor sit amet.
 
 
 
<code>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
 
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</code>
 
 
 
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
 
takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
 
sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
 
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita
 
kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. |=
 
____________________________________________________________________________________________
 
 
 
|x2= Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
 
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam
 
et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
 
Lorem ipsum dolor sit amet. |=
 
____________________________________________________________________________________________
 
 
 
| [[removeEventHandler]] |=
 
 
 
}}
 
 
 
<h3 style="display:none">Notes</h3>
 
<dl class="command_description">
 
<!-- Note Section BEGIN -->
 
 
 
<!-- Note Section END -->
 
</dl>
 
  
<h3 style="display:none">Bottom Section</h3></pre>
+
<h3>Notes</h3>
 +
<div style="margin-top:-26px;text-align:center;"><i style="padding-left:55px;line-height:1.8em;"><span style="white-space:nowrap;font-weight:bold;">Only post proven facts here.</span> <span style="white-space:nowrap;">Report bugs on [http://feedback.arma3.com/ the feedback tracker].</span> <span style="white-space:nowrap;">Use the [[{{NAMESPACE}} talk:{{PAGENAME}}|talk page]] or the [https://forums.bohemia.net/ forums] for discussions.</span></i><br style="line-height:28px;"><span class="plainlinks">[{{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]]</span></div>
 +
</div></includeonly><noinclude>{{{{PAGENAME}}/documentation}}
  
[[Category:Templates|{{PAGENAME}}]]
+
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:54, 7 June 2018

This documentation is transcluded from Command/documentation, and is transcluded in both this page and {{Function}}.

• To edit the documentation, edit that page.

• To edit the template, edit this page.

Be certain to reflect changes to either page in the other.

Syntax

You can create a new command page using the following syntax:

{{Command|=
____________________________________________________________________________________________

| GAME |Game=

|GAMEVERSION|Game Version (number surrounded by NO SPACES)=

|arg= MPARGUMENTS |Multiplayer Arguments=

|eff= MPEFFECTS |Multiplayer Effects=
____________________________________________________________________________________________

| DESCRIPTION |Description=
____________________________________________________________________________________________

| SYNTAX |Syntax=

|p1= PARAMETER1 |Parameter 1=

|p2= PARAMETER2 |Parameter 2=

|p3= PARAMETER3 |Parameter 3=

|p4= PARAMETER4 |Parameter 4=

|p5= PARAMETER5 |Parameter 5=

|p6= PARAMETER6 |Parameter 6=

|p7= PARAMETER7 |Parameter 7=

|p8= PARAMETER8 |Parameter 8=

|p9= PARAMETER9 |Parameter 9=

|p10= PARAMETER10 |Parameter 10=

|p11= PARAMETER11 |Parameter 11=

|p12= PARAMETER12 |Parameter 12=

|p13= PARAMETER13 |Parameter 13=

|p14= PARAMETER14 |Parameter 14=

|p15= PARAMETER15 |Parameter 15=

|p16= PARAMETER16 |Parameter 16=

|p17= PARAMETER17 |Parameter 17=

|p18= PARAMETER18 |Parameter 18=

|p19= PARAMETER19 |Parameter 19=

|p20= PARAMETER20 |Parameter 20=

| RETURNVALUE |Return Value=

<!-- START alternative syntax (optional) -->

|s2= ALT_SYNTAX |Alternative Syntax=

|p21= ALT_PARAMETER1 |Alternative Parameter 1=

|p22= ALT_PARAMETER2 |Alternative Parameter 2=

|p23= ALT_PARAMETER3 |Alternative Parameter 3=

|p24= ALT_PARAMETER4 |Alternative Parameter 4=

|p25= ALT_PARAMETER5 |Alternative Parameter 5=

|p26= ALT_PARAMETER6 |Alternative Parameter 6=

|p27= ALT_PARAMETER7 |Alternative Parameter 7=

|p28= ALT_PARAMETER8 |Alternative Parameter 8=

|p29= ALT_PARAMETER9 |Alternative Parameter 9=

|p30= ALT_PARAMETER10 |Alternative Parameter 10=

|p31= ALT_PARAMETER11 |Alternative Parameter 11=

|p32= ALT_PARAMETER12 |Alternative Parameter 12=

|p33= ALT_PARAMETER13 |Alternative Parameter 13=

|p34= ALT_PARAMETER14 |Alternative Parameter 14=

|p35= ALT_PARAMETER15 |Alternative Parameter 15=

|p36= ALT_PARAMETER16 |Alternative Parameter 16=

|p37= ALT_PARAMETER17 |Alternative Parameter 17=

|p38= ALT_PARAMETER18 |Alternative Parameter 18=

|p39= ALT_PARAMETER19 |Alternative Parameter 19=

|p40= ALT_PARAMETER20 |Alternative Parameter 20=

|r2= ALT_RETURNVALUE |Alternative Return Value=

<!-- END alternative syntax (optional) -->


 
<!-- START alternative syntax 2 (optional) -->


|mp= MPBEHAVIOUR |Multiplayer Behaviour=
____________________________________________________________________________________________

|x1= EXAMPLE1 |Example 1=
____________________________________________________________________________________________

|x2= EXAMPLE2 |Example 2=
____________________________________________________________________________________________

|x3= EXAMPLE3 |Example 3=
____________________________________________________________________________________________

|x4= EXAMPLE4 |Example 4=
____________________________________________________________________________________________

|x5= EXAMPLE5 |Example 5=
____________________________________________________________________________________________

|x6= EXAMPLE6 |Example 6=
____________________________________________________________________________________________

|x7= EXAMPLE7 |Example 7=
____________________________________________________________________________________________

|x8= EXAMPLE8 |Example 8=
____________________________________________________________________________________________

|x9= EXAMPLE9 |Example 9=
____________________________________________________________________________________________

|x10= EXAMPLE10 |Example 10=
____________________________________________________________________________________________

| SEEALSO |See Also=
}}

<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">'''[[User:User Name|]]'''</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>

<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here e.g. [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] -->


Parameters

All of the following parameters should be replaced by reasonable text!

  • The parameter GAME should contain the short name of the game when the command was introduced, being one of:
    • ofp
    • ofpr
    • arma
    • arma2
    • arma2oa
    • arma3
    • tkoh
  • The parameter GAMEVERSION is obvious: It contains the version number when this command was included. This is the only parameter where you must not have spaces before or after the parameter!!!
If the game version is a round number, include two zeros after the comma (ie, 1.00, 2.00). If not, write the version number with all required numbers after the comma (ie, 1.50, 1.34…)
  • The parameter MPARGUMENTS is optional. If you don't include it, delete the whole line. It contains either "local" or "global" and describes whether this command needs the arguments to be local to the client it is executed on or if they can be global.
  • The parameter MPEFFECTS is optional. If you don't include it, delete the whole line. It contains either "local" or "global" and describes whether the effects of the command are transferred through the net.
  • The parameter DESCRIPTION should contain a brief but detailed description of the command.
  • The parameter SYNTAX should show the syntax for the command. There are several possibilities of format:
[[commandName]]

preargument [[commandName]]

[[commandName]] postargument

preargument [[commandName]] postargument

[prearg1, prearg2] [[commandName]] postargument

preargument [[commandName]] [postarg1, postarg2]
etc. You get the drill.
  • PARAMETER1 to PARAMETER20 are all optional and should contain descriptions of the parameters. If there are no parameters, delete all lines. If there are two parameters, mention only |p1= PARAM | and |p2= PARAM | and delete |p3=, |p4= and |p5=.
    The format should be one of the following:
    • parameter: Type
    • parameter: Type - description
    • parameter: Type - (Optional, default defValue) description
  • The parameter RETURNVALUE should contain a description of the return value. Again, the possible formats:
  • All parameters starting with ALT_ belong to the "alternative syntax" section and can be left out in commands with only one syntax. They are of the same format as the parameters without ALT_.
  • The parameter MPBEHAVIOUR should contain a description of the command's behaviour in multiplayer. If you have no description, delete the line.
  • The parameters EXAMPLE1 to EXAMPLE10 are again all optional. If you don't include one of them, delete the line. They should contain examples for the command (contained by <code> tags) including descriptions of the examples.
  • The parameter SEEALSO should contain a comma-separated list of links related to this command. Example for doFire might be:
[[commandFire]], [[fire]]


Example

{{Command|=
____________________________________________________________________________________________

| arma2 |Game=

|1.00|Game Version (number surrounded by NO SPACES)=
____________________________________________________________________________________________

| Adds an event handler to a given unit. For more information about event handlers and their types check the scripting topic Event Handlers in this reference. You may add as many event handlers of any type as you like to every unit, if you add an event handler of type "killed" and there already exists one, the old one doesn't get overwritten. Use removeEventHandler to delete event handlers. |Description=
____________________________________________________________________________________________

| object [[addEventHandler]] [type, code] |Syntax=

|p1= object: [[Object]] |Parameter 1=

|p2= type: [[String]] - Explanation |Parameter 2=

|p3= code: [[String]] - Explanation |Parameter 3=

| [[Integer]] - The index of the currently added event handler is returned. Indices start at 0 for each unit and increment with each added event handler. |Return Value=

| Behaviour unknown. |Multiplayer Behaviour=
____________________________________________________________________________________________

|x1= Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 

<code>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</code>

At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. |Example 1=
____________________________________________________________________________________________

|x2= Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. |Example 2=
____________________________________________________________________________________________

| [[someCommand]], [[getOutaHere]] |See Also=
}}

<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">'''[[User:User Name|]]'''</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>

<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here e.g. [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] -->
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]