Template:Number of soldiers
(Redirected from Template:Number of troops)
A template for creating a table row describing the number of troops in a country's armed forces.
Usage
<syntaxhighlight lang="wikitext">|- style="height:10px"
|
| [[|]]
| style="text-align:right;" |
| style="text-align:right;" |
| style="text-align:right;" |
| style="text-align:right;" | 0
| style="text-align:right;" | Expression error: Unexpected * operator.
| style="text-align:right;" | </syntaxhighlight>
Parameters
All numeric parameters accept a number or empty string. Giving a numeric parameter a non-numeric input will produce an error.
- Country
- The name of the country.
- Military
- The name of the country's military.
- Active
- Number of active troops. (numeric)
- Reserve
- Number of reserve force. (numeric)
- Paramilitary
- Number of paramilitary troops. (numeric)
- Population
- Population of the country. Used to calculate total and active troops per 1000 citizens. (numeric)
- References
- References to sources.
Example
- Code
<syntaxhighlight lang="wikitext">
Flag | State | Active | Reserve | Paramilitary | Total | Total/1000 | Active/1000 |
---|---|---|---|---|---|---|---|
![]() |
Albania[1] | 20,000 | 5,000 | 25,000 | 7.9 | 6.3 | |
![]() |
NATO | 20,000 | 5,000 | 25,000 | 7.9 | 6.3 |
</syntaxhighlight>
- Resulting table
Flag | State | Active | Reserve | Paramilitary | Total | Total/1000 | Active/1000 |
---|---|---|---|---|---|---|---|
![]() |
Albania[1] | 20,000 | 5,000 | 25,000 | 7.9 | 6.3 | |
![]() |
NATO | 20,000 | 5,000 | 25,000 | 7.9 | 6.3 |