Template:Command/examples

From Bohemia Interactive Community
< Template:Command
Jump to navigation Jump to search


Template used by Template:Command and Template:Function.

Usage

{{Command/examples|example1|example2|(...)|example10}}

  • example1..10: code example (should be provided with <code></code> tags wherever needed)
Examples
Code Result
{{Command/examples}}
Example:
Example needed
{{Command/examples||2|3}}
Example:
Example needed
{{Command/examples|1|2|3|4|5||7||9|10}}
Example 1:
1
Example 2:
2
Example 3:
3
Example 4:
4
Example 5:
5
Example 7:
7
Example 9:
9
Example 10:
10
{{Command/examples|[[player]] [[setDamage]] 1}}
Example 1:
player setDamage 1
{{Command/examples|<code>[[player]] [[setDamage]] 1</code>}}
Example 1:
player setDamage 1