Difference between revisions of "Template: Infobox Military Conflict"

From A Wiki of Ice and Fire
Jump to: navigation, search
(should work)
m (Reverted edits by Mindset (talk) to last revision by Rhaenys Targaryen)
(Tag: Rollback)
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
{{Infobox  
 
{{Infobox  
  <!-- | bodystyle     = {{{style|}}}  shouldnt be needed but just in case-->
+
  <!-- | bodystyle = {{{style|}}}  shouldnt be needed but just in case-->
| headerstyle  = background:#000000; color:#ffffff;
+
| headerstyle  = background:#B0C4DE;
 
| header2 = {{{conflict_name}}}  {{#if:{{{part_of|}}}|<br /><small>Part of {{{part_of}}}</small> }}
 
| header2 = {{{conflict_name}}}  {{#if:{{{part_of|}}}|<br /><small>Part of {{{part_of}}}</small> }}
 
| data3 = {{{image|[[Image:No_image.jpg|200px]]}}}
 
| data3 = {{{image|[[Image:No_image.jpg|200px]]}}}
| label4 = '''Date'''
+
| data4 = {{#if: {{{caption|}}}| <center>{{{caption}}}</center><hr>}}
| data4 = {{{date|}}}
+
| label6 = Date
| label5 = '''Location'''
+
| data6 = {{{date|}}}
| data5 = {{{location|}}}
+
| label7 = Location
| label6 = '''Battles'''
+
| data7 = {{{location|}}}
| data6 = {{{battles|}}}
+
| label8 = Battles
| label7 = '''Result'''
+
| data8 = {{{battles|}}}
| data7 = {{{result|}}}
+
| label9 = Result
| data10 =
+
| data9 = {{{result|}}}
<!-- == If there is more than 2 combatants load this  -->
+
| data10 = <!--
{{#if: {{{combatant3|}}}{{{combatant4|}}}{{{combatant5|}}}|  
+
============================================================
<table width=100% style="text-align:left; background:none">
+
  If there is more than 2 combatants load this
<tr><td colspan="2" style="background:#000000; color:#ffffff;text-align:center;">Belligerents</td></tr>
+
============================================================
{{#if: {{{combatant1|}}}| <tr><td>1. {{{combatant1}}}</td></tr> }}
+
-->{{#if:{{{combatant3|}}}{{{combatant4|}}}{{{combatant5|}}}{{{combatant6|}}}{{{combatant7|}}}{{{combatant8|}}}|
{{#if: {{{combatant2|}}}| <tr><td>2. {{{combatant2}}}</td></tr> }}
+
<table class="collapsible uncollapsed wikitable" width=100% style="text-align:left; background:none"><!--
{{#if: {{{combatant3|}}}| <tr><td>3. {{{combatant3}}}</td></tr> }}
+
--><tr><th colspan="2" style="background:#B0C4DE;text-align:center;">Belligerents</th></th><!--
{{#if: {{{combatant4|}}}| <tr><td>4. {{{combatant4}}}</td></tr> }}
+
-->{{#if: {{{combatant1|}}}|<tr><td>1. {{{combatant1}}}</td></tr>}}<!--
{{#if: {{{combatant5|}}}| <tr><td>5. {{{combatant5}}}</td></tr> }}
+
-->{{#if: {{{combatant2|}}}|<tr><td>2. {{{combatant2}}}</td></tr>}}<!--
<tr><td colspan="2" style="background:#000000; color:#ffffff;text-align:center;">Notable commanders</td></tr>
+
-->{{#if: {{{combatant3|}}}|<tr><td>3. {{{combatant3}}}</td></tr>}}<!--
{{#if: {{{commander1|}}}| <tr><td>1. {{{commander1}}}</td></tr> }}
+
-->{{#if: {{{combatant4|}}}|<tr><td>4. {{{combatant4}}}</td></tr>}}<!--
{{#if: {{{commander2|}}}| <tr><td>2. {{{commander2}}}</td></tr> }}  
+
-->{{#if: {{{combatant5|}}}|<tr><td>5. {{{combatant5}}}</td></tr>}}<!--
{{#if: {{{commander3|}}}| <tr><td>3. {{{commander3}}}</td></tr> }}
+
-->{{#if: {{{combatant6|}}}|<tr><td>6. {{{combatant6}}}</td></tr>}}<!--
{{#if: {{{commander4|}}}| <tr><td>4. {{{commander4}}}</td></tr> }}
+
-->{{#if: {{{combatant7|}}}|<tr><td>7. {{{combatant7}}}</td></tr>}}<!--
{{#if: {{{commander5|}}}| <tr><td>5. {{{commander5}}}</td></tr> }}
+
-->{{#if: {{{combatant8|}}}|<tr><td>8. {{{combatant8}}}</td></tr>}}</table>
<tr><td colspan="2" style="background:#000000; color:#ffffff;text-align:center;">Strength</td></tr>
+
<table class="collapsible collapsed wikitable" width=100% style="text-align:left; background:none"><!--
{{#if: {{{strength1|}}}| <tr><td>1. {{{strength1}}}</td></tr> }}
+
--><tr><th colspan="2" style="background:#B0C4DE;text-align:center;">Notable commanders</th></tr><!--
{{#if: {{{strength2|}}}| <tr><td>2. {{{strength2}}}</td></tr> }}  
+
-->{{#if: {{{commander1|}}}|<tr><td>1. {{{commander1}}}</td></tr>}}<!--
{{#if: {{{strength3|}}}| <tr><td>3. {{{strength3}}}</td></tr> }}
+
-->{{#if: {{{commander2|}}}|<tr><td>2. {{{commander2}}}</td></tr>}}<!--
{{#if: {{{strength4|}}}| <tr><td>4. {{{strength4}}}</td></tr> }}
+
-->{{#if: {{{commander3|}}}|<tr><td>3. {{{commander3}}}</td></tr>}}<!--
{{#if: {{{strength5|}}}| <tr><td>5. {{{strength5}}}</td></tr> }}
+
-->{{#if: {{{commander4|}}}|<tr><td>4. {{{commander4}}}</td></tr>}}<!--
<tr><td colspan="2" style="background:#000000; color:#ffffff;text-align:center;">losses</td></tr>
+
-->{{#if: {{{commander5|}}}|<tr><td>5. {{{commander5}}}</td></tr>}}<!--
{{#if: {{{losses1|}}}| <tr><td>1. {{{losses1}}}</td></tr> }}
+
-->{{#if: {{{commander6|}}}|<tr><td>6. {{{commander6}}}</td></tr>}}<!--
{{#if: {{{losses2|}}}| <tr><td>2. {{{losses2}}}</td></tr> }}  
+
-->{{#if: {{{commander7|}}}|<tr><td>7. {{{commander7}}}</td></tr>}}<!--
{{#if: {{{losses3|}}}| <tr><td>3. {{{losses3}}}</td></tr> }}
+
-->{{#if: {{{commander8|}}}|<tr><td>8. {{{commander8}}}</td></tr>}}</table>
{{#if: {{{losses4|}}}| <tr><td>4. {{{losses4}}}</td></tr> }}
+
<table class="collapsible collapsed wikitable" width=100% style="text-align:left; background:none"><!--
{{#if: {{{losses5|}}}| <tr><td>5. {{{losses5}}}</td></tr> }}
+
--><tr><th colspan="2" style="background:#B0C4DE; text-align:center;">Strength</th></tr><!--
</table>
+
-->{{#if: {{{strength1|}}}|<tr><td>1. {{{strength1}}}</td></tr>}}<!--
|<!-- == If there is 2 combatants load this      -->
+
-->{{#if: {{{strength2|}}}|<tr><td>2. {{{strength2}}}</td></tr>}}<!--
<table width=100% style="text-align:left; background:none">
+
-->{{#if: {{{strength3|}}}|<tr><td>3. {{{strength3}}}</td></tr>}}<!--
  <tr><td colspan="2" style="background:#000000; color:#ffffff;text-align:center;">Belligerents</td></tr>
+
-->{{#if: {{{strength4|}}}|<tr><td>4. {{{strength4}}}</td></tr>}}<!--
   <tr><td>{{{combatant1}}}</td><td style="border-left: 1px dotted #aaa;">{{{combatant2}}}</td></tr>
+
-->{{#if: {{{strength5|}}}|<tr><td>5. {{{strength5}}}</td></tr>}}<!--
 +
-->{{#if: {{{strength6|}}}|<tr><td>6. {{{strength6}}}</td></tr>}}<!--
 +
-->{{#if: {{{strength7|}}}|<tr><td>7. {{{strength7}}}</td></tr>}}<!--
 +
-->{{#if: {{{strength8|}}}|<tr><td>8. {{{strength8}}}</td></tr>}}</table>
 +
<table class="collapsible collapsed wikitable" width=100% style="text-align:left; background:none"><!--
 +
--><tr><th colspan="2" style="background:#B0C4DE; text-align:center;">Losses</th></tr><!--
 +
-->{{#if: {{{losses1|}}}|<tr><td>1. {{{losses1}}}</td></tr>}}<!--
 +
-->{{#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|}}}|
 
{{#if: {{{commander1|}}}{{{commander2|}}}|
   <tr><td colspan="2" style="background:#000000; color:#ffffff;text-align:center;">Notable commanders</td></tr>
+
   <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>
 
   <tr><td>{{{commander1}}}</td><td style="border-left: 1px dotted #aaa;">{{{commander2}}}</td></tr>
 
}}
 
}}
 
{{#if: {{{strength1|}}}{{{strength2|}}}|
 
{{#if: {{{strength1|}}}{{{strength2|}}}|
   <tr><td colspan="2" style="background:#000000; color:#ffffff;text-align:center;">Strength</td></tr>
+
   <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>
 
   <tr><td>{{{strength1}}}</td><td style="border-left: 1px dotted #aaa;">{{{strength2}}}</td></tr>
 
}}
 
}}
 
{{#if: {{{losses1|}}}{{{losses2|}}}|
 
{{#if: {{{losses1|}}}{{{losses2|}}}|
   <tr><td colspan="2" style="background:#000000; color:#ffffff;text-align:center;">losses</td></tr>
+
   <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>
 
   <tr><td>{{{losses1}}}</td><td style="border-left: 1px dotted #aaa;">{{{losses2}}}</td></tr>
 
}}
 
}}
 
</table>
 
</table>
 
}}
 
}}
| data12 = {{{image2|}}}
+
| data15 = {{{image2|}}}
 
}}<noinclude>
 
}}<noinclude>
  
Line 99: Line 119:
 
| strength5              =
 
| strength5              =
 
| losses5                =
 
| losses5                =
 +
<!-- combatant 6 -->
 +
| combatant6            =
 +
| commander6            =
 +
| strength6              =
 +
| losses6                =
 +
<!-- combatant 7 -->
 +
| combatant7            =
 +
| commander7            =
 +
| strength7              =
 +
| losses7                =
 +
<!-- combatant 8 -->
 +
| combatant8            =
 +
| commander8            =
 +
| strength8              =
 +
| losses8                =
 
}}
 
}}
 
</pre>
 
</pre>

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.