Difference between revisions of "Template:Command"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add line returns for bullet point lists)
m (Update Notes banner)
Line 180: Line 180:
 
{{Messagebox
 
{{Messagebox
 
| '''Only post proven facts here.'''<!--
 
| '''Only post proven facts here.'''<!--
--> Report bugs on [http://feedback.arma3.com/ the feedback tracker].<!--
+
--> Report bugs on the [http://feedback.arma3.com/ feedback tracker] and discuss on the [https://discord.gg/arma Arma Discord], or the [https://forums.bohemia.net/ Forums].
--> Use the [[{{NAMESPACE}} talk:{{PAGENAME}}|Talk page]] or the [https://forums.bohemia.net/ Forums] for discussions.
 
 
<div class{{=}}"plainlinks" style{{=}}"margin-top: -0.25em">
 
<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] {{!}} [[How To#Add a new note|How To]]
+
[{{canonicalurl:{{FULLPAGENAMEE}}|action=edit&section{{=}}new&preload{{=}}Template:Add_new_note&preloadtitle{{=}}&summary{{=}}Added+new+note&nosummary{{=}}true}} + Add a new Note] <span style{{=}}"font-size: .9em">([[How To#Add a new note|help]])</span>
 
</div>
 
</div>
 
| i
 
| i

Revision as of 22:20, 15 July 2020

Scripting Commands template, used by these pages.

Do NOT edit this template before heavy testing, as it is widely used!

Usage

{{Command|...parameters...}}

  • game1: (can be game or unnamed parameter 1) short game name - same as Name template input format. e.g ofp, tkoh, arma3, etc.
  • version1: (Optional, default empty (unknown)) (can be version or unnamed parameter 2) number in Template:GVI template format: <Major>.<Minor>. e.g 1.46, 1.75, 1.86 etc.
  • arg: (Optional, default empty) argument locality definition - same as EffArg template input format. e.g local, loc or global, glob
  • eff: (Optional, default empty) effects locality definition - same as EffArg template input format. e.g local, loc or global, glob
  • serverExec: (Optional, default empty) if provided, will display the Server execution icon informing the command must be run on the server
  • descr: (can be unnamed parameter 3) the command description
  • s1: (Optional, default {{PAGENAMEE}}) (can be unnamed parameter 4) command syntax with named parameters. e.g unit1 setDammage 1
  • p1..20: (Optional, default empty) command parameters with description
  • r1: (Optional, default Nothing) (can be unnamed parameter 5) syntax's return value
  • x1..10: (Optional, default {{Example needed}}) command examples (to be put between <code></code> tags where needed)
  • seealso: (Optional, default {{See also needed}}) (can be unnamed param 6) list of related links in wiki format, separated by comma or space. e.g [[setDir]] [[setPos]]
  • Secondary parameters:
    • mp: (Optional, default empty) if provided, will show a Multiplayer note under the description
    • pr: (Optional, default empty) if provided, will show a Problems note under the description
    • game2..5: (Optional, default empty) same as game1
    • version2..5: (Optional, default empty) same as version1, for the corresponding game#
    • s2..6: (Optional, default empty) Alternative syntaxes 1 to 5 (see s1)
    • p21..120: (Optional, default empty) Alternative syntaxes parameters (20 each: p21..40, p41..60, p61..80, p81..100, p101..120)
    • r2..r6: (Optional, default empty) Alternative syntaxes' return value (see r1)

Automatic categories

Full template

Show text


Example

Code Result
{{Command

<!-- Games and versions -->

|game1= ofp
|game2= arma1
|game3= arma2
|game4= arma3
|game5= tkoh
|version1= 1.46
|version2= 1.05
|version3= 1.12
|version4= 1.96
|version5= 1.10

|arg= local
|eff= global

|serverExec= server

<!-- Description and syntaxes -->

|descr= DESCRIPTION

|mp= MP BEHAVIOUR

|pr= POSSIBLE PROBLEMS

|s1= SYNTAX

|p1= PARAMETER1

|p2= PARAMETER2

|p3= PARAMETER3

|p4= PARAMETER4

|p5= PARAMETER5

|p6= PARAMETER6

|p7= PARAMETER7

|p8= PARAMETER8

|p9= PARAMETER9

|p10= PARAMETER10

|p11= PARAMETER11

|p12= PARAMETER12

|p13= PARAMETER13

|p14= PARAMETER14

|p15= PARAMETER15

|p16= PARAMETER16

|p17= PARAMETER17

|p18= PARAMETER18

|p19= PARAMETER19

|p20= PARAMETER20

|r1= RETURN_VALUE

|x1= <code>this '''command''' that</code>

|seealso=
[[Template:{{PAGENAME}}|seeAlso 1]]
[[Template:{{PAGENAME}}|seeAlso 2]]
[[Template:{{PAGENAME}}|seeAlso 3]]
[[Template:{{PAGENAME}}|seeAlso 4]]
}}
Introduced with Operation Flashpoint version 1.461.46Introduced with Armed Assault version 1.051.05Introduced with Arma 2 version 1.121.12Introduced with Arma 3 version 1.961.96Introduced with Take On Helicopters version 1.101.10Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the networkThis scripting command must be executed on the server to work properly in multiplayer
Hover & click on the images for descriptions

Description

Description:
DESCRIPTION
Multiplayer:
MP BEHAVIOUR
Problem(s):
POSSIBLE PROBLEMS

Syntax

Syntax:
SYNTAX
Parameters:
PARAMETER1
PARAMETER2
PARAMETER3
PARAMETER4
PARAMETER5
PARAMETER6
PARAMETER7
PARAMETER8
PARAMETER9
PARAMETER10
PARAMETER11
PARAMETER12
PARAMETER13
PARAMETER14
PARAMETER15
PARAMETER16
PARAMETER17
PARAMETER18
PARAMETER19
PARAMETER20
Return Value:
RETURN_VALUE

Examples

Example 1:
this command that

Additional Information

See also:
seeAlso 1 seeAlso 2 seeAlso 3 seeAlso 4

Notes

i
Only post proven facts here. Report bugs on the feedback tracker and discuss on the Arma Discord, or the Forums.