Difference between revisions of "Template:Infobox national military/sandbox"
Jump to navigation
Jump to search
imported>Illegitimate Barrister |
imported>Melbguy05 (Revert to 26 March version) |
||
Line 2: | Line 2: | ||
| bodystyle = {{WPMILHIST Infobox style|main_box_raw}} | | bodystyle = {{WPMILHIST Infobox style|main_box_raw}} | ||
| abovestyle = {{WPMILHIST Infobox style|header_raw}} | | abovestyle = {{WPMILHIST Infobox style|header_raw}} | ||
− | | above = {{#if:{{{name|}}}|{{{name|}}}|[[Military of {{{country}}}]]}} | + | | subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}} |
− | + | | above = {{#if:{{{name|}}}|{{{name|}}}|[[Military of {{{country}}}]]}} | |
+ | | subheader = {{#if:{{{native_name|}}}|''{{{native_name}}}''}} | ||
| imagestyle = {{#if:{{{founded|}}}{{{current_form|}}}{{{disbanded|}}}{{{branches|}}}{{{headquarters|}}} | {{WPMILHIST Infobox style|image_box_raw}} | {{WPMILHIST Infobox style|image_box_plain_raw}} }} | | imagestyle = {{#if:{{{founded|}}}{{{current_form|}}}{{{disbanded|}}}{{{branches|}}}{{{headquarters|}}} | {{WPMILHIST Infobox style|image_box_raw}} | {{WPMILHIST Infobox style|image_box_plain_raw}} }} | ||
| captionstyle = | | captionstyle = | ||
Line 14: | Line 15: | ||
| headerstyle = {{WPMILHIST Infobox style|header_raw}} | | headerstyle = {{WPMILHIST Infobox style|header_raw}} | ||
− | | label1 = | + | | label1 = Motto |
− | | data1 = {{{ | + | | data1 = {{{motto|}}} |
− | | label2 = | + | | label2 = Founded |
− | | data2 = {{{ | + | | data2 = {{{founded|}}} |
− | | label3 = | + | | label3 = Current form |
− | | data3 = {{{ | + | | data3 = {{{current_form|}}} |
− | | label4 = | + | | label4 = Disbanded |
− | | data4 = {{{ | + | | data4 = {{{disbanded|}}} |
− | | label5 = | + | | label5 = Service branches |
− | | data5 = {{{ | + | | data5 = {{{branches|}}} |
− | | label6 = | + | | label6 = Headquarters |
− | | data6 = {{{ | + | | data6 = {{{headquarters|}}} |
− | | | + | | label7 = Air arm flying hours |
+ | | data7 = {{{flying_hours|}}} | ||
− | | label8 | + | | label8 = Website |
− | + | | data8 = {{{website|{{{url|}}}}}} | |
− | | | + | | header9 = {{#if:{{{commander-in-chief|}}}{{{chief minister|}}}{{{minister|}}}{{{commander|}}} | Leadership }} |
− | |||
− | | label10 = {{#if:{{{ | + | | label10 = {{#if:{{{commander-in-chief_title|}}}|{{{commander-in-chief_title|}}}|Commander-in-Chief}} |
− | | data10 = {{{commander|}}} | + | | data10 = {{{commander-in-chief|}}} |
− | | | + | | label11 = {{#if:{{{chief minister_title|}}}|{{{chief minister_title|}}}|De facto leader}} |
+ | | data11 = {{{chief minister|}}} | ||
− | | label12 = | + | | label12 = {{#if:{{{minister_title|}}}|{{{minister_title|}}}|Minister of Defense}} |
− | | data12 = {{{ | + | | data12 = {{{minister|}}} |
− | | label13 = | + | | label13 = {{#if:{{{chief_of_staff_title|}}}|{{{chief_of_staff_title|}}}|Chief of Staff}} |
− | | data13 = {{{ | + | | data13 = {{{chief_of_staff|}}} |
− | | label14 = Available for<br/>military service | + | | label14 = {{#if:{{{commander_title|}}}|{{{commander_title|}}}|Chief of Defense}} |
− | | | + | | data14 = {{{commander|}}} |
+ | |||
+ | | header15 = {{#if:{{{age|}}}{{{conscription|}}}{{{available|}}}{{{fit|}}}{{{reaching|}}}{{{active|}}}{{{reserve|}}}{{{deployed|}}} | Manpower }} | ||
+ | |||
+ | | label16 = Military age | ||
+ | | data16 = {{{age|}}} | ||
+ | |||
+ | | label17 = Conscription | ||
+ | | data17 = {{{conscription|}}} | ||
+ | |||
+ | | label18 = Available for<br/>military service | ||
+ | | data18 = {{#if:{{{available|}}}| {{{available|}}}{{#if:{{{available_f|}}} | males, age {{#if:{{{manpower_age|}}}|{{{manpower_age|}}}|15–49}}{{#if:{{{manpower_data|}}}||,}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}}),}}<br/>{{{available_f|}}} females, age {{#if:{{{manpower_age|}}}|{{{manpower_age|}}}|15–49}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | ||
|, age {{#if:{{{manpower_age|}}}|{{{manpower_age|}}}|15–49}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | |, age {{#if:{{{manpower_age|}}}|{{{manpower_age|}}}|15–49}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | ||
}}}} | }}}} | ||
− | | | + | | label19 = Fit for<br/>military service |
− | | | + | | data19 = {{#if:{{{fit|}}} | {{{fit|}}}{{#if:{{{fit_f|}}} | males, age {{#if:{{{manpower_age|}}}|{{{manpower_age|}}}|15–49}}{{#if:{{{manpower_data|}}}||,}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}}),}}<br/>{{{fit_f|}}} females, age {{#if:{{{manpower_age|}}}|{{{manpower_age|}}}|15–49}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} |
|, age {{#if:{{{manpower_age|}}}|{{{manpower_age|}}}|15–49}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | |, age {{#if:{{{manpower_age|}}}|{{{manpower_age|}}}|15–49}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | ||
}}}} | }}}} | ||
− | | | + | | label20 = Reaching military<br/>age annually |
− | | | + | | data20 = {{{reaching|}}} {{#if:{{{reaching_f|}}} |
|males{{#if:{{{manpower_data|}}}||,}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}}),}}<br/>{{{reaching_f|}}} females {{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | |males{{#if:{{{manpower_data|}}}||,}} {{#if:{{{manpower_data|}}}|({{{manpower_data|}}}),}}<br/>{{{reaching_f|}}} females {{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | ||
|{{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | |{{#if:{{{manpower_data|}}}|({{{manpower_data|}}})}} | ||
}} | }} | ||
− | | | + | | label21 = Active personnel |
− | | | + | | data21 = {{{active|}}} {{#if:{{{ranked|}}}|([[List of countries by number of military and paramilitary personnel|ranked {{{ranked|}}}]])}} |
− | | | + | | label22 = Reserve personnel |
− | | | + | | data22 = {{{reserve|}}} |
− | | | + | | label23 = Deployed personnel |
− | | | + | | data23 = {{{deployed|}}} |
− | | | + | | header24 = {{#if:{{{amount|}}}{{{percent_GDP|}}} | Expenditures }} |
− | | | + | | label25 = Budget |
− | | | + | | data25 = {{{amount|}}} |
− | | | + | | label26 = Percent of GDP |
− | | | + | | data26 = {{{percent_GDP|}}} |
− | | | + | | header27 = {{#if:{{{domestic_suppliers|}}}{{{foreign_suppliers|}}}{{{imports|}}}{{{exports|}}} | Industry }} |
− | | | + | | label28 = Domestic suppliers |
− | | | + | | data28 = {{{domestic_suppliers|}}} |
− | | | + | | label29 = Foreign suppliers |
− | | | + | | data29 = {{{foreign_suppliers|}}} |
− | | | + | | label30 = Annual imports |
− | | | + | | data30 = {{{imports|}}} |
− | | | + | | label31 = Annual exports |
− | | | + | | data31 = {{{exports|}}} |
− | | | + | | header32 = {{#if:{{{history|}}}{{{ranks|}}} | Related articles }} |
− | | | + | | label33 = History |
− | | | + | | data33 = {{{history|}}} |
− | | | + | | label34 = Ranks |
− | | | + | | data34 = {{{ranks|}}} |
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 20:31, 11 May 2020
[[Military of {{{country}}}]] |
---|
![]() | This is the template sandbox page for Template:Infobox national military (diff). See also the companion subpage for test cases. |
Usage
National military infobox
Template:Parameter names example Template:Parameter names example
A national military infobox may be used to summarize information about a country's military and armed forces. The infobox should be added using the {{infobox national military}}
template, as shown below:
{{Infobox national military | name = <!-- or | country = --> | native_name = | image = | alt = | caption = | image2 = | alt2 = | caption2 = | motto = | founded = | current_form = | disbanded = | branches = | headquarters = | flying_hours = | website = <!--{{URL|example.mil}}--> <!-- Leadership --> | commander-in-chief = | commander-in-chief_title = | chief minister = | chief minister_title = | minister = | minister_title = | chief_of_staff = | chief_of_staff_title = | commander = | commander_title = <!-- Manpower --> | age = | conscription = | manpower_data = | manpower_age = | available = | available_f = | fit = | fit_f = | reaching = | reaching_f = | active = | ranked = | reserve = | deployed = <!-- Financial --> | amount = | percent_GDP = <!-- Industrial --> | domestic_suppliers = | foreign_suppliers = | imports = | exports = <!-- Related articles --> | history = | ranks = }}
Parameters
Note: When using parameters, avoid the ambiguous abbreviation "N/A", and instead use "unknown" or "none". All subjective or qualitative judgements and numerical quantities or statistics must be cited to a reliable source (see WP:MILMOS#CITE).
- country – optional – The name of the country.
- name – optional – The name of the country's armed forces, if different from "Military of Country".
- native_name – optional – The name of the country's armed forces in that country's official language(s), if other than English.
- image – optional – An image relevant to the county's armed forces. It should be given in the form
Example.jpg
. - image_size – optional – Used to override the default image size. It should be given in the form
300px
. - alt – optional – Alternative text for visually impaired users, see WP:ALT.
- caption – optional – The text to be placed below the image.
- image2 – optional – A secondary image relevant to the county's armed forces. It should be given in the form
Example.jpg
. - image_size2 – optional – Used to override the default image size. It should be given in the form
300px
. - alt2 – optional – Alternative text for visually impaired users, see WP:ALT.
- caption2 – optional – The text to be placed below the secondary image.
- founded – optional – The date when the armed forces were founded.
- current_form – optional – In cases where the armed forces have undergone major reorganizations, the date when they took their current form.
- disbanded – optional – The date when the armed force were disbanded.
- branches – optional – The service branches (e.g. army, navy, air force, etc.) that comprise the armed forces.
- headquarters – optional – The headquarters of the armed forces.
- flying_hours – optional – The hours flown by the armed forces' air arm, if any.
- website or url – optional – The official website, use {{URL}}.
Leadership parameters:
- commander-in-chief – optional – The name of the formal commander-in-chief of the armed forces.
- commander-in-chief_title – optional – The formal title of the commander-in-chief named above; this defaults to "Commander-in-Chief" if left blank.
- chief minister – optional – The name of the person expected to be the supreme executive decision maker, to be used if the formal commander-in-chief is a figurehead or if that position is under normal circumstances expected to be nominal (e.g. in a constitutional monarchy or a parliamentary republic).
- chief minister_title – optional – The formal title of the official named above; this defaults to "De facto leader" if left blank.
- minister – optional – The name of the official (generally a civilian minister or secretary) responsible for all or most of the armed forces.
- minister_title – optional – The formal title of the official named above; this defaults to "Minister of Defense" if left blank.
- chief_of_staff – optional – The senior-most military officer in the Armed Forces and is the principal military advisor to the commander in chief.
- chief_of_staff_title – optional – the formal title of the military officer named above; this defaults to "Chief of Staff" if left blank.
- commander – optional – The highest ranked career professional of the armed forces.
- commander_title – optional – the formal title of the military officer named above; this defaults to "Chief of Defense" if left blank.
Manpower parameters:
- age – optional – The minimum (and, if applicable, maximum) ages for military service.
- conscription – optional – The conscription age and term.
- manpower_data – optional – The source of the manpower data; for example, if the data is a 1998 estimate, this should be indicated as "1998 est.".
- manpower_age – optional – The ages assumed for the manpower data; for example, if the data considers people of age 15–49 to be of military age, this should be indicated as "15–49".
- available – optional – The total number of people of the proper age for military service; this may indicate either males and females together, or only males if the available_f field is used.
- available_f – optional – For countries that allow female military service, the total number of females of the proper age; if this field is used, the available field should only indicate males.
- fit – optional – The total number of people of the proper age fit for service; this may indicate either males and females together, or only males if the fit_f field is used.
- fit_f – optional – For countries that allow female military service, the total number of females of the proper age fit for service; if this field is used, the fit field should only indicate males.
- reaching – optional – The total number of people reaching military age each year; this may indicate either males and females together, or only males if the reaching_f field is used.
- reaching_f – optional – For countries that allow female military service, the total number of females reaching military age each year; if this field is used, the reaching field should only indicate males.
- active – optional – The total number of personnel currently in the country's armed forces.
- ranked – optional – The ranking of the country on the list of countries by number of military and paramilitary personnel (e.g. "21st").
- reserve – optional – The total number of reserve personnel in the country's armed forces.
- deployed – optional – The total number of personnel currently deployed outside the country's borders.
Financial parameters:
- amount – optional – The country's total military expendiures.
- percent_GDP – optional – The percent of the country's GDP spent on military expenditures.
Industrial parameters:
- domestic_suppliers – optional – The major domestic suppliers of equipment to the country's armed forces.
- foreign_suppliers – optional – The major foreign suppliers of equipment to the country's armed forces; this may be either countries or more specific organizations.
- imports – optional – The total value of annual military imports by the country.
- exports – optional – The total value of annual military exports by the country.
Related articles:
- history – optional – Links to one or more articles about the country's military history.
- ranks – optional – Links to one or more articles about the country's military ranks.
Example
Swiss Armed Forces | |
---|---|
Template:Ubl | |
![]() | |
Current form | Army XXI |
Service branches | Template:Ubl |
Website | Template:URL |
Leadership | |
Commander-in-chief | Vacant in peacetime |
DDPS Minister | Viola Amherd |
Chief of the Armed Forces | Lt Gen Thomas Süssli |
Manpower | |
Military age | 19 years of age for male compulsory military service; 18 years of age for voluntary male and female military service; |
Conscription | Template:Ubl |
Available for military service | 1,852,580 males, age 16–49 (2009 est.), 1,807,667 females, age 16–49 (2009 est.) |
Fit for military service | 1,510,259 males, age 16–49 (2009 est.), 1,475,993 females, age 16–49 (2009 est.) |
Reaching military age annually | 48,076 males (2009 est.), 44,049 females (2009 est.) |
Active personnel | 140,304 (2019) (ranked 47th) |
Expenditures | |
Budget | CHF 5.12 billion (~Template:US$, 2020) |
Percent of GDP | 0.68% (2018) |
Related articles | |
Ranks | Military ranks of the Swiss Armed Forces |
{{Infobox national military | name = Swiss Armed Forces | native_name = {{ubl|{{native name|de|Schweizer Armee}}|{{native name|fr|Armée suisse}}|{{native name|it|Esercito svizzero}}|{{native name|rm|Armada svizra}}}} | image = Armee CH logo.svg | alt = Armee CH logo | current_form = Army XXI | branches = {{ubl|[[Swiss Armed Forces#Army history|Army]]|[[Swiss Air Force|Air Force]]}} | website = {{URL|https://www.vtg.admin.ch/}} <!-- Leadership --> | commander-in-chief = Vacant in peacetime | commander-in-chief_title = [[General (Switzerland)|Commander-in-chief]] | minister = [[Viola Amherd]] | minister_title = [[Federal Department of Defence, Civil Protection and Sport|DDPS Minister]] | commander = Lt Gen [[Thomas Süssli]] | commander_title = [[Chief of the Armed Forces (Switzerland)|Chief of the Armed Forces]] <!-- Manpower --> | age = 19 years of age for male compulsory military service; 18 years of age for voluntary male and female military service; | conscription = {{ubl|19–34 years of age (males only)|36 for subaltern officers, 52 for staff officers and higher}} | manpower_data = 2009 est. | manpower_age = 16–49 | available = 1,852,580 | available_f = 1,807,667 | fit = 1,510,259 | fit_f = 1,475,993 | reaching = 48,076 | reaching_f = 44,049 | active = 140,304 (2019) | ranked = 47th <!-- Financial --> | amount = {{CHF|link=yes|5.12}} billion (~{{US$|5.27 billion}}, 2020) | percent_GDP = 0.68% (2018) <!-- Related aricles --> | ranks = [[Military ranks of the Swiss Armed Forces]] }}
The above documentation is transcluded from Template:Infobox national military/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |