Difference between revisions of "Template: Infobox Military Conflict"

From A Wiki of Ice and Fire
Jump to: navigation, search
m
m (Reverted edits by Mindset (talk) to last revision by Rhaenys Targaryen)
(Tag: Rollback)
(24 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{| cellspacing="0" border="1" align="right" style="float:right;font-size:80%; margin: 0 0 1em 1em;"
+
{{Infobox
|
+
<!-- | bodystyle = {{{style|}}}  shouldnt be needed but just in case-->
{| class="infobox_v2" cellspacing="7" border="0" height="300" width="300" style="background: #FFFFFF"
+
| headerstyle  = background:#B0C4DE;
| colspan="5" |  
+
| header2 = {{{conflict_name}}}  {{#if:{{{part_of|}}}|<br /><small>Part of {{{part_of}}}</small> }}
{| cellpadding="1" cellspacing="0" style="text-align: center;" width="100%"
+
| data3 = {{{image|[[Image:No_image.jpg|200px]]}}}
|- class="entete" style="background-color:#000000;"
+
| data4 = {{#if: {{{caption|}}}| <center>{{{caption}}}</center><hr>}}
| width="90%" style="padding-left:45px;width:80%;color:#FFFFFF;font-size:180%;" | {{#if:{{{name|}}} | {{{name|}}} | {{PAGENAME}} }}
+
| label6 = Date
| width="10%"|
+
| data6 = {{{date|}}}
|}
+
| label7 = Location
|-
+
| data7 = {{{location|}}}
{{#if: {{{part_of|}}}|
+
| label8 = Battles
{{!}} colspan="1" width="20%" {{!}} '''Part of :'''
+
| data8 = {{{battles|}}}
{{!}} colspan="4" width="80%" {{!}} {{{part_of}}}|}}
+
| label9 = Result
|-
+
| data9 = {{{result|}}}
{{#if: {{{date|}}} {{{location|}}} {{{result|}}} |
+
| data10 = <!--
{{!}} colspan="5" style="text-align: center; background:#CC6666; color:#000000;" {{!}} '''Informations'''
+
============================================================
|}}
+
  If there is more than 2 combatants load this
|-
+
============================================================  
{{#if: {{{date|}}}|
+
-->{{#if:{{{combatant3|}}}{{{combatant4|}}}{{{combatant5|}}}{{{combatant6|}}}{{{combatant7|}}}{{{combatant8|}}}|
{{!}} colspan="1" width="20%" {{!}} '''Date:'''
+
<table class="collapsible uncollapsed wikitable" width=100% style="text-align:left; background:none"><!--
{{!}} colspan="4" width="80%" {{!}} {{{date}}}|}}
+
--><tr><th colspan="2" style="background:#B0C4DE;text-align:center;">Belligerents</th></th><!--
|-
+
-->{{#if: {{{combatant1|}}}|<tr><td>1. {{{combatant1}}}</td></tr>}}<!--
{{#if: {{{location|}}}|
+
-->{{#if: {{{combatant2|}}}|<tr><td>2. {{{combatant2}}}</td></tr>}}<!--
{{!}} colspan="1" width="20%" {{!}} '''Location :'''
+
-->{{#if: {{{combatant3|}}}|<tr><td>3. {{{combatant3}}}</td></tr>}}<!--
{{!}} colspan="4" width="80%" {{!}} {{{location}}}|}}
+
-->{{#if: {{{combatant4|}}}|<tr><td>4. {{{combatant4}}}</td></tr>}}<!--
|-
+
-->{{#if: {{{combatant5|}}}|<tr><td>5. {{{combatant5}}}</td></tr>}}<!--
{{#if: {{{result|}}}|
+
-->{{#if: {{{combatant6|}}}|<tr><td>6. {{{combatant6}}}</td></tr>}}<!--
{{!}} colspan="1" width="20%" {{!}} '''Result :'''
+
-->{{#if: {{{combatant7|}}}|<tr><td>7. {{{combatant7}}}</td></tr>}}<!--
{{!}} colspan="4" width="80%" {{!}} {{{result}}}|}}
+
-->{{#if: {{{combatant8|}}}|<tr><td>8. {{{combatant8}}}</td></tr>}}</table>
|-
+
<table class="collapsible collapsed wikitable" width=100% style="text-align:left; background:none"><!--
{{#if: {{{combatant1|}}} {{{commander1|}}} {{{loses1|}}} {{{strenght1|}}} |
+
--><tr><th colspan="2" style="background:#B0C4DE;text-align:center;">Notable commanders</th></tr><!--
{{!}} colspan="5" style="text-align: center; background:#000000; color:#FFFFFF;" {{!}} '''Belligerents'''
+
-->{{#if: {{{commander1|}}}|<tr><td>1. {{{commander1}}}</td></tr>}}<!--
|}}
+
-->{{#if: {{{commander2|}}}|<tr><td>2. {{{commander2}}}</td></tr>}}<!--
|-
+
-->{{#if: {{{commander3|}}}|<tr><td>3. {{{commander3}}}</td></tr>}}<!--
{{#if: {{{combatant1|}}} {{{combatant2|}}} |
+
-->{{#if: {{{commander4|}}}|<tr><td>4. {{{commander4}}}</td></tr>}}<!--
{{!}} colspan="1" width="20%" {{!}} '''Combatants :'''
+
-->{{#if: {{{commander5|}}}|<tr><td>5. {{{commander5}}}</td></tr>}}<!--
{{!}} colspan="2" width="40%" {{!}} {{{combatant1}}}
+
-->{{#if: {{{commander6|}}}|<tr><td>6. {{{commander6}}}</td></tr>}}<!--
{{!}} colspan="2" width="40%" {{!}} {{{combatant2}}}|}}
+
-->{{#if: {{{commander7|}}}|<tr><td>7. {{{commander7}}}</td></tr>}}<!--
|-
+
-->{{#if: {{{commander8|}}}|<tr><td>8. {{{commander8}}}</td></tr>}}</table>
{{#if: {{{commandant1|}}} {{{commandant2|}}} |
+
<table class="collapsible collapsed wikitable" width=100% style="text-align:left; background:none"><!--
{{!}} colspan="1" width="20%" {{!}} '''Commanders:'''
+
--><tr><th colspan="2" style="background:#B0C4DE; text-align:center;">Strength</th></tr><!--
{{!}} colspan="2" width="40%" {{!}} {{{commander1}}}
+
-->{{#if: {{{strength1|}}}|<tr><td>1. {{{strength1}}}</td></tr>}}<!--
{{!}} colspan="2" width="40%" {{!}} {{{commander2}}}|}}
+
-->{{#if: {{{strength2|}}}|<tr><td>2. {{{strength2}}}</td></tr>}}<!--
|-
+
-->{{#if: {{{strength3|}}}|<tr><td>3. {{{strength3}}}</td></tr>}}<!--
{{#if: {{{strength1|}}} {{{strength2|}}}|
+
-->{{#if: {{{strength4|}}}|<tr><td>4. {{{strength4}}}</td></tr>}}<!--
{{!}} colspan="1" width="20%" {{!}} '''Strengths :'''
+
-->{{#if: {{{strength5|}}}|<tr><td>5. {{{strength5}}}</td></tr>}}<!--
{{!}} colspan="2" width="40%" {{!}} {{{strength1}}}
+
-->{{#if: {{{strength6|}}}|<tr><td>6. {{{strength6}}}</td></tr>}}<!--
{{!}} colspan="2" width="40%" {{!}} {{{strength2}}}|}}
+
-->{{#if: {{{strength7|}}}|<tr><td>7. {{{strength7}}}</td></tr>}}<!--
|-
+
-->{{#if: {{{strength8|}}}|<tr><td>8. {{{strength8}}}</td></tr>}}</table>
{{#if: {{{losses1|}}} {{{losses2|}}}|
+
<table class="collapsible collapsed wikitable" width=100% style="text-align:left; background:none"><!--
{{!}} colspan="1" width="20%" {{!}} '''Losses  :'''
+
--><tr><th colspan="2" style="background:#B0C4DE; text-align:center;">Losses</th></tr><!--
{{!}} colspan="2" width="40%" {{!}} {{{losses1}}}
+
-->{{#if: {{{losses1|}}}|<tr><td>1. {{{losses1}}}</td></tr>}}<!--
{{!}} colspan="2" width="40%" {{!}} {{{losses2}}}|}}
+
-->{{#if: {{{losses2|}}}|<tr><td>2. {{{losses2}}}</td></tr>}}<!--
|}
+
-->{{#if: {{{losses3|}}}|<tr><td>3. {{{losses3}}}</td></tr>}}<!--
 +
-->{{#if: {{{losses4|}}}|<tr><td>4. {{{losses4}}}</td></tr>}}<!--
 +
-->{{#if: {{{losses5|}}}|<tr><td>5. {{{losses5}}}</td></tr>}}<!--
 +
-->{{#if: {{{losses6|}}}|<tr><td>6. {{{losses6}}}</td></tr>}}<!--
 +
-->{{#if: {{{losses7|}}}|<tr><td>7. {{{losses7}}}</td></tr>}}<!--
 +
-->{{#if: {{{losses8|}}}|<tr><td>8. {{{losses8}}}</td></tr>}}</table>
 +
|<!--
 +
============================================================
 +
  If there is 2 combatants load this
 +
============================================================
 +
--><table width=100% style="text-align:left; background:none">
 +
  <tr><td width=50% colspan="2" style="background:#B0C4DE; text-align:center;">Belligerents</td></tr>
 +
  <tr><td width=50% >{{{combatant1}}}</td><td style="border-left: 1px dotted #aaa;">{{{combatant2}}}</td></tr>
 +
{{#if: {{{commander1|}}}{{{commander2|}}}|
 +
  <tr><td colspan="2" style="background:#B0C4DE; text-align:center;">Notable commanders</td></tr>
 +
  <tr><td>{{{commander1}}}</td><td style="border-left: 1px dotted #aaa;">{{{commander2}}}</td></tr>
 +
}}
 +
{{#if: {{{strength1|}}}{{{strength2|}}}|
 +
  <tr><td colspan="2" style="background:#B0C4DE; text-align:center;">Strength</td></tr>
 +
  <tr><td>{{{strength1}}}</td><td style="border-left: 1px dotted #aaa;">{{{strength2}}}</td></tr>
 +
}}
 +
{{#if: {{{losses1|}}}{{{losses2|}}}|
 +
  <tr><td colspan="2" style="background:#B0C4DE; text-align:center;">Losses</td></tr>
 +
  <tr><td>{{{losses1}}}</td><td style="border-left: 1px dotted #aaa;">{{{losses2}}}</td></tr>
 +
}}
 +
</table>
 +
}}
 +
| data15 = {{{image2|}}}
 +
}}<noinclude>
 +
 
 +
==Usage==
 +
<pre style="width:35em">
 +
{{Infobox Military Conflict
 +
| conflict_name          =
 +
| part_of                =
 +
| image                  =
 +
| image2                =
 +
| caption                =
 +
| date                  =
 +
| battles                =
 +
| location              =
 +
| result                =
 +
<!-- combatant 1 -->
 +
| combatant1            =
 +
| commander1            =
 +
| strength1              =
 +
| losses1                =
 +
<!-- combatant 2 -->
 +
| combatant2            =
 +
| commander2            =
 +
| strength2              =
 +
| losses2                =
 +
<!-- combatant 3 -->
 +
| combatant3            =
 +
| commander3            =
 +
| strength3              =
 +
| losses3                =
 +
<!-- combatant 4 -->
 +
| combatant4            =
 +
| commander4            =
 +
| strength4              =
 +
| losses4                =
 +
<!-- combatant 5 -->
 +
| combatant5            =
 +
| commander5            =
 +
| strength5              =
 +
| losses5                =
 +
<!-- combatant 6 -->
 +
| combatant6            =
 +
| commander6            =
 +
| strength6              =
 +
| losses6                =
 +
<!-- combatant 7 -->
 +
| combatant7            =
 +
| commander7            =
 +
| strength7              =
 +
| losses7                =
 +
<!-- combatant 8 -->
 +
| combatant8            =
 +
| commander8            =
 +
| strength8              =
 +
| losses8                =
 +
}}
 +
</pre>
 +
 
 +
 
 +
 
 +
Note:Parameters which get no value are not shown when the template is used.<br />
 +
you can see a preview on your right side.
 +
[[Category:Infobox templates|Military Conflict]]
 +
</noinclude>

Revision as of 11:16, 1 March 2022

{{{conflict_name}}}
No image.jpg
Belligerents
{{{combatant1}}}{{{combatant2}}}

Usage

{{Infobox Military Conflict
| conflict_name          =
| part_of                =
| image                  =
| image2                 =
| caption                =
| date                   =
| battles                =
| location               =
| result                 =
<!-- combatant 1 --> 
| combatant1             =
| commander1             =
| strength1              =
| losses1                =
<!-- combatant 2 --> 
| combatant2             =
| commander2             =
| strength2              =
| losses2                =
<!-- combatant 3 --> 
| combatant3             =
| commander3             =
| strength3              =
| losses3                =
<!-- combatant 4 --> 
| combatant4             =
| commander4             =
| strength4              =
| losses4                =
<!-- combatant 5 --> 
| combatant5             =
| commander5             =
| strength5              =
| losses5                =
<!-- combatant 6 --> 
| combatant6             =
| commander6             =
| strength6              =
| losses6                =
<!-- combatant 7 --> 
| combatant7             =
| commander7             =
| strength7              =
| losses7                =
<!-- combatant 8 --> 
| combatant8             =
| commander8             =
| strength8              =
| losses8                =
}}


Note:Parameters which get no value are not shown when the template is used.
you can see a preview on your right side.