RV – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add top-icon classes) |
(tweaked examples so they are consistent) |
||
Line 416: | Line 416: | ||
| {{RV|type=abc}}<br><br><br> | | {{RV|type=abc}}<br><br><br> | ||
|- | |- | ||
| style="font-size: 0.9em; white-space: pre" | <pre><nowiki>{{RV|type=command | |||
| style="font-size: 0.9em; white-space: pre" | <nowiki>{{RV|type=command | |||
|game1= ofp | |game1= ofp | ||
|version1= 1.00 | |||
|game2= arma1 | |game2= arma1 | ||
|version2= 1.00 | |||
|game3= arma2 | |game3= arma2 | ||
|version3= 1.00 | |||
|game4= arma2oa | |game4= arma2oa | ||
|version4= 1.51 | |||
|game5= tkoh | |game5= tkoh | ||
|version5= 1.00 | |||
|game6= arma3 | |game6= arma3 | ||
|version6= 0.50 | |version6= 0.50 | ||
Line 449: | Line 453: | ||
Angles are measured in degrees clockwise from north, and regular range goes from 0 to 360 (0° {{=}} N, 90° {{=}} E, 180° {{=}} S, 270° {{=}} W). | Angles are measured in degrees clockwise from north, and regular range goes from 0 to 360 (0° {{=}} N, 90° {{=}} E, 180° {{=}} S, 270° {{=}} W). | ||
Negative angles represent a counter-clockwise angle. | Negative angles represent a counter-clockwise angle. | ||
|pr= Command will not work with roman numbers e.g. VI. | |||
|mp= See notes below for more details on [[setDir]] behaviour. | |||
|s1= object '''setDir''' heading | |s1= object '''setDir''' heading | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= heading: [[Number]] | |||
|p2= heading: [[Number]] (Optional, default {{ic|0}}) - Direction | |||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 465: | Line 474: | ||
|seealso= [[getDir]], [[direction]], [[setFormDir]], [[setVectorDir]], [[setVectorDirAndUp]] | |seealso= [[getDir]], [[direction]], [[setFormDir]], [[setVectorDir]], [[setVectorDirAndUp]] | ||
}}</nowiki></pre> | |||
}}</nowiki> | |||
| {{RV|type=command | | {{RV|type=command | ||
|game1= ofp | |game1= ofp | ||
|version1= 1.00 | |||
|game2= arma1 | |game2= arma1 | ||
|version2= 1.00 | |||
|game3= arma2 | |game3= arma2 | ||
|version3= 1.00 | |||
|game4= arma2oa | |game4= arma2oa | ||
|version4= 1.51 | |||
|game5= tkoh | |game5= tkoh | ||
|version5= 1.00 | |||
|game6= arma3 | |game6= arma3 | ||
|version6= 0.50 | |version6= 0.50 | ||
Line 495: | Line 512: | ||
Angles are measured in degrees clockwise from north, and regular range goes from 0 to 360 (0° {{=}} N, 90° {{=}} E, 180° {{=}} S, 270° {{=}} W). | Angles are measured in degrees clockwise from north, and regular range goes from 0 to 360 (0° {{=}} N, 90° {{=}} E, 180° {{=}} S, 270° {{=}} W). | ||
Negative angles represent a counter-clockwise angle. | Negative angles represent a counter-clockwise angle. | ||
|pr= Command will not work with roman numbers e.g. VI. | |||
|mp= See notes below for more details on [[setDir]] behaviour. | |||
|s1= object '''setDir''' heading | |s1= object '''setDir''' heading | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= heading: [[Number]] | |||
|p2= heading: [[Number]] (Optional, default {{ic|0}}) - Direction | |||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
Line 511: | Line 533: | ||
|seealso= [[getDir]], [[direction]], [[setFormDir]], [[setVectorDir]], [[setVectorDirAndUp]] | |seealso= [[getDir]], [[direction]], [[setFormDir]], [[setVectorDir]], [[setVectorDirAndUp]] | ||
}}<br><br><br> | }}<br><br><br> | ||
|- | |- | ||
| style="font-size: 0.9em; white-space: pre" | <nowiki>{{RV|type=function | | style="font-size: 0.9em; white-space: pre" | <pre><nowiki>{{RV|type=function | ||
|game1= arma2 | |game1= arma2 | ||
|version1= 1.00 | |version1= 1.00 | ||
|game2= TKOH | |game2= TKOH | ||
|version2= 1.00 | |version2= 1.00 | ||
|game3= arma3 | |game3= arma3 | ||
|version3= 0.50 | |version3= 0.50 | ||
|arg= local | |||
|eff= local | |eff= local | ||
Line 546: | Line 571: | ||
|seealso= [[Arma 2: Functions Library]], [[Arma 3: Functions Library]], [[Take On Helicopters: Function Library]] | |seealso= [[Arma 2: Functions Library]], [[Arma 3: Functions Library]], [[Take On Helicopters: Function Library]] | ||
}}</nowiki> | }}</nowiki></pre> | ||
| {{RV|type=function | | {{RV|type=function | ||
|game1= arma2 | |game1= arma2 | ||
|version1= 1.00 | |version1= 1.00 | ||
|game2= TKOH | |game2= TKOH | ||
|version2= 1.00 | |version2= 1.00 | ||
|game3= arma3 | |game3= arma3 | ||
|version3= 0.50 | |version3= 0.50 | ||
|arg= local | |||
|eff= local | |eff= local | ||
Line 577: | Line 607: | ||
|x1= <code>[] [[call]] [[BIS_fnc_help]];</code> | |x1= <code>[] [[call]] [[BIS_fnc_help]];</code> | ||
|seealso= [[Arma 2: Functions Library]], [[Arma 3: Functions Library]], [[Take On Helicopters: | |seealso= [[Arma 2: Functions Library]], [[Arma 3: Functions Library]], [[Take On Helicopters: Function Library]] | ||
}} | }} | ||
Line 587: | Line 617: | ||
|game1= | |game1= | ||
|version1= | |||
|game2= | |game2= | ||
|version2= | |||
|game3= | |game3= | ||
|version3= | |||
|game4= | |game4= | ||
|version4= | |||
|game5= | |game5= | ||
|version5= | |||
|game6= | |game6= | ||
|version6= | |version6= | ||
|arg= | |arg= | ||
|eff= | |eff= | ||
|serverExec= | |serverExec= | ||
|gr1= | |gr1= | ||
|gr2= | |gr2= | ||
|gr3= | |gr3= | ||
|gr4= | |gr4= | ||
|gr5= | |gr5= | ||
|descr= | |descr= | ||
|mp= | |mp= | ||
Line 620: | Line 665: | ||
|p1= | |p1= | ||
|p2= | |p2= | ||
|p3= | |p3= | ||
|p4= | |p4= | ||
|p5= | |p5= | ||
|p6= | |p6= | ||
|p7= | |p7= | ||
|p8= | |p8= | ||
|p9= | |p9= | ||
|p10= | |p10= | ||
|p11= | |p11= | ||
|p12= | |p12= | ||
|p13= | |p13= | ||
|p14= | |p14= | ||
|p15= | |p15= | ||
|p16= | |p16= | ||
|p17= | |p17= | ||
|p18= | |p18= | ||
|p19= | |p19= | ||
|p20= | |p20= | ||
Line 654: | Line 717: | ||
|game1= | |game1= | ||
|version1= | |||
|game2= | |game2= | ||
|version2= | |||
|game3= | |game3= | ||
|version3= | |||
|game4= | |game4= | ||
|version4= | |||
|game5= | |game5= | ||
|version5= | |||
|game6= | |game6= | ||
|version6= | |version6= | ||
|arg= | |arg= | ||
|eff= | |eff= | ||
|serverExec= | |serverExec= | ||
|gr1= | |gr1= | ||
|gr2= | |gr2= | ||
|gr3= | |gr3= | ||
|gr4= | |gr4= | ||
|gr5= | |gr5= | ||
|descr= | |descr= | ||
|mp= | |mp= | ||
Line 687: | Line 765: | ||
|p1= | |p1= | ||
|p2= | |p2= | ||
|p3= | |p3= | ||
|p4= | |p4= | ||
|p5= | |p5= | ||
|p6= | |p6= | ||
|p7= | |p7= | ||
|p8= | |p8= | ||
|p9= | |p9= | ||
|p10= | |p10= | ||
|p11= | |p11= | ||
|p12= | |p12= | ||
|p13= | |p13= | ||
|p14= | |p14= | ||
|p15= | |p15= | ||
|p16= | |p16= | ||
|p17= | |p17= | ||
|p18= | |p18= | ||
|p19= | |p19= | ||
|p20= | |p20= | ||
Revision as of 14:14, 4 March 2021
Real Virtuality Commands/Functions documentation template, used by these pages.
Usage
{{RV|type=|other parameters, see below}}
- meta information:
- type: (named argument, case-insensitive) "command" or "function"
- displayTitle: (Optional, default {{PAGENAMEE}} - encoded page name, i.e with underscores) use to force page's displayTitle (e.g diag_log (Arma 2))
- sortKey: (Optional, default commandName or functionName without BIS/BIN_fnc_ prefix) use to force category's sort key
- primary parameters:
- game1: (can be 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 unnamed parameter 2) number in GVI template format: <Major>.<Minor>. e.g 1.46, 1.75, 1.86 etc.
- arg: (Optional, default empty) local or global - if provided, will display the LALocal or GAGlobal icon depending on arguments' locality
- eff: (Optional, default empty) local or global - if provided, will display the LELocal or GEGlobal icon depending on effect's locality
- serverExec: (Optional, default empty) if provided, will display the SEServer icon informing the command must be run on the server
- descr: (can be unnamed parameter 3 - Optional, default Description needed) the command description
- gr1..gr5: (Optional, default empty) Command groups. Case sensitive.
- 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:
- branch: (Optional, default empty) takes free string such as diag or prof diagnostic. If provided, will mark the page as Diagnostic or Profiling branch only
- 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..6: (Optional, default empty) same as game1. 6 possible games: OFP, Arma, Arma 2, Arma 2:OA, TKOH, Arma 3
- version2..6: (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
Command | Function |
---|---|
|
|
Examples
Code | Result |
---|---|
{{RV}} | -no type provided- |
{{RV|type=abc}} | -wrong type ("abc") provided- |
{{RV|type=command |game1= ofp |version1= 1.00 |game2= arma1 |version2= 1.00 |game3= arma2 |version3= 1.00 |game4= arma2oa |version4= 1.51 |game5= tkoh |version5= 1.00 |game6= arma3 |version6= 0.50 |branch= diagnostic profiling |arg= local |eff= global |gr1= Object Manipulation |descr= Sets object heading. Angles are measured in degrees clockwise from north, and regular range goes from 0 to 360 (0° {{=}} N, 90° {{=}} E, 180° {{=}} S, 270° {{=}} W). Negative angles represent a counter-clockwise angle. |pr= Command will not work with roman numbers e.g. VI. |mp= See notes below for more details on [[setDir]] behaviour. |s1= object '''setDir''' heading |p1= object: [[Object]] |p2= heading: [[Number]] (Optional, default {{ic|0}}) - Direction |r1= [[Nothing]] |x1 = <code>unit1 [[setDir]] 45; {{cc|will set unit1 to face North-East}}</code> |x2 = <code>unit1 [[setDir]] -675; {{cc|will also set unit1 to face North-East ({{=}} 45-360-360)}}</code> |x3 = <code>unit1 [[setDir]] 30; unit1 [[setFormDir]] 30; {{cc|needed for AI to keep the given direction}}</code> |seealso= [[getDir]], [[direction]], [[setFormDir]], [[setVectorDir]], [[setVectorDirAndUp]] }} |
Description
Syntax
Examples
Additional Information
Notes
|
{{RV|type=function |game1= arma2 |version1= 1.00 |game2= TKOH |version2= 1.00 |game3= arma3 |version3= 0.50 |arg= local |eff= local |gr1= Diagnostic |descr= Shows Function Library viewer, which contains list of all available functions, both official and unofficial. <gallery> Image:Fnc_help.jpg|Arma 2 File:Take On Helicopters Functions Viewer.jpg|Take On Helicopters </gallery> |s1= [parentDisplay] [[call]] [[BIS_fnc_help]] |p1= parentDisplay: [[Display]] - (Optional, default [[displayNull]]) |r1= [[Nothing]] |x1= <code>[] [[call]] [[BIS_fnc_help]];</code> |seealso= [[Arma 2: Functions Library]], [[Arma 3: Functions Library]], [[Take On Helicopters: Function Library]] }} |
Description
Syntax
Examples
Additional Information
Notes
|
Command Template
{{RV|type=command |game1= |version1= |game2= |version2= |game3= |version3= |game4= |version4= |game5= |version5= |game6= |version6= |arg= |eff= |serverExec= |gr1= |gr2= |gr3= |gr4= |gr5= |descr= |mp= |pr= |s1= |p1= |p2= |p3= |p4= |p5= |p6= |p7= |p8= |p9= |p10= |p11= |p12= |p13= |p14= |p15= |p16= |p17= |p18= |p19= |p20= |r1= |x1= |seealso= }}
Function Template
{{RV|type=function |game1= |version1= |game2= |version2= |game3= |version3= |game4= |version4= |game5= |version5= |game6= |version6= |arg= |eff= |serverExec= |gr1= |gr2= |gr3= |gr4= |gr5= |descr= |mp= |pr= |s1= |p1= |p2= |p3= |p4= |p5= |p6= |p7= |p8= |p9= |p10= |p11= |p12= |p13= |p14= |p15= |p16= |p17= |p18= |p19= |p20= |r1= |x1= |seealso= }}