Difference between revisions of "Template: Infobox Military Conflict"
From A Wiki of Ice and Fire
(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 | + | <!-- | bodystyle = {{{style|}}} shouldnt be needed but just in case--> |
− | | headerstyle = background:# | + | | 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]]}}} | ||
− | + | | data4 = {{#if: {{{caption|}}}| <center>{{{caption}}}</center><hr>}} | |
− | | data4 = {{{ | + | | label6 = Date |
− | | | + | | data6 = {{{date|}}} |
− | + | | label7 = Location | |
− | + | | data7 = {{{location|}}} | |
− | | data6 = {{{ | + | | label8 = Battles |
− | | label7 = | + | | data8 = {{{battles|}}} |
− | | data7 = {{{ | + | | label9 = Result |
− | | | + | | data9 = {{{result|}}} |
− | + | | data10 = <!-- | |
− | { | + | ============================================================ |
− | + | If there is more than 2 combatants load this | |
− | + | ============================================================ | |
− | + | -->{{#if:{{{combatant3|}}}{{{combatant4|}}}{{{combatant5|}}}{{{combatant6|}}}{{{combatant7|}}}{{{combatant8|}}}| | |
− | + | <table class="collapsible uncollapsed wikitable" width=100% style="text-align:left; background:none"><!-- | |
− | { | + | --><tr><th colspan="2" style="background:#B0C4DE;text-align:center;">Belligerents</th></th><!-- |
− | + | -->{{#if: {{{combatant1|}}}|<tr><td>1. {{{combatant1}}}</td></tr>}}<!-- | |
− | + | -->{{#if: {{{combatant2|}}}|<tr><td>2. {{{combatant2}}}</td></tr>}}<!-- | |
− | < | + | -->{{#if: {{{combatant3|}}}|<tr><td>3. {{{combatant3}}}</td></tr>}}<!-- |
− | + | -->{{#if: {{{combatant4|}}}|<tr><td>4. {{{combatant4}}}</td></tr>}}<!-- | |
− | {{#if: {{{ | + | -->{{#if: {{{combatant5|}}}|<tr><td>5. {{{combatant5}}}</td></tr>}}<!-- |
− | {{#if: {{{ | + | -->{{#if: {{{combatant6|}}}|<tr><td>6. {{{combatant6}}}</td></tr>}}<!-- |
− | + | -->{{#if: {{{combatant7|}}}|<tr><td>7. {{{combatant7}}}</td></tr>}}<!-- | |
− | {{#if: {{{ | + | -->{{#if: {{{combatant8|}}}|<tr><td>8. {{{combatant8}}}</td></tr>}}</table> |
− | + | <table class="collapsible collapsed wikitable" width=100% style="text-align:left; background:none"><!-- | |
− | {{#if: {{{ | + | --><tr><th colspan="2" style="background:#B0C4DE;text-align:center;">Notable commanders</th></tr><!-- |
− | {{#if: {{{ | + | -->{{#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: {{{ | + | -->{{#if: {{{commander4|}}}|<tr><td>4. {{{commander4}}}</td></tr>}}<!-- |
− | <tr><td | + | -->{{#if: {{{commander5|}}}|<tr><td>5. {{{commander5}}}</td></tr>}}<!-- |
− | {{#if: {{{ | + | -->{{#if: {{{commander6|}}}|<tr><td>6. {{{commander6}}}</td></tr>}}<!-- |
− | {{#if: {{{ | + | -->{{#if: {{{commander7|}}}|<tr><td>7. {{{commander7}}}</td></tr>}}<!-- |
− | {{#if: {{{ | + | -->{{#if: {{{commander8|}}}|<tr><td>8. {{{commander8}}}</td></tr>}}</table> |
− | {{#if: {{{ | + | <table class="collapsible collapsed wikitable" width=100% style="text-align:left; background:none"><!-- |
− | {{#if: {{{ | + | --><tr><th colspan="2" style="background:#B0C4DE; text-align:center;">Strength</th></tr><!-- |
− | + | -->{{#if: {{{strength1|}}}|<tr><td>1. {{{strength1}}}</td></tr>}}<!-- | |
− | + | -->{{#if: {{{strength2|}}}|<tr><td>2. {{{strength2}}}</td></tr>}}<!-- | |
− | + | -->{{#if: {{{strength3|}}}|<tr><td>3. {{{strength3}}}</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:# | + | <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:# | + | <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:# | + | <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> | ||
}} | }} | ||
− | | | + | | 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}}} | |||||
---|---|---|---|---|---|
|
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.