Lou Montana/Sandbox – User
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (A template to rule them all?) |
Lou Montana (talk | contribs) m (Add DefaultSort, remove auto-categories) |
||
Line 4: | Line 4: | ||
| FUNCTION = | | FUNCTION = | ||
__NOTOC__ __NOEDITSECTION__ | __NOTOC__ __NOEDITSECTION__ | ||
{{DISPLAYTITLE:{{#ifeq: {{uc:{{FULLPAGENAME}}}} | TEMPLATE:RV | {{FULLPAGENAMEE}} | {{PAGENAMEE}} }} }} | {{DISPLAYTITLE:{{#ifeq: {{uc:{{FULLPAGENAME}}}} | TEMPLATE:RV | {{FULLPAGENAMEE}} | {{PAGENAMEE}} }} }}<!-- | ||
<div class="_description {{#ifeq:{{lc:{{{type}}}}}|command|cmd|fnc}}"> | -->{{DEFAULTSORT:{{uc:{{#replace:{{#replace:{{PAGENAMEE}}|BIS_fnc_|}}|BIN_fnc_|}}}}}}<!-- | ||
--><div class="_description {{#ifeq:{{lc:{{{type}}}}}|command|cmd|fnc}}"> | |||
<div class="top-icons"><!-- | <div class="top-icons"><!-- | ||
-->{{#if:{{{game1|{{{1|}}}}}} | {{GVI | {{{game1|{{{1|}}}}}} | {{{version1|}}} }}<!-- | -->{{#if:{{{game1|{{{1|}}}}}} | {{GVI | {{{game1|{{{1|}}}}}} | {{{version1|}}} }}<!-- | ||
-->{{#ifeq: {{Name|{{{game1|{{{1|}}}}}}}} | {{Name|arma3dev}} | {{Color|red|⚠ }}[[Arma 3 Steam Branches#Arma 3|{{Color|red|DEV BRANCH}}]]{{Color|red| ONLY ⚠}}}}<!-- | -->{{#ifeq: {{Name|{{{game1|{{{1|}}}}}}}} | {{Name|arma3dev}} | {{Color|red|⚠ }}[[Arma 3 Steam Branches#Arma 3|{{Color|red|DEV BRANCH}}]]{{Color|red| ONLY ⚠}}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{game2|}}} | {{GVI | {{{game2}}} | {{{version2|} | -->{{#if:{{{game2|}}} | {{GVI | {{{game2}}} | {{{version2|}}} }} }}<!-- | ||
-->{{#if:{{{game3|}}} | {{GVI | {{{game3}}} | {{{version3|} | -->{{#if:{{{game3|}}} | {{GVI | {{{game3}}} | {{{version3|}}} }} }}<!-- | ||
-->{{#if:{{{game4|}}} | {{GVI | {{{game4}}} | {{{version4|} | -->{{#if:{{{game4|}}} | {{GVI | {{{game4}}} | {{{version4|}}} }} }}<!-- | ||
-->{{#if:{{{game5|}}} | {{GVI | {{{game5}}} | {{{version5|} | -->{{#if:{{{game5|}}} | {{GVI | {{{game5}}} | {{{version5|}}} }} }}<!-- | ||
-->{{#if:{{{arg|}}}{{{eff|}}} | <span style="margin-left: 1em"><!-- space between game versions and arguments/effects | -->{{#if:{{{arg|}}}{{{eff|}}} | <span style="margin-left: 1em"><!-- space between game versions and arguments/effects | ||
Line 20: | Line 21: | ||
--></span>}}<!-- | --></span>}}<!-- | ||
-->{{#if:{{{serverExec|}}} | <span style="margin-left: 1em">{{ServerExec | {{#ifeq:{{lc:{{{type}}}}}|command|cmd|fnc}} | {{#ifeq: {{uc:{{FULLPAGENAME}}}} | TEMPLATE:COMMAND | | categorize}}}}</span> | -->{{#if:{{{serverExec|}}} | <span style="margin-left: 1em">{{ServerExec | {{#ifeq:{{lc:{{{type}}}}}|command|cmd|fnc}} | {{#ifeq: {{uc:{{FULLPAGENAME}}}} | TEMPLATE:COMMAND | | categorize}}}}</span>}}<!-- ServerExec Param with left spacing from arguments/effects | ||
--> | --> | ||
Line 42: | Line 43: | ||
<dd> | <dd> | ||
{{{mp}}} | {{{mp}}} | ||
</dd> | </dd>}}<!-- | ||
-->{{#if:{{{pr|}}}| | -->{{#if:{{{pr|}}}| | ||
Line 48: | Line 49: | ||
<dd> | <dd> | ||
{{{pr}}} | {{{pr}}} | ||
</dd> | </dd>}}<!-- | ||
--><h3>Syntax</h3> | --><h3>Syntax</h3> | ||
Line 143: | Line 144: | ||
--><h3>Examples</h3> | --><h3>Examples</h3> | ||
<dl> | <dl> | ||
{{ | {{#if:{{{x1|}}}{{{x2|}}}{{{x3|}}}{{{x4|}}}{{{x5|}}}{{{x6|}}}{{{x7|}}}{{{x8|}}}{{{x9|}}}{{{x10|}}} | ||
| | |||
{{#if: {{{x1|}}}|<dt>Example 1</dt><dd>{{{x1}}}</dd>}}<!-- | |||
-->{{#if: {{{x2|}}}|<dt>Example 2</dt><dd>{{{x2}}}</dd>}}<!-- | |||
-->{{#if: {{{x3|}}}|<dt>Example 3</dt><dd>{{{x3}}}</dd>}}<!-- | |||
-->{{#if: {{{x4|}}}|<dt>Example 4</dt><dd>{{{x4}}}</dd>}}<!-- | |||
-->{{#if: {{{x5|}}}|<dt>Example 5</dt><dd>{{{x5}}}</dd>}}<!-- | |||
-->{{#if: {{{x6|}}}|<dt>Example 6</dt><dd>{{{x6}}}</dd>}}<!-- | |||
-->{{#if: {{{x7|}}}|<dt>Example 7</dt><dd>{{{x7}}}</dd>}}<!-- | |||
-->{{#if: {{{x8|}}}|<dt>Example 8</dt><dd>{{{x8}}}</dd>}}<!-- | |||
-->{{#if: {{{x9|}}}|<dt>Example 9</dt><dd>{{{x9}}}</dd>}}<!-- | |||
-->{{#if:{{{x10|}}}|<dt>Example 10</dt><dd>{{{x10}}}</dd>}} | |||
| {{Example needed}} | |||
}} | |||
</dl> | </dl> | ||
<h3>Additional Information</h3> | <h3>Additional Information</h3> | ||
<dl> | <dl> | ||
<dt>See also:</dt> | <dt>See also:</dt> | ||
<dd class="seealso">{{#if:{{{seealso|{{{6|}}}}}} | <dd class="seealso"><!-- | ||
|{{#replace: | -->{{#if:{{{seealso|{{{6|}}}}}} | ||
| {{#replace: | |||
{{#replace:{{{seealso|{{{6}}}}}}|], [|][}} | {{#replace:{{{seealso|{{{6}}}}}}|], [|][}} | ||
|],[|][}} | |],[|][}} | ||
| [[:Category:See also needed|See also needed]]}}</dd> | | [[:Category:See also needed|See also needed]] | ||
}}</dd> | |||
<dt>Groups:</dt> | <dt>Groups:</dt> | ||
<dd class="seealso"><!-- | <dd class="seealso"><!-- | ||
-->{{#if: {{{gr1|}}} | [[:Category:Command Group: {{Trim|{{{gr1}}}}}|{{Trim|{{{gr1}}}}}]] }}<!-- | -->{{#if: {{{gr1|}}}{{{gr2|}}}{{{gr3|}}}{{{gr4|}}}{{{gr5|}}} |<!-- | ||
-->{{#if: {{{gr2|}}} | [[:Category:Command Group: {{Trim|{{{gr2}}}}}|{{Trim|{{{gr2}}}}}]] }}<!-- | -->{{#if: {{{gr1|}}} | [[:Category:Command Group: {{Trim|{{{gr1}}}}}|{{Trim|{{{gr1}}}}}]] }}<!-- | ||
-->{{#if: {{{gr3|}}} | [[:Category:Command Group: {{Trim|{{{gr3}}}}}|{{Trim|{{{gr3}}}}}]] }}<!-- | -->{{#if: {{{gr2|}}} | [[:Category:Command Group: {{Trim|{{{gr2}}}}}|{{Trim|{{{gr2}}}}}]] }}<!-- | ||
-->{{#if: {{{gr4|}}} | [[:Category:Command Group: {{Trim|{{{gr4}}}}}|{{Trim|{{{gr4}}}}}]] }}<!-- | -->{{#if: {{{gr3|}}} | [[:Category:Command Group: {{Trim|{{{gr3}}}}}|{{Trim|{{{gr3}}}}}]] }}<!-- | ||
-->{{#if: {{{gr5|}}} | [[:Category:Command Group: {{Trim|{{{gr5}}}}}|{{Trim|{{{gr5}}}}}]] }}<!-- | -->{{#if: {{{gr4|}}} | [[:Category:Command Group: {{Trim|{{{gr4}}}}}|{{Trim|{{{gr4}}}}}]] }}<!-- | ||
--> | -->{{#if: {{{gr5|}}} | [[:Category:Command Group: {{Trim|{{{gr5}}}}}|{{Trim|{{{gr5}}}}}]] }}<!-- | ||
-->| [[:Category:Command Group: Uncategorised|Uncategorised]] | |||
}} | |||
</dd> | </dd> | ||
</dl> | </dl> | ||
Line 177: | Line 195: | ||
</dd> | </dd> | ||
</div><!-- | </div><!-- | ||
CATEGORIES | CATEGORIES | ||
-->{{#ifeq:{{uc:{{ | |||
-->{{#ifeq:{{uc:{{NAMESPACE}}}}|USER|| | |||
[[Category:{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}]]<!-- | [[Category:{{#ifeq:{{lc:{{{type}}}}}|command|Scripting Commands|Functions}}]]<!-- | ||
-->{{#if:{{{game1|{{{1|}}}}}} | {{GameCategory|{{{game1|{{{1|}}}}}} | Introduced in v{{{version1|?}}}}} | -->{{#if:{{{game1|{{{1|}}}}}} | {{GameCategory|{{{game1|{{{1|}}}}}} | Introduced in v{{{version1|?}}}}} | ||
Line 195: | Line 215: | ||
-->{{#if: {{{gr4|}}} | [[Category:Command Group: {{Trim|{{{gr4}}}}}|{{Trim|{{{gr4}}}}}]] }}<!-- | -->{{#if: {{{gr4|}}} | [[Category:Command Group: {{Trim|{{{gr4}}}}}|{{Trim|{{{gr4}}}}}]] }}<!-- | ||
-->{{#if: {{{gr5|}}} | [[Category:Command Group: {{Trim|{{{gr5}}}}}|{{Trim|{{{gr5}}}}}]] }}<!-- | -->{{#if: {{{gr5|}}} | [[Category:Command Group: {{Trim|{{{gr5}}}}}|{{Trim|{{{gr5}}}}}]] }}<!-- | ||
-->{{#if: {{{gr1|}}}{{{gr2|}}}{{{gr3|}}}{{{gr4|}}}{{{gr5|}}} | | [[ | -->{{#if: {{{gr1|}}}{{{gr2|}}}{{{gr3|}}}{{{gr4|}}}{{{gr5|}}} | | [[Category:Command Group: Uncategorised|Uncategorised]] }}<!-- | ||
-->{{#if:{{{arg|}}} | [[Category:{{#ifeq:{{{arg}}}|local|Local|Global}} Argument Scripting Commands]]}}<!-- | -->{{#if:{{{arg|}}} | [[Category:{{#ifeq:{{{arg}}}|local|Local|Global}} Argument Scripting Commands]]}}<!-- | ||
Line 203: | Line 223: | ||
-->}} | -->}} | ||
|= -no type provided- | |= -no type provided- | ||
|#default = -wrong type provided-}} | |#default = -wrong type provided-}}</includeonly><noinclude> | ||
</includeonly><noinclude> | |||
== Usage == | == Usage == |
Revision as of 00:26, 13 January 2021
Usage
{{RV|type=|other arguments}}
- type: (named argument, case-insensitive) "command" or "function"
Examples
Code | Result |
---|---|
{{RV}} |
-no type provided- |
{{RV|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= }}