RV – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add syntax ids) |
Lou Montana (talk | contribs) (Remove {{Template|Command/Params}} usage, remove local/global category) |
||
Line 28: | Line 28: | ||
<dl> | <dl> | ||
<dt>Description:</dt> | <dt>Description:</dt> | ||
<dd> | <dd>{{{descr|{{{3|{{Stub}}}}}}}}</dd> | ||
{{{descr|{{{3|{{Stub}}}}}}}} | |||
</dd> | |||
{{#ifeq:{{lc:{{{type}}}}}|command|| | {{#ifeq:{{lc:{{{type}}}}}|command|| | ||
<dt>Execution:</dt> | <dt>Execution:</dt> | ||
Line 39: | Line 37: | ||
-->{{#if:{{{mp|}}}| | -->{{#if:{{{mp|}}}| | ||
<dt>Multiplayer:</dt> | <dt>Multiplayer:</dt> | ||
<dd> | <dd>{{{mp}}}</dd>}}<!-- | ||
{{{mp}}} | |||
</dd>}}<!-- | |||
-->{{#if:{{{pr|}}}| | -->{{#if:{{{pr|}}}| | ||
<dt>Problem(s):</dt> | <dt>Problem(s):</dt> | ||
<dd> | <dd>{{{pr}}}</dd>}}<!-- | ||
{{{pr}}} | |||
</dd>}}<!-- | |||
--><h3>Syntax</h3> | --><h3>Syntax</h3> | ||
Line 54: | Line 48: | ||
<dd>{{{s1|{{{4|'''{{PAGENAMEE}}'''}}}}}}</dd><!-- | <dd>{{{s1|{{{4|'''{{PAGENAMEE}}'''}}}}}}</dd><!-- | ||
--> | -->{{#if:{{{p1|}}}| | ||
{{ | <dt>Parameters:</dt> | ||
<dd>{{{p1}}}</dd> | |||
| {{{p11|}}} | {{{p12|}}} | {{{p13|}}} | {{{p14|}}} | {{{p15|}}} | {{{p16|}}} | {{{p17|}}} | {{{p18|}}} | {{{p19|}}} | {{{p20 | {{#if:{{{p2|}}} | <dd>{{{p2}}}</dd>}} | ||
<!-- | {{#if:{{{p3|}}} | <dd>{{{p3}}}</dd>}} | ||
{{#if:{{{p4|}}} | <dd>{{{p4}}}</dd>}} | |||
{{#if:{{{p5|}}} | <dd>{{{p5}}}</dd>}} | |||
{{#if:{{{p6|}}} | <dd>{{{p6}}}</dd>}} | |||
{{#if:{{{p7|}}} | <dd>{{{p7}}}</dd>}} | |||
{{#if:{{{p8|}}} | <dd>{{{p8}}}</dd>}} | |||
{{#if:{{{p9|}}} | <dd>{{{p9}}}</dd>}} | |||
{{#if:{{{p10|}}} | <dd>{{{p10}}}</dd>}} | |||
{{#if:{{{p11|}}} | <dd>{{{p11}}}</dd>}} | |||
{{#if:{{{p12|}}} | <dd>{{{p12}}}</dd>}} | |||
{{#if:{{{p13|}}} | <dd>{{{p13}}}</dd>}} | |||
{{#if:{{{p14|}}} | <dd>{{{p14}}}</dd>}} | |||
{{#if:{{{p15|}}} | <dd>{{{p15}}}</dd>}} | |||
{{#if:{{{p16|}}} | <dd>{{{p16}}}</dd>}} | |||
{{#if:{{{p17|}}} | <dd>{{{p17}}}</dd>}} | |||
{{#if:{{{p18|}}} | <dd>{{{p18}}}</dd>}} | |||
{{#if:{{{p19|}}} | <dd>{{{p19}}}</dd>}} | |||
{{#if:{{{p20|}}} | <dd>{{{p20}}}</dd>}} | |||
}}<!-- | |||
-->{{#if:{{{s1|{{{4|}}}}}}| | -->{{#if:{{{s1|{{{4|}}}}}}| | ||
Line 71: | Line 83: | ||
<dd>{{{s2}}}</dd><!-- | <dd>{{{s2}}}</dd><!-- | ||
-->{{ | -->{{#if:{{{p21|}}}| | ||
<dt>Parameters:</dt> | |||
| {{{p31|}}} | {{{p32|}}} | {{{p33|}}} | {{{p34|}}} | {{{p35|}}} | {{{p36|}}} | {{{p37|}}} | {{{p38|}}} | {{{p39|}}} | {{{p40 | <dd>{{{p21}}}</dd> | ||
{{#if:{{{p22|}}} | <dd>{{{p22}}}</dd>}} | |||
{{#if:{{{p23|}}} | <dd>{{{p23}}}</dd>}} | |||
{{#if:{{{p24|}}} | <dd>{{{p24}}}</dd>}} | |||
{{#if:{{{p25|}}} | <dd>{{{p25}}}</dd>}} | |||
{{#if:{{{p26|}}} | <dd>{{{p26}}}</dd>}} | |||
{{#if:{{{p27|}}} | <dd>{{{p27}}}</dd>}} | |||
{{#if:{{{p28|}}} | <dd>{{{p28}}}</dd>}} | |||
{{#if:{{{p29|}}} | <dd>{{{p29}}}</dd>}} | |||
{{#if:{{{p30|}}} | <dd>{{{p30}}}</dd>}} | |||
{{#if:{{{p31|}}} | <dd>{{{p31}}}</dd>}} | |||
{{#if:{{{p32|}}} | <dd>{{{p32}}}</dd>}} | |||
{{#if:{{{p33|}}} | <dd>{{{p33}}}</dd>}} | |||
{{#if:{{{p34|}}} | <dd>{{{p34}}}</dd>}} | |||
{{#if:{{{p35|}}} | <dd>{{{p35}}}</dd>}} | |||
{{#if:{{{p36|}}} | <dd>{{{p36}}}</dd>}} | |||
{{#if:{{{p37|}}} | <dd>{{{p37}}}</dd>}} | |||
{{#if:{{{p38|}}} | <dd>{{{p38}}}</dd>}} | |||
{{#if:{{{p39|}}} | <dd>{{{p39}}}</dd>}} | |||
{{#if:{{{p40|}}} | <dd>{{{p40}}}</dd>}} | |||
}}<!-- | |||
--><dt>Return Value:</dt> | --><dt>Return Value:</dt> | ||
Line 85: | Line 117: | ||
<dd>{{{s3}}}</dd><!-- | <dd>{{{s3}}}</dd><!-- | ||
-->{{ | -->{{#if:{{{p41|}}}| | ||
<dt>Parameters:</dt> | |||
| {{{p51|}}} | {{{p52|}}} | {{{p53|}}} | {{{p54|}}} | {{{p55|}}} | {{{p56|}}} | {{{p57|}}} | {{{p58|}}} | {{{p59|}}} | {{{p60 | <dd>{{{p41}}}</dd> | ||
{{#if:{{{p42|}}} | <dd>{{{p42}}}</dd>}} | |||
{{#if:{{{p43|}}} | <dd>{{{p43}}}</dd>}} | |||
{{#if:{{{p44|}}} | <dd>{{{p44}}}</dd>}} | |||
{{#if:{{{p45|}}} | <dd>{{{p45}}}</dd>}} | |||
{{#if:{{{p46|}}} | <dd>{{{p46}}}</dd>}} | |||
{{#if:{{{p47|}}} | <dd>{{{p47}}}</dd>}} | |||
{{#if:{{{p48|}}} | <dd>{{{p48}}}</dd>}} | |||
{{#if:{{{p49|}}} | <dd>{{{p49}}}</dd>}} | |||
{{#if:{{{p50|}}} | <dd>{{{p50}}}</dd>}} | |||
{{#if:{{{p51|}}} | <dd>{{{p51}}}</dd>}} | |||
{{#if:{{{p52|}}} | <dd>{{{p52}}}</dd>}} | |||
{{#if:{{{p53|}}} | <dd>{{{p53}}}</dd>}} | |||
{{#if:{{{p54|}}} | <dd>{{{p54}}}</dd>}} | |||
{{#if:{{{p55|}}} | <dd>{{{p55}}}</dd>}} | |||
{{#if:{{{p56|}}} | <dd>{{{p56}}}</dd>}} | |||
{{#if:{{{p57|}}} | <dd>{{{p57}}}</dd>}} | |||
{{#if:{{{p58|}}} | <dd>{{{p58}}}</dd>}} | |||
{{#if:{{{p59|}}} | <dd>{{{p59}}}</dd>}} | |||
{{#if:{{{p60|}}} | <dd>{{{p60}}}</dd>}} | |||
}}<!-- | |||
--><dt>Return Value:</dt> | --><dt>Return Value:</dt> | ||
Line 99: | Line 151: | ||
<dd>{{{s4}}}</dd><!-- | <dd>{{{s4}}}</dd><!-- | ||
-->{{ | -->{{#if:{{{p61|}}}| | ||
<dt>Parameters:</dt> | |||
| {{{p71|}}} | {{{p72|}}} | {{{p73|}}} | {{{p74|}}} | {{{p75|}}} | {{{p76|}}} | {{{p77|}}} | {{{p78|}}} | {{{p79|}}} | {{{p80 | <dd>{{{p61}}}</dd> | ||
{{#if:{{{p62|}}} | <dd>{{{p62}}}</dd>}} | |||
{{#if:{{{p63|}}} | <dd>{{{p63}}}</dd>}} | |||
{{#if:{{{p64|}}} | <dd>{{{p64}}}</dd>}} | |||
{{#if:{{{p65|}}} | <dd>{{{p65}}}</dd>}} | |||
{{#if:{{{p66|}}} | <dd>{{{p66}}}</dd>}} | |||
{{#if:{{{p67|}}} | <dd>{{{p67}}}</dd>}} | |||
{{#if:{{{p68|}}} | <dd>{{{p68}}}</dd>}} | |||
{{#if:{{{p69|}}} | <dd>{{{p69}}}</dd>}} | |||
{{#if:{{{p70|}}} | <dd>{{{p70}}}</dd>}} | |||
{{#if:{{{p71|}}} | <dd>{{{p71}}}</dd>}} | |||
{{#if:{{{p72|}}} | <dd>{{{p72}}}</dd>}} | |||
{{#if:{{{p73|}}} | <dd>{{{p73}}}</dd>}} | |||
{{#if:{{{p74|}}} | <dd>{{{p74}}}</dd>}} | |||
{{#if:{{{p75|}}} | <dd>{{{p75}}}</dd>}} | |||
{{#if:{{{p76|}}} | <dd>{{{p76}}}</dd>}} | |||
{{#if:{{{p77|}}} | <dd>{{{p77}}}</dd>}} | |||
{{#if:{{{p78|}}} | <dd>{{{p78}}}</dd>}} | |||
{{#if:{{{p79|}}} | <dd>{{{p79}}}</dd>}} | |||
{{#if:{{{p80|}}} | <dd>{{{p80}}}</dd>}} | |||
}}<!-- | |||
--><dt>Return Value:</dt> | --><dt>Return Value:</dt> | ||
Line 113: | Line 185: | ||
<dd>{{{s5}}}</dd><!-- | <dd>{{{s5}}}</dd><!-- | ||
-->{{ | -->{{#if:{{{p81|}}}| | ||
<dt>Parameters:</dt> | |||
| {{{p91|}}} | {{{p92|}}} | {{{p93|}}} | {{{p94|}}} | | <dd>{{{p81}}}</dd> | ||
{{#if:{{{p82|}}} | <dd>{{{p82}}}</dd>}} | |||
{{#if:{{{p83|}}} | <dd>{{{p83}}}</dd>}} | |||
{{#if:{{{p84|}}} | <dd>{{{p84}}}</dd>}} | |||
{{#if:{{{p85|}}} | <dd>{{{p85}}}</dd>}} | |||
{{#if:{{{p86|}}} | <dd>{{{p86}}}</dd>}} | |||
{{#if:{{{p87|}}} | <dd>{{{p87}}}</dd>}} | |||
{{#if:{{{p88|}}} | <dd>{{{p88}}}</dd>}} | |||
{{#if:{{{p89|}}} | <dd>{{{p89}}}</dd>}} | |||
{{#if:{{{p90|}}} | <dd>{{{p90}}}</dd>}} | |||
{{#if:{{{p91|}}} | <dd>{{{p91}}}</dd>}} | |||
{{#if:{{{p92|}}} | <dd>{{{p92}}}</dd>}} | |||
{{#if:{{{p93|}}} | <dd>{{{p93}}}</dd>}} | |||
{{#if:{{{p94|}}} | <dd>{{{p94}}}</dd>}} | |||
{{#if:{{{p95|}}} | <dd>{{{p95}}}</dd>}} | |||
{{#if:{{{p96|}}} | <dd>{{{p96}}}</dd>}} | |||
{{#if:{{{p97|}}} | <dd>{{{p97}}}</dd>}} | |||
{{#if:{{{p98|}}} | <dd>{{{p98}}}</dd>}} | |||
{{#if:{{{p99|}}} | <dd>{{{p99}}}</dd>}} | |||
{{#if:{{{p100|}}} | <dd>{{{p100}}}</dd>}} | |||
}}<!-- | |||
--><dt>Return Value:</dt> | --><dt>Return Value:</dt> | ||
Line 127: | Line 219: | ||
<dd>{{{s6}}}</dd><!-- | <dd>{{{s6}}}</dd><!-- | ||
-->{{ | -->{{#if:{{{p101|}}}| | ||
<dt>Parameters:</dt> | |||
| {{{p111|}}} | {{{p112|}}} | {{{p113|}}} | {{{p114|}}} | {{{p115|}}} | {{{p116|}}} | {{{p117|}}} | {{{p118|}}} | {{{p119|}}} | {{{p120 | <dd>{{{p101}}}</dd> | ||
{{#if:{{{p102|}}} | <dd>{{{p102}}}</dd>}} | |||
{{#if:{{{p103|}}} | <dd>{{{p103}}}</dd>}} | |||
{{#if:{{{p104|}}} | <dd>{{{p104}}}</dd>}} | |||
{{#if:{{{p105|}}} | <dd>{{{p105}}}</dd>}} | |||
{{#if:{{{p106|}}} | <dd>{{{p106}}}</dd>}} | |||
{{#if:{{{p107|}}} | <dd>{{{p107}}}</dd>}} | |||
{{#if:{{{p108|}}} | <dd>{{{p108}}}</dd>}} | |||
{{#if:{{{p109|}}} | <dd>{{{p109}}}</dd>}} | |||
{{#if:{{{p110|}}} | <dd>{{{p110}}}</dd>}} | |||
{{#if:{{{p111|}}} | <dd>{{{p111}}}</dd>}} | |||
{{#if:{{{p112|}}} | <dd>{{{p112}}}</dd>}} | |||
{{#if:{{{p113|}}} | <dd>{{{p113}}}</dd>}} | |||
{{#if:{{{p114|}}} | <dd>{{{p114}}}</dd>}} | |||
{{#if:{{{p115|}}} | <dd>{{{p115}}}</dd>}} | |||
{{#if:{{{p116|}}} | <dd>{{{p116}}}</dd>}} | |||
{{#if:{{{p117|}}} | <dd>{{{p117}}}</dd>}} | |||
{{#if:{{{p118|}}} | <dd>{{{p118}}}</dd>}} | |||
{{#if:{{{p119|}}} | <dd>{{{p119}}}</dd>}} | |||
{{#if:{{{p120|}}} | <dd>{{{p120}}}</dd>}} | |||
}}<!-- | |||
--><dt>Return Value:</dt> | --><dt>Return Value:</dt> | ||
Line 193: | Line 305: | ||
-->{{ | -->{{TemplateCase|| | ||
[[Category:{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}]]<!-- | [[Category:{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}]]<!-- | ||
<nowiki>{{#if:{{{game1|{{{1|}}}}}} | {{GameCategory|{{{game1|{{{1|}}}}}} | Introduced in v{{{version1|{{{2|?}}}}}}}}</nowiki> | |||
-->{{#if:{{{game1|{{{1|}}}}}} | [[Category:Introduced with {{Name|{{{game1|{{{1}}}}}}}} version {{{version1|{{{2}}}}}}]] | |||
{{GameCategory|{{{game1|{{{1|}}}}}} | New {{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}}} | {{GameCategory|{{{game1|{{{1|}}}}}} | New {{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}}} | ||
{{GameCategory|{{{game1|{{{1|}}}}}}|{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}}}}}<!-- | {{GameCategory|{{{game1|{{{1|}}}}}}|{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}}} | ||
}}<!-- | |||
-->{{#if:{{{game2|}}} | {{GameCategory|{{{game2}}}|{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}}}}}<!-- | -->{{#if:{{{game2|}}} | {{GameCategory|{{{game2}}}|{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}}}}}<!-- | ||
-->{{#if:{{{game3|}}} | {{GameCategory|{{{game3}}}|{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}}}}}<!-- | -->{{#if:{{{game3|}}} | {{GameCategory|{{{game3}}}|{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}}}}}<!-- | ||
Line 209: | Line 326: | ||
-->{{#if: {{{gr5|}}} | [[Category:Command Group: {{Trim|{{{gr5}}}}}|{{Trim|{{{gr5}}}}}]] }}<!-- | -->{{#if: {{{gr5|}}} | [[Category:Command Group: {{Trim|{{{gr5}}}}}|{{Trim|{{{gr5}}}}}]] }}<!-- | ||
-->{{#if: {{{gr1|}}}{{{gr2|}}}{{{gr3|}}}{{{gr4|}}}{{{gr5|}}} | | [[Category:Command Group: Uncategorised|Uncategorised]] }}<!-- | -->{{#if: {{{gr1|}}}{{{gr2|}}}{{{gr3|}}}{{{gr4|}}}{{{gr5|}}} | | [[Category:Command Group: Uncategorised|Uncategorised]] }}<!-- | ||
-->{{#if:{{{seealso|{{{6|}}}}}} | | [[Category:See also needed]]}}<!-- | -->{{#if:{{{seealso|{{{6|}}}}}} | | [[Category:See also needed]]}}<!-- | ||
Line 230: | Line 344: | ||
########################################################################### | ########################################################################### | ||
-->[[:Category:Scripting Commands|Commands]]/[[:Category:Functions|Functions]] documentation template. | -->[[Real Virtuality]] [[:Category:Scripting Commands|Commands]]/[[:Category:Functions|Functions]] documentation template. | ||
== Usage == | == Usage == | ||
Line 333: | Line 447: | ||
|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 21:03, 22 January 2021
Real Virtuality Commands/Functions documentation template.
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 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 Template:ServerExec icon informing the command must be run on the server
- descr: (can be unnamed parameter 3) 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:
- 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
Command | Function |
---|---|
|
|
Examples
Code | Result |
---|---|
{{RV}} | -no type provided- |
{{RV|type=abc}} | -wrong type provided- |
{{RV|type=command}} | Hover & click on the images for descriptions
Description
Syntax
ExamplesAdditional InformationNotes |
{{RV|type=function}} | Hover & click on the images for descriptions
Description
Syntax
ExamplesAdditional InformationNotes |
Template
{{RV|type=Command |game1= |game2= |game3= |game4= |game5= |version1= |version2= |version3= |version4= |version5= |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= }}