Difference between revisions of "Template:Infobox war faction/doc"
imported>Cedewey m (→Usage) |
imported>Zyxw (add {{Parameter names example}}, show full blank template, move example to separate section and display with code, add link to tracking category, add category) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| + | {{Lua|Module:Infobox|Module:InfoboxImage}} | ||
| − | + | A war faction infobox may be used to summarize information about a particular faction participating in a war; it should not be used for regular military units and formations (which should use {{tl|infobox military unit}} instead). The infobox should be added using the {{tl|infobox war faction}} template, as shown below: | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | + | == Usage == | |
| + | {{Parameter names example | name | native_name | native_name_lang | war | image | image_size | image_alt | caption | active | ideology | allegiance | clans | founders | founder | founding_leader <!--| leader_title--> | leaders | leader | military_leader | political_leader | leader1_title | leader1_name | leader2_title | leader2_name | spokesperson | spokesman | headquarters | area | strength | partof | predecessor | split_from | merger_of | previous | originated_as | original_name | formerly | former_name | next | became | later_name | merged_into | merged_to | split_to | successor | allies | opponents | battles | organizations | website | url | designated_as_terror_group_by | identification_symbol_label | identification_symbol | identification_symbol_2_label | identification_symbol_2 | identification_symbol_3_label | identification_symbol_3 | identification_symbol_4_label | identification_symbol_4 }} | ||
| − | + | {| | |
| − | {{ | + | ! Basic usage |
| + | ! Full usage | ||
| + | |- style="vertical-align:top;" | ||
| + | |<pre style="overflow:auto;"> | ||
| + | {{Infobox war faction | ||
| name = | | name = | ||
| native_name = | | native_name = | ||
| Line 57: | Line 34: | ||
| opponents = | | opponents = | ||
| battles = | | battles = | ||
| − | | | + | | website = |
| − | }} | + | }}</pre> |
| − | </pre></ | + | |<pre style="overflow:auto;"> |
| + | {{Infobox war faction | ||
| + | | name = | ||
| + | | native_name = | ||
| + | | native_name_lang = | ||
| + | | war = | ||
| + | | image = | ||
| + | | image_size = | ||
| + | | image_alt = | ||
| + | | caption = | ||
| + | | active = | ||
| + | | ideology = | ||
| + | | allegiance = | ||
| + | | clans = | ||
| + | | founders = | ||
| + | | founder = | ||
| + | | founding_leader = | ||
| + | | leader_title = | ||
| + | | leaders = | ||
| + | | leader = | ||
| + | | military_leader = | ||
| + | | political_leader = | ||
| + | | leader1_title = | ||
| + | | leader1_name = | ||
| + | | leader2_title = | ||
| + | | leader2_name = | ||
| + | | spokesperson = | ||
| + | | spokesman = | ||
| + | | headquarters = | ||
| + | | area = | ||
| + | | strength = | ||
| + | | partof = | ||
| + | | predecessor = | ||
| + | | split_from = | ||
| + | | merger_of = | ||
| + | | previous = | ||
| + | | originated_as = | ||
| + | | original_name = | ||
| + | | formerly = | ||
| + | | former_name = | ||
| + | | next = | ||
| + | | became = | ||
| + | | later_name = | ||
| + | | merged_into = | ||
| + | | merged_to = | ||
| + | | split_to = | ||
| + | | successor = | ||
| + | | allies = | ||
| + | | opponents = | ||
| + | | battles = | ||
| + | | organizations = | ||
| + | | website = | ||
| + | | designated_as_terror_group_by = | ||
| + | | identification_symbol_label = | ||
| + | | identification_symbol = | ||
| + | | identification_symbol_2_label = | ||
| + | | identification_symbol_2 = | ||
| + | | identification_symbol_3_label = | ||
| + | | identification_symbol_3 = | ||
| + | | identification_symbol_4_label = | ||
| + | | identification_symbol_4 = | ||
| + | }}</pre> | ||
| + | |} | ||
| + | {{clear}} | ||
| + | == 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]]). | '''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]]). | ||
| Line 68: | Line 109: | ||
* '''war''' – the war or wars in which the faction participated; for proper grammar, it may be necessary to insert "the" before the name. | * '''war''' – the war or wars in which the faction participated; for proper grammar, it may be necessary to insert "the" before the name. | ||
* '''image''' – ''optional'' – an image representative of the faction. The image must be given in the form <nowiki>[[Image:Example.jpg|300px]]</nowiki>; in particular, the ''thumb'' attribute must '''not''' be selected. | * '''image''' – ''optional'' – an image representative of the faction. The image must be given in the form <nowiki>[[Image:Example.jpg|300px]]</nowiki>; in particular, the ''thumb'' attribute must '''not''' be selected. | ||
| + | * '''image_size''' – ''optional'' | ||
| + | * '''image_alt''' – ''optional'' | ||
* '''caption''' – ''optional'' – the text to be placed below the image. | * '''caption''' – ''optional'' – the text to be placed below the image. | ||
| + | * '''active''' – the period during which the faction was active. | ||
* '''ideology''' – ''optional'' – the ideology of the faction, if relevant. | * '''ideology''' – ''optional'' – the ideology of the faction, if relevant. | ||
| − | * ''' | + | * '''allegiance''' – ''optional'' |
| − | |||
* '''clans''' – ''optional'' – the clans or tribes the faction includes, if relevant. | * '''clans''' – ''optional'' – the clans or tribes the faction includes, if relevant. | ||
| + | * '''founders''' or '''founder''' – ''optional'' | ||
| + | * '''founding_leader''' – ''optional'' | ||
| + | * '''leaders''' or '''leader''' – the leaders of the faction. | ||
| + | * '''military_leader''' – ''optional'' | ||
| + | * '''political_leader''' – ''optional'' | ||
| + | * '''leader1_title''' and '''leader1_name''' – ''optional'' | ||
| + | * '''leader2_title''' and '''leader2_name''' – ''optional'' | ||
| + | * '''spokesperson''' or '''spokesman''' – ''optional'' | ||
* '''headquarters''' – ''optional'' – the headquarters of the faction. | * '''headquarters''' – ''optional'' – the headquarters of the faction. | ||
* '''area''' – ''optional'' – the area in which the faction operated; a map may be included here, if one is available. | * '''area''' – ''optional'' – the area in which the faction operated; a map may be included here, if one is available. | ||
* '''strength''' – ''optional'' – the number of personnel comprising the faction. | * '''strength''' – ''optional'' – the number of personnel comprising the faction. | ||
* '''partof''' – ''optional'' – the larger group of which the faction is a part, if any. | * '''partof''' – ''optional'' – the larger group of which the faction is a part, if any. | ||
| − | * '''previous''' – ''optional'' – the previous identity of the faction, or the factions from which it emerged. | + | * '''predecessor''' – ''optional'' |
| − | * '''next''' – ''optional'' – if the faction transformed into another one, the name of that faction. | + | * '''split_from''' – ''optional'' |
| + | * '''merger_of''' – ''optional'' | ||
| + | * '''previous''', originated_as''', or '''original_name''' – ''optional'' – the previous identity of the faction, or the factions from which it emerged. | ||
| + | * '''formerly''' or '''former_name''' – ''optional'' | ||
| + | * '''next''', '''became''', or '''later_name''' – ''optional'' – if the faction transformed into another one, the name of that faction. | ||
| + | * '''merged_into''' or '''merged_to''' – ''optional'' | ||
| + | * '''split_to''' – ''optional'' – parties that the faction has split into. | ||
| + | * '''successor''' – ''optional'' | ||
* '''allies''' – ''optional'' – the faction's allies in the war. | * '''allies''' – ''optional'' – the faction's allies in the war. | ||
| − | |||
* '''opponents''' – ''optional'' – the faction's opponents in the war. | * '''opponents''' – ''optional'' – the faction's opponents in the war. | ||
* '''battles''' – ''optional'' – any notable battles or wars in which the unit participated. The decision of what constitutes a notable battle is left to the editors of the specific article. | * '''battles''' – ''optional'' – any notable battles or wars in which the unit participated. The decision of what constitutes a notable battle is left to the editors of the specific article. | ||
| − | * '''url''' – ''optional'' – official website, if one exists, of the unit. | + | * '''organizations''' – ''optional'' |
| + | * '''website''' or '''url''' – ''optional'' – official website, if one exists, of the unit. | ||
| + | * '''designated_as_terror_group_by''' – ''optional'' | ||
| + | * '''identification_symbol_label''' and '''identification_symbol''' – ''optional'' | ||
| + | * '''identification_symbol_2_label''' and '''identification_symbol_2''' – ''optional'' | ||
| + | * '''identification_symbol_3_label''' and '''identification_symbol_3''' – ''optional'' | ||
| + | * '''identification_symbol_4_label''' and '''identification_symbol_4''' – ''optional'' | ||
| + | |||
| + | == Example == | ||
| + | {{Infobox war faction | ||
| + | | name = Islamic Courts Union | ||
| + | | native_name = اتحاد المحاكم الإسلامية<br/>''Midowga Maxkamadaha Islaamiga'' | ||
| + | | native_name_lang = ar | ||
| + | | war = the [[Somali Civil War]] | ||
| + | | image = [[Image:Flag_of_the_Islamic_Courts_Union.svg|300px]] | ||
| + | | caption = The flag of the Islamic Courts Union. | ||
| + | | leaders = [[Sharif Sheikh Ahmed]],<br/> [[Hassan Dahir Aweys]] | ||
| + | | clans = [[Habar Gidir]], [[Abgaal]], [[Rahanweyn]], [[Ogaden]], [[Marehan]] and some support from many other clans | ||
| + | | active = June 6, 2006–present | ||
| + | | headquarters = [[Mogadishu]] | ||
| + | | area = Central and southern [[Somalia]] | ||
| + | | previous = Unaligned Islamic [[sharia]] courts movements | ||
| + | | next = | ||
| + | | allies = {{unbulleted list | ||
| + | | [[Mujahideen]] organizations, including [[Al Qaeda]] | ||
| + | | Various Muslim and anti-Ethiopian nations including [[Eritrea]] (alleged) | ||
| + | }} | ||
| + | | opponents = {{unbulleted list | ||
| + | | Clan-based warlords | ||
| + | | [[Alliance for the Restoration of Peace and Counter-Terrorism]] | ||
| + | | [[Juba Valley Alliance]] | ||
| + | | [[Transitional Federal Government]] | ||
| + | | [[Puntland]] | ||
| + | | [[Galmudug]] | ||
| + | | [[Ethiopia]] | ||
| + | | [[United States]] | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | <pre style="overflow:auto;"> | ||
| + | {{Infobox war faction | ||
| + | | name = Islamic Courts Union | ||
| + | | native_name = اتحاد المحاكم الإسلامية<br/>''Midowga Maxkamadaha Islaamiga'' | ||
| + | | native_name_lang = ar | ||
| + | | war = the [[Somali Civil War]] | ||
| + | | image = [[Image:Flag_of_the_Islamic_Courts_Union.svg|300px]] | ||
| + | | caption = The flag of the Islamic Courts Union. | ||
| + | | leaders = [[Sharif Sheikh Ahmed]],<br/> [[Hassan Dahir Aweys]] | ||
| + | | clans = [[Habar Gidir]], [[Abgaal]], [[Rahanweyn]], [[Ogaden]], [[Marehan]] and some support from many other clans | ||
| + | | active = June 6, 2006–present | ||
| + | | headquarters = [[Mogadishu]] | ||
| + | | area = Central and southern [[Somalia]] | ||
| + | | previous = Unaligned Islamic [[sharia]] courts movements | ||
| + | | next = | ||
| + | | allies = {{unbulleted list | ||
| + | | [[Mujahideen]] organizations, including [[Al Qaeda]] | ||
| + | | Various Muslim and anti-Ethiopian nations including [[Eritrea]] (alleged) | ||
| + | }} | ||
| + | | opponents = {{unbulleted list | ||
| + | | Clan-based warlords | ||
| + | | [[Alliance for the Restoration of Peace and Counter-Terrorism]] | ||
| + | | [[Juba Valley Alliance]] | ||
| + | | [[Transitional Federal Government]] | ||
| + | | [[Puntland]] | ||
| + | | [[Galmudug]] | ||
| + | | [[Ethiopia]] | ||
| + | | [[United States]] | ||
| + | }} | ||
| + | }} | ||
| + | </pre> | ||
| + | {{clear}} | ||
| + | |||
| + | == Tracking category == | ||
| + | * {{clc|War faction articles using ambiguous parameters}} | ||
== TemplateData == | == TemplateData == | ||
| + | {{collapse top|TemplateData}} | ||
{{TemplateData header}} | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
| Line 142: | Line 273: | ||
"leaders": { | "leaders": { | ||
"label": "Leaders", | "label": "Leaders", | ||
| + | "aliases": ["leader"], | ||
"description": "The leaders of the faction.", | "description": "The leaders of the faction.", | ||
"type": "content", | "type": "content", | ||
| Line 170: | Line 302: | ||
"previous": { | "previous": { | ||
"label": "Originated as", | "label": "Originated as", | ||
| + | "aliases": ["originated_as", "original_name"], | ||
"description": "The previous identity of the faction, or the factions from which it emerged.", | "description": "The previous identity of the faction, or the factions from which it emerged.", | ||
"type": "content" | "type": "content" | ||
| Line 175: | Line 308: | ||
"next": { | "next": { | ||
"label": "Became", | "label": "Became", | ||
| + | "aliases": ["became", "later_name"], | ||
"description": "If the faction transformed into another one, the name of that faction.", | "description": "If the faction transformed into another one, the name of that faction.", | ||
"type": "content" | "type": "content" | ||
| Line 183: | Line 317: | ||
"type": "content" | "type": "content" | ||
}, | }, | ||
| − | " | + | "split_to": { |
| − | "label": "Split", | + | "label": "Split to", |
"description": "Parties that the faction has an split into.", | "description": "Parties that the faction has an split into.", | ||
"type": "content" | "type": "content" | ||
| Line 201: | Line 335: | ||
"label": "Organizations" | "label": "Organizations" | ||
}, | }, | ||
| − | " | + | "website": { |
"label": "Website", | "label": "Website", | ||
| + | "aliases": ["url"], | ||
"description": "Official website, if one exists, of the unit.", | "description": "Official website, if one exists, of the unit.", | ||
"type": "line" | "type": "line" | ||
| Line 234: | Line 369: | ||
"next", | "next", | ||
"allies", | "allies", | ||
| − | " | + | "split_to", |
"opponents", | "opponents", | ||
"battles", | "battles", | ||
"organizations", | "organizations", | ||
| − | " | + | "website", |
"identification_symbol", | "identification_symbol", | ||
"identification_symbol_2", | "identification_symbol_2", | ||
| Line 250: | Line 385: | ||
} | } | ||
</templatedata> | </templatedata> | ||
| + | {{collapse bottom}} | ||
<noinclude>[[Category:WikiProject Military history template instructions|War faction infobox]]</noinclude><includeonly> | <noinclude>[[Category:WikiProject Military history template instructions|War faction infobox]]</noinclude><includeonly> | ||
| Line 255: | Line 391: | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Military infobox templates|War Faction]] | [[Category:Military infobox templates|War Faction]] | ||
| + | [[Category:Templates that add a tracking category]] | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
Revision as of 08:58, 18 February 2017
| 40px | This is a documentation subpage for Template:Infobox war faction. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
A war faction infobox may be used to summarize information about a particular faction participating in a war; it should not be used for regular military units and formations (which should use {{infobox military unit}} instead). The infobox should be added using the {{infobox war faction}} template, as shown below:
Usage
Template:Parameter names example
| Basic usage | Full usage |
|---|---|
{{Infobox war faction
| name =
| native_name =
| native_name_lang =
| war =
| image =
| caption =
| active =
| ideology =
| leaders =
| clans =
| headquarters =
| area =
| strength =
| partof =
| previous =
| next =
| allies =
| split =
| opponents =
| battles =
| website =
}}
|
{{Infobox war faction
| name =
| native_name =
| native_name_lang =
| war =
| image =
| image_size =
| image_alt =
| caption =
| active =
| ideology =
| allegiance =
| clans =
| founders =
| founder =
| founding_leader =
| leader_title =
| leaders =
| leader =
| military_leader =
| political_leader =
| leader1_title =
| leader1_name =
| leader2_title =
| leader2_name =
| spokesperson =
| spokesman =
| headquarters =
| area =
| strength =
| partof =
| predecessor =
| split_from =
| merger_of =
| previous =
| originated_as =
| original_name =
| formerly =
| former_name =
| next =
| became =
| later_name =
| merged_into =
| merged_to =
| split_to =
| successor =
| allies =
| opponents =
| battles =
| organizations =
| website =
| designated_as_terror_group_by =
| identification_symbol_label =
| identification_symbol =
| identification_symbol_2_label =
| identification_symbol_2 =
| identification_symbol_3_label =
| identification_symbol_3 =
| identification_symbol_4_label =
| identification_symbol_4 =
}}
|
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).
- name – the formal name of the faction.
- native_name – the faction's name in their own language
- native_name_lang – ISO 639-1 code e.g. "fr" for French. If more than one, use [undefined] error: {{lang}}: no text (help) for |native_name= instead
- war – the war or wars in which the faction participated; for proper grammar, it may be necessary to insert "the" before the name.
- image – optional – an image representative of the faction. The image must be given in the form [[Image:Example.jpg|300px]]; in particular, the thumb attribute must not be selected.
- image_size – optional
- image_alt – optional
- caption – optional – the text to be placed below the image.
- active – the period during which the faction was active.
- ideology – optional – the ideology of the faction, if relevant.
- allegiance – optional
- clans – optional – the clans or tribes the faction includes, if relevant.
- founders or founder – optional
- founding_leader – optional
- leaders or leader – the leaders of the faction.
- military_leader – optional
- political_leader – optional
- leader1_title and leader1_name – optional
- leader2_title and leader2_name – optional
- spokesperson or spokesman – optional
- headquarters – optional – the headquarters of the faction.
- area – optional – the area in which the faction operated; a map may be included here, if one is available.
- strength – optional – the number of personnel comprising the faction.
- partof – optional – the larger group of which the faction is a part, if any.
- predecessor – optional
- split_from – optional
- merger_of – optional
- previous, originated_as, or original_name – optional – the previous identity of the faction, or the factions from which it emerged.
- formerly or former_name – optional
- next, became, or later_name – optional – if the faction transformed into another one, the name of that faction.
- merged_into or merged_to – optional
- split_to – optional – parties that the faction has split into.
- successor – optional
- allies – optional – the faction's allies in the war.
- opponents – optional – the faction's opponents in the war.
- battles – optional – any notable battles or wars in which the unit participated. The decision of what constitutes a notable battle is left to the editors of the specific article.
- organizations – optional
- website or url – optional – official website, if one exists, of the unit.
- designated_as_terror_group_by – optional
- identification_symbol_label and identification_symbol – optional
- identification_symbol_2_label and identification_symbol_2 – optional
- identification_symbol_3_label and identification_symbol_3 – optional
- identification_symbol_4_label and identification_symbol_4 – optional
Example
| Islamic Courts Union | |
|---|---|
| اتحاد المحاكم الإسلامية Midowga Maxkamadaha Islaamiga | |
The flag of the Islamic Courts Union. | |
| Leaders | Sharif Sheikh Ahmed, Hassan Dahir Aweys |
| Dates of operation | June 6, 2006–present |
| Group(s) | Habar Gidir, Abgaal, Rahanweyn, Ogaden, Marehan and some support from many other clans |
| Headquarters | Mogadishu |
| Active regions | Central and southern Somalia |
| Allies |
|
| Opponents | |
| Battles and wars | the Somali Civil War |
| Template:Succession links | |
{{Infobox war faction
| name = Islamic Courts Union
| native_name = اتحاد المحاكم الإسلامية<br/>''Midowga Maxkamadaha Islaamiga''
| native_name_lang = ar
| war = the [[Somali Civil War]]
| image = [[Image:Flag_of_the_Islamic_Courts_Union.svg|300px]]
| caption = The flag of the Islamic Courts Union.
| leaders = [[Sharif Sheikh Ahmed]],<br/> [[Hassan Dahir Aweys]]
| clans = [[Habar Gidir]], [[Abgaal]], [[Rahanweyn]], [[Ogaden]], [[Marehan]] and some support from many other clans
| active = June 6, 2006–present
| headquarters = [[Mogadishu]]
| area = Central and southern [[Somalia]]
| previous = Unaligned Islamic [[sharia]] courts movements
| next =
| allies = {{unbulleted list
| [[Mujahideen]] organizations, including [[Al Qaeda]]
| Various Muslim and anti-Ethiopian nations including [[Eritrea]] (alleged)
}}
| opponents = {{unbulleted list
| Clan-based warlords
| [[Alliance for the Restoration of Peace and Counter-Terrorism]]
| [[Juba Valley Alliance]]
| [[Transitional Federal Government]]
| [[Puntland]]
| [[Galmudug]]
| [[Ethiopia]]
| [[United States]]
}}
}}
Tracking category
TemplateData
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Infobox war faction A war faction infobox may be used to summarize information about a particular faction participating in a war; it should not be used for regular military units and formations.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||