Template:InfoboxConflict: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
I | Sure, I'll create a new template from scratch that follows the structure of the provided example, using the colors and spacing from your previous examples. Here is the new MediaWiki template: | ||
```mediawiki | ```mediawiki | ||
| Line 5: | Line 5: | ||
{{InfoboxConflict | {{InfoboxConflict | ||
| image = | | image = | ||
| imageBG = | | imageBG = #153229 | ||
| name = | | name = | ||
| nameBG = | | nameBG = #1B4236 | ||
| color2 = | | color2 = #fff | ||
| date = | | date = | ||
| place = | | place = | ||
| result = | | result = | ||
| | | participants1 = | ||
| | | participants2 = | ||
| | | commanders1 = | ||
| | | commanders2 = | ||
| | | forces1 = | ||
| | | forces2 = | ||
| casualties1 = | | casualties1 = | ||
| casualties2 = | | casualties2 = | ||
| notes = | | notes = | ||
| references = | | references = | ||
| Line 32: | Line 28: | ||
{{!}}- | {{!}}- | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
! style="background:{{{imageBG|#153229}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" colspan=" | ! style="background:{{{imageBG|#153229}}}; text-align:center; border-bottom:0px solid {{{lineBG|#999999}}};" colspan="2" {{!}} {{{image|}}} | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
! style="background:{{{nameBG| | ! style="background:{{{nameBG|#1B4236}}}; color:{{{color2|#fff}}}; text-align:center; font-size:120%;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ||
{{!}}- | {{!}}- | ||
{{#if:{{{date|}}}| | {{#if:{{{date|}}}| | ||
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan=" | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
'''{{{date-title|Date}}}''': | '''{{{date-title|Date}}}''': | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan=" | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
{{{date|}}} | {{{date|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{place|}}}| | {{#if:{{{place|}}}| | ||
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan=" | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
'''{{{place-title|Place}}}''': | '''{{{place-title|Place}}}''': | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan=" | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
{{{place|}}} | {{{place|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{result|}}}| | {{#if:{{{result|}}}| | ||
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan=" | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
'''{{{result-title|Result}}}''': | '''{{{result-title|Result}}}''': | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan=" | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; border-bottom:0px solid {{{lineBG|#fff}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
{{{result|}}} | {{{result|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{!}}- | {{!}}- | ||
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{ | ! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{participants1-title|Participants (Side 1)}}}''' | ||
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{ | ! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{participants2-title|Participants (Side 2)}}}''' | ||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{ | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px;" {{!}} {{{participants1|}}} | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{ | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px;" {{!}} {{{participants2|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{commanders1-title|Commanders and leaders (Side 1)}}}''' | |||
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{commanders2-title|Commanders and leaders (Side 2)}}}''' | |||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{ | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px;" {{!}} {{{commanders1|}}} | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{ | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px;" {{!}} {{{commanders2|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{forces1-title|Forces (Side 1)}}}''' | |||
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{forces2-title|Forces (Side 2)}}}''' | |||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{ | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px;" {{!}} {{{forces1|}}} | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{ | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px;" {{!}} {{{forces2|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{casualties1-title|Casualties and losses (Side 1)}}}''' | |||
! style="background:{{{fieldBG|#1B4236}}}; text-align:center; color:#fff;" {{!}} '''{{{casualties2-title|Casualties and losses (Side 2)}}}''' | |||
{{!}}- | {{!}}- | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{casualties1|}}} | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px;" {{!}} {{{casualties1|}}} | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" {{!}} {{{casualties2|} | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px;" {{!}} {{{casualties2|}}} | ||
}} | |||
{{!}}- | {{!}}- | ||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" colspan=" | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
'''{{{notes-title|Notes}}}''': | '''{{{notes-title|Notes}}}''': | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan=" | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
{{{notes|}}} | {{{notes|}}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if:{{{references|}}}| | {{#if:{{{references|}}}| | ||
{{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px;" colspan=" | {{!}} class="infoboxlabel" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
'''{{{references-title|References}}}''': | '''{{{references-title|References}}}''': | ||
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding: 10px 0 0 20px; line-height:14px;" colspan=" | {{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#1B4236}}}; color:#fff; padding:10px 0 0 20px; line-height:14px;" colspan="2" {{!}} | ||
{{{references|}}} | {{{references|}}} | ||
{{!}}-}} | {{!}}-}} | ||
| Line 122: | Line 91: | ||
``` | ``` | ||
This | This template now closely resembles the reference image structure but uses the colors and spacing from the previous examples. It should render with two | ||
Revision as of 00:26, 5 August 2024
Sure, I'll create a new template from scratch that follows the structure of the provided example, using the colors and spacing from your previous examples. Here is the new MediaWiki template:
```mediawiki
{{InfoboxConflict
| image =
| imageBG = #153229
| name =
| nameBG = #1B4236
| color2 = #fff
| date =
| place =
| result =
| participants1 =
| participants2 =
| commanders1 =
| commanders2 =
| forces1 =
| forces2 =
| casualties1 =
| casualties2 =
| notes =
| references =
}}
| InfoboxConflict | |
|---|---|
| Participants (Side 1) | Participants (Side 2) |
| Commanders and leaders (Side 1) | Commanders and leaders (Side 2) |
| Forces (Side 1) | Forces (Side 2) |
| Casualties and losses (Side 1) | Casualties and losses (Side 2) |
```
This template now closely resembles the reference image structure but uses the colors and spacing from the previous examples. It should render with two