Difference between revisions of "Template:War"

From Taskforce Equinox
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
+
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:300px; background:#03073a; border-collapse:collapse; border:1px solid #999999; font-size:100%; font-color:#fffff; line-height:1.5;">
{| width="275" align="right" cellpadding="3" cellspacing="0" style="border: 1px #10110F solid; border-collapse:collapse; background: #10110F; margin-top: -1.4em; margin: 0 0 1em 1em; font-size: 12px;color: #ffffff;"
+
<tr style="text-align:center; color:#ffffff; background:{{{c1|#03073a}}}; font-size:larger;"><th colspan="2">{{{name}}}</th></tr>
|-
+
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{c2|#03073a}}};">{{{image|}}}</td></tr>
{{#if: {{{previous|}}}|
+
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: top; background:{{{c3|#03073a}}};"><td style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#03073a}}}; vertical-align: top;"><td>'''Beginning''':</td><td class="infoboxcell" style="width:100%;">
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller; text-align: center;"}}} {{!}} {{{previous}}}}}
+
{{{begin}}}
{{#if: {{{previous|}}}|
+
</td></tr></table>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller; text-align: center;"}}} {{!}} {{{previous}}}}}
+
</td><td style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#03073a}}}; vertical-align: top;"><td>'''End''':</td><td class="infoboxcell" style="width:100%;">
{{#if: {{{previous|}}}|
+
{{{end}}}
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller; text-align: center;"}}} {{!}} {{{previous}}}}}
+
</td></tr></table>
|-
+
</td></tr>
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; font-size:larger; text-align:center;" | '''{{{name}}}'''
+
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#03073a}}};"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#03073a}}}; vertical-align:top;"><td>'''Place''':</td><td class="infoboxcell" style="width:100%;">
|-
+
{{{place}}}
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; text-align:center; font-size:smaller;" | General Information
+
</td></tr></table>
|-
+
</td></tr>
{{#if: {{{formedyearO|}}}|
+
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#03073a}}};"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#03073a}}}; vertical-align:top;"><td>'''Outcome''':</td><td class="infoboxcell" style="width:100%;">
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Year of Formation:
+
{{{result}}}
{{!}} bgcolor={{{bgcolor_value|#333333 style="background: #333333; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}} {{{formedyear}}}}}
+
</td></tr></table>
|-
+
</td></tr>
{{#if: {{{governingbody|}}}|
+
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#03073a}}};"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#03073a}}}; vertical-align:top;"><td>'''Major&nbsp;battles''':</td><td class="infoboxcell" style="width:100%;">
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Agengy's Governing Body:
+
{{{battles}}}
{{!}} bgcolor={{{bgcolor_value|#333333 style="background: #333333; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}} {{{governingbody}}}}}
+
</td></tr></table>
|-
+
</td></tr>{{{battles|}}}
{{#if: {{{role|}}}|
+
<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#03073a;">'''Combatants'''</th></tr>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Agency's Role:
+
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; text-align:center; background:{{{c3|#03073a}}};"><td class="infoboxcell" width="50%"  style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;">
{{!}} bgcolor={{{bgcolor_value|#333333 style="background: #333333; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}} {{{role}}}}}
+
{{{side1}}}
|-
+
</td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
|colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:{{#switch:{{{color|}}}
+
{{{side2}}}
 +
</td></tr>
 +
<tr><th colspan="2" style="text-align:left; font-weight:normal; background:#03073a;">'''Commanders'''</th></tr>
 +
<tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:{{{c3|#03073a}}};"><td class="infoboxcell" width="50%"  style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;">
 +
{{{commanders1}}}
 +
</td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
 +
{{{commanders2}}}
 +
</td></tr>
 +
</table><noinclude>
 +
For battles, use [[Template:Battle]].
  
  |Federation    = &#032; #161B3A
+
For wars or other conflicts, use [[Template:War]].
  |Klingon      = &#032; #3F1512
 
  |Romulan      = &#032; #1E351B
 
  |Ferengi    = &#032; #0A4640
 
  |Civilian    = &#032; #422E0F
 
  
  |&#032;{{{color|{{{bgcolor|#422E0F}}}}}}
+
For missions, use [[Template:Mission]].
}}; text-align:center; font-size:smaller;" | Agency Information
 
|-
 
{{#if: {{{abbreviation|}}}|
 
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Agency Abbreviation:
 
{{!}} bgcolor={{{bgcolor_value|#333333 style="background: #333333; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}} {{{abbreviation}}}}}
 
|-
 
{{#if: {{{hq|}}}|
 
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Agency Headquarter Location:
 
{{!}} bgcolor={{{bgcolor_value|#333333 style="background: #333333; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}} {{{hq}}}}}
 
|-
 
{{#if: {{{chiefname|}}}|
 
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Agency Head's Name:
 
{{!}} bgcolor={{{bgcolor_value|#333333 style="background: #333333; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}} {{{chiefname}}}}}
 
|-
 
{{#if: {{{chiefposition|}}}|
 
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Agency Head Title:
 
{{!}} bgcolor={{{bgcolor_value|#333333 style="background: #333333; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}} {{{chiefposition}}}}}
 
|-
 
{{#if: {{{parentagency|}}}|
 
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} Parent Agencies:
 
{{!}} bgcolor={{{bgcolor_value|#333333 style="background: #333333; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; font-size:smaller;"}}} {{!}} {{{parentagency}}}}}
 
|-
 
{{#if: {{{unitname|}}}|
 
{{!}} colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:{{#switch:{{{color|}}}
 
  
  |Federation    = &#032; #161B3A
+
For campaigns, use [[Template:Campaign]].
  |Klingon      = &#032; #3F1512
 
  |Romulan      = &#032; #1E351B
 
  |Ferengi    = &#032; #0A4640
 
  |Civilian    = &#032; #422E0F
 
  
  |&#032;{{{color|{{{bgcolor|#422E0F}}}}}}
+
For general events, use [[Template:Event]].
}}; text-align:center; font-size:smaller;" {{!}} Sub-Units }}
 
|-
 
{{#if: {{{unitname|}}}|
 
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="background: #222222; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller; text-align:center;"}}} {{!}} {{{unitname}}}}}
 
|-
 
|colspan="2" style="text-align: center; color: #e5e5ed; font-variant:small-caps; font-size:smaller; background-color:{{#switch:{{{color|}}}
 
  
  |Federation      = &#032; #1F2650
+
===Field list===
  |Klingon      = &#032; #571E19
+
*previous (collapsible)
  |Romulan      = &#032; #2A4A26
+
*conc (collapsible)
  |Ferengi    = &#032; #0E615A
+
*next (collapsible)
  |Civilian    = &#032; #5B4015
+
*name
 +
*image
 +
*begin
 +
*end
 +
*place
 +
*result
 +
*battles (collapsible)
 +
*side1
 +
*side2
 +
*commanders1
 +
*commanders2
  
  |&#032;{{{color|{{{bgcolor|#5B4015}}}}}}
+
===Usage===
}}; text-align:center; border-top: 1px solid #111111;" | [[Template:Agency|[ Source ]]]
+
To use this template, paste the following code into the top of the article, filling all relevant fields:
|}</div>
+
<pre><nowiki>
 +
{{War
 +
|previous=
 +
|conc=
 +
|next=
 +
|name=
 +
|image=
 +
|begin=
 +
|end=
 +
|place=
 +
|result=
 +
|battles=
 +
|side1=
 +
|side2=
 +
|commanders1=
 +
|commanders2=
 +
}}
 +
</nowiki></pre>
  
<noinclude>
+
[[Category:Templates|{{PAGENAME}}]]</noinclude>
<br clear=all>
 
<pre>
 
{{Agency
 
|color =
 
|name =
 
|formedyear =
 
|governingbody =
 
|role =
 
|abbreviation =
 
|hq =
 
|chiefname =
 
|chiefposition  =
 
|parentagency =
 
|unitname =
 
}}</pre>
 
 
 
{| border=0 cellspacing=2 cellpadding=10 style="background: #111111; margin: 1em auto;text-align:center;"
 
|-style="text-align: center; background: #323232; font-size:10pt; width: 100%;"
 
! "Color" field values
 
|- style="text-align: center; background: #1F2650; font-size:10pt; width: 100%;"
 
| Federation
 
|- style="text-align: center; background: #571E19; font-size:10pt; width: 100%;"
 
| Klingon
 
|- style="text-align: center; background: #2A4A26; font-size:10pt; width: 100%;"
 
| Romulan
 
|- style="text-align: center; background: #0E615A; font-size:10pt; width: 100%;"
 
| Ferengi
 
|- style="text-align: center; background: #5B4015; font-size:10pt; width: 100%;"
 
| width="50%" | Civilian
 
|}
 
 
 
<noinclude>[[Category:Templates|Agency]] [[Category:Infobox Templates|Agency]]</noinclude>
 

Latest revision as of 00:49, 15 July 2018

{{{name}}}
Beginning:

{{{begin}}}

End:

{{{end}}}

Place:

{{{place}}}

Outcome:

{{{result}}}

Major battles:

{{{battles}}}

Combatants

{{{side1}}}

{{{side2}}}

Commanders

{{{commanders1}}}

{{{commanders2}}}

For battles, use Template:Battle.

For wars or other conflicts, use Template:War.

For missions, use Template:Mission.

For campaigns, use Template:Campaign.

For general events, use Template:Event.

Field list

  • previous (collapsible)
  • conc (collapsible)
  • next (collapsible)
  • name
  • image
  • begin
  • end
  • place
  • result
  • battles (collapsible)
  • side1
  • side2
  • commanders1
  • commanders2

Usage

To use this template, paste the following code into the top of the article, filling all relevant fields:

{{War
|previous=
|conc=
|next=
|name=
|image=
|begin=
|end=
|place=
|result=
|battles=
|side1=
|side2=
|commanders1=
|commanders2=
}}