|
|
(12 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| <table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:300px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"><tr><td colspan="2"><div id="infoboxinternal">
| | <div class="infobox"> |
| <table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:300px; background:#ffffff; border-collapse:collapse;"> | | <div class="header">'''{{{name}}}'''</div> |
| {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; 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|#F0F0F0}}}; vertical-align:top;"><td>'''Previous''':</td><td class="infoboxcell" style="width:100%;">
| | <div class="image">{{{image}}}</div> |
| {{{prev}}} | | <div class="vborder">'''Conflict''': {{{conflict}}}</div> |
| </td></tr></table>
| | <div>'''Date''': {{{date}}}</div> |
| </td></tr>|1{{{prev|}}}=}}
| | <div class="vborder">'''Place''': {{{place}}}</div> |
| {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; 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|#F0F0F0}}}; vertical-align:top;"><td>'''Concurrent''':</td><td class="infoboxcell" style="width:100%;">
| | <div>'''Outcome''': {{{result}}}</div> |
| {{{conc}}}
| | <div class="subheader vborder">'''Combatants'''</div> |
| </td></tr></table> | | <table cellspacing="0"><tr><td class="left centered">{{{side1}}}</td> |
| </td></tr>|1{{{conc|}}}=}}
| | <td class="centered">{{{side2}}}</td></tr></table> |
| {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; 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|#F0F0F0}}}; vertical-align:top;"><td>'''Next''':</td><td class="infoboxcell" style="width:100%;">
| | <div class="subheader vborder">'''Commanders'''</div> |
| {{{next}}}
| | <table cellspacing="0"><tr><td class="left">{{{commanders1}}}</td> |
| </td></tr></table>
| | <td>{{{commanders2}}}</td></tr></table> |
| </td></tr>|1{{{next|}}}=}}
| | <div class="subheader vborder">'''Strength'''</div> |
| <tr style="text-align:center; color:#ffffff; background:{{{c1|#7995CA}}}; font-size:larger;"><th colspan="2">{{{name}}}</th></tr>
| | <table cellspacing="0"><tr><td class="left">{{{forces1}}}</td> |
| <tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{c2|#B4C5E3}}};">{{{image|}}}</td></tr>
| | <td>{{{forces2}}}</td></tr></table> |
| <tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><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|#F0F0F0}}}; vertical-align:top;"><td>'''Conflict''':</td><td class="infoboxcell" style="width:100%;"> | | <div class="subheader vborder">'''Casualties'''</div> |
| {{{conflict}}} | | <table cellspacing="0"><tr><td class="left">{{{casual1}}}</td> |
| </td></tr></table> | | <td>{{{casual2}}}</td></tr></table> |
| </td></tr> | | </div> |
| <tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><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|#F0F0F0}}}; vertical-align:top;"><td>'''Date''':</td><td class="infoboxcell" style="width:100%;">
| | <noinclude> |
| {{{date}}} | | Use this template as a battle infobox. For an example, see [[Battle of Blerthmore]]. |
| </td></tr></table> | | |
| </td></tr> | | Code for inclusion: |
| <tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><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|#F0F0F0}}}; vertical-align:top;"><td>'''Place''':</td><td class="infoboxcell" style="width:100%;">
| | |
| {{{place}}} | | <pre> |
| </td></tr></table> | | {{battle| |
| </td></tr> | | name=| |
| <tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><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|#F0F0F0}}}; vertical-align:top;"><td>'''Outcome''':</td><td class="infoboxcell" style="width:100%;">
| | conflict=| |
| {{{result}}} | | date=| |
| </td></tr></table> | | place=| |
| </td></tr> | | result=| |
| <tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#B4C5E3}}};">'''Combatants'''</th></tr>
| | side1=| |
| <tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; text-align:center; background:{{{c3|#F0F0F0}}};"><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;"> | | side2=| |
| {{{side1}}} | | commanders1=| |
| </td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;"> | | commanders2=| |
| {{{side2}}} | | forces1=| |
| </td></tr> | | forces2=| |
| <tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#B4C5E3}}};">'''Commanders'''</th></tr> | | casual1=| |
| <tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:{{{c3|#F0F0F0}}};"><td class="infoboxcell" width="50%" style="border-top: 1px solid #999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;"> | | casual2= |
| {{{commanders1}}} | | }} |
| </td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;"> | | </pre> |
| {{{commanders2}}} | | |
| </td></tr> | | == Display issues == |
| <tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#B4C5E3}}};">'''Strength'''</th></tr> | | * Opera: Template renders perfectly. |
| <tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:{{{c3|#F0F0F0}}};"><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;"> | | * Firefox: In two-column rows, e.g. "Combatants", the cells vary in size instead of staying 150 pixels wide like they are told to, when the template is actually used. This is a minor issue but it results in imperfectly aligned center borders. |
| {{{forces1}}} | | * Internet Explorer: Interestingly enough, template renders perfectly in IE7. For once it's only Firefox that's screwed. My world is upside down. |
| </td><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;"> | | |
| {{{forces2}}} | | [[Category:Infobox templates|{{PAGENAME}}]] |
| </td></tr> | | </noinclude> |
| <tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#B4C5E3}}};">'''Casualties'''</th></tr> | |
| <tr style="spacing-top:0px; spacing-bottom:0px; vertical-align:top; background:{{{c3|#F0F0F0}}};"><td class="infoboxcell" width="50%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999; border-right: 1px solid #999999;"> | |
| {{{casual1}}} | |
| </td><td class="infoboxcell" width="33%" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;"> | |
| {{{casual2}}} | |
| </td></tr></table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;"> [[Template:Battle|[Source]]]</td></tr></table><noinclude> | |
{{{image}}}
Conflict: {{{conflict}}}
Date: {{{date}}}
Place: {{{place}}}
Outcome: {{{result}}}
{{{commanders1}}} |
{{{commanders2}}} |
{{{forces1}}} |
{{{forces2}}} |
{{{casual1}}} |
{{{casual2}}} |
Use this template as a battle infobox. For an example, see Battle of Blerthmore.
Code for inclusion:
{{battle|
name=|
conflict=|
date=|
place=|
result=|
side1=|
side2=|
commanders1=|
commanders2=|
forces1=|
forces2=|
casual1=|
casual2=
}}
Display issues
- Opera: Template renders perfectly.
- Firefox: In two-column rows, e.g. "Combatants", the cells vary in size instead of staying 150 pixels wide like they are told to, when the template is actually used. This is a minor issue but it results in imperfectly aligned center borders.
- Internet Explorer: Interestingly enough, template renders perfectly in IE7. For once it's only Firefox that's screwed. My world is upside down.