Difference between revisions of "Template:Conflict"

Template page
m
m
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<div class="infobox">
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px; margin-bottom:0; padding-left:10px;"
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="border-top-right-radius: 13px; border-top-left-radius: 13px; background: #f3f3f3 !important; color: #cccccc; font-size: smaller; text-align: center; padding: 10px;"}}} {{!}} {{{image}}}
    {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}}
    {{!}}-
    {{!}} class="ibname" colspan="2" {{!}} '''{{{name}}}'''|
        {{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''{{{name}}}'''
}}
}}
|-
| colspan="2" style="text-align: center; color: #e5e5ed; font-size: larger; background: #304665; text-align: center; padding: .3rem 1.25rem;" | '''{{{name}}}'''
|-
|-
{{#if: {{{date|}}}|
{{#if: {{{date|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding: 8px 10px; color: #696969; font-size: smaller; width: 40%; vertical-align: top;"}}} {{!}} Date
{{!}} class="ibleft" style="width: 50%;" {{!}} Date
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding: 8px 10px; color: #696969; font-size: smaller; width: 60%; vertical-align: top;"}}} {{!}} {{{date}}}  
{{!}} class="ibright" style="width: 50%;" {{!}}  
{{{date}}}  
}}
}}
|-
|-
{{#if: {{{location|}}}|
{{#if: {{{location|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding: 8px 10px; color: #696969; font-size: smaller; width: 40%; vertical-align: top;"}}} {{!}} Location
{{!}} class="ibleft" style="width: 50%;" {{!}} Location
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding: 8px 10px; color: #696969; font-size: smaller; width: 60%; vertical-align: top;"}}} {{!}} {{{location}}}  
{{!}} class="ibright" style="width: 50%;" {{!}}  
{{{location}}}  
}}
}}
|-
|-
{{#if: {{{result|}}}|
{{#if: {{{result|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding: 8px 10px; color: #696969; font-size: smaller; width: 40%; vertical-align: top;"}}} {{!}} Result
{{!}} class="ibleft" style="width: 50%;" {{!}} Result
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding: 8px 10px; color: #696969; font-size: smaller; width: 60%; vertical-align: top;"}}} {{!}} {{{result}}}
{{!}} class="ibright" style="width: 50%;" {{!}}  
{{{result}}}
}}
}}
|-
|-
| colspan="2" style="text-align: center; color: #e5e5ed; background:#2a4667c9; font-size:8pt; padding: 6px" | '''Belligerents'''
| class="ibheader" colspan="2" | '''Belligerents'''
|-
|-
{{#if: {{{belligerents left|}}}{{{belligerents right|}}}|
{{#if: {{{belligerents left|}}}{{{belligerents right|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding: 8px 10px; color: #696969; font-size: smaller; width: 50%; vertical-align: top;"}}} {{!}} {{{belligerents left}}}
{{!}} class="ibleft" style="width: 50%;" {{!}}  
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding: 8px 10px; color: #696969; font-size: smaller; width: 50%; vertical-align: top;"}}} {{!}} {{{belligerents right}}}
{{{belligerents left}}}
{{!}} class="ibright" style="width: 50%;" {{!}}  
{{{belligerents right}}}
}}
}}
|-
|-
| colspan="2" style="text-align: center; color: #e5e5ed; background:#2a4667c9; font-size: 8pt; padding: 6px" | '''Commanders'''
{{#if: {{{commanders left|}}}{{{commanders right|}}}|  
{{!}} class="ibheader" colspan="2" {{!}} '''Commanders'''
}}
|-
|-
{{#if: {{{commanders left|}}}{{{commanders right|}}}|
{{#if: {{{commanders left|}}}{{{commanders right|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding: 8px 10px; color: #696969; font-size: smaller; width: 50%; vertical-align: top;"}}} {{!}} {{{commanders left}}}
{{!}} class="ibleft" style="width: 50%;" {{!}}  
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding: 8px 10px; color: #696969; font-size: smaller; width: 50%; vertical-align: top;"}}} {{!}} {{{commanders right}}}
{{{commanders left}}}
{{!}} class="ibright" style="width: 50%;" {{!}}  
{{{commanders right}}}
}}
}}
|-
|-
| colspan="2" style="text-align: center; color: #e5e5ed; background:#2a4667c9; font-size: 8pt; padding: 6px" | '''Strength'''
{{#if: {{{strength left|}}}{{{strength right|}}}|  
{{!}} class="ibheader" colspan="2" {{!}} '''Strength'''
}}
|-
|-
{{#if: {{{strength left|}}}{{{strength right|}}}|
{{#if: {{{strength left|}}}{{{strength right|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding: 8px 10px; color: #696969; font-size: smaller; width: 50%; vertical-align: top;"}}} {{!}} {{{strength left}}}
{{!}} class="ibleft" style="width: 50%;" {{!}}  
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding: 8px 10px; color: #696969; font-size: smaller; width: 50%; vertical-align: top;"}}} {{!}} {{{strength right}}}
{{{strength left}}}
{{!}} class="ibright" style="width: 50%;" {{!}}  
{{{strength right}}}
}}
}}
|-
|-
| colspan="2" style="text-align: center; color: #e5e5ed; background:#2a4667c9; font-size: 8pt; padding: 6px" | '''Casualties and losses'''
{{#if: {{{casualties left|}}}{{{casualties right|}}}|  
{{!}} class="ibheader" colspan="2" {{!}} '''Casualties and Losses'''
}}
|-
|-
{{#if: {{{casualties left|}}}{{{casualties right|}}}|
{{#if: {{{casualties left|}}}{{{casualties right|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding: 8px 10px; color: #696969; font-size: smaller; width: 50%; vertical-align: top;"}}} {{!}} {{{casualties left}}}
{{!}} class="ibleft" style="width: 50%;" {{!}}  
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding: 8px 10px; color: #696969; font-size: smaller; width: 50%; vertical-align: top;"}}} {{!}} {{{casualties right}}}
{{{casualties left}}}
{{!}} class="ibright" style="width: 50%;" {{!}}  
{{{casualties right}}}
}}
}}
|-
|-
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Conflict]]
| colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; text-align: center; color: #F67F00; font-size: 8pt; background: #2a4667c9; padding: 6px 0;" | [[Template:Conflict]]
|}
|}
</div>
</div>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Conflict]]{{DEFAULTSORT:{{{name}}}}}
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Conflict]]
}}
}}
</includeonly>
</includeonly><noinclude>
<noinclude>
==Conflict==
==Conflict==
This infobox exists for the purposes of providing a uniform and consistent method for displaying conflict high level details. There is the infobox itself as well as 2 other templates in use for formatting. They are detailed below on their usage as well and examples are provided within the infobox code below.
This infobox exists for the purpose of providing a uniform and consistent method for displaying conflict high-level details. There is the infobox itself as well as 2 other templates in use for formatting. They are detailed below on their usage and examples are provided within the infobox code example below.


The code for the infobox itself is as follows:
The code for the infobox itself is as follows:
Line 93: Line 109:
</pre>
</pre>


==Belligerent==
===Belligerent===
<pre>
<pre>
{{belligerent|icon|name}}
{{belligerent|icon|name}}
</pre>
</pre>
This code is used to provide a belligerent and it's national icon. The code can be used for nations, commanders and strength if indicating strength per participant instead of as a whole per side.
This code is used to provide a belligerent and its national icon. The code can be used for nations, commanders and strength if indicating strength per participant instead of as a whole per side.
If there is no accompanying icon, remove the icon| part of the code and it will simply display the nation name correctly.
If there is no accompanying icon, remove the icon| part of the code and it will simply display the nation name correctly.
;;;THERE IS A LINE GAP ISSUE, SEE EXAMPLE BELOW
If there is a commander or nation without an icon, it creates a spacing issue with entities on either above and below.


You have been warned.
There is however an alignment issue with mixing belligerents with and without icons. Please see the example below to see the nature of this issue.
 
If there is a commander or nation without an icon, it creates a spacing issue with entities either above or below.


If you have multiple commanders or nations, simply enter in a belligerent line in for each entity.
If you have multiple commanders or nations, simply enter a belligerent line for each entity.


==Plainlist==
==Plainlist==
Line 114: Line 130:
</pre>
</pre>
This is used when you have a list of items. It will display a list without any bullet points at all in mediawiki code and not require the use of HTML to force line breaks. It works best for listing items in this template and is preferred.
This is used when you have a list of items. It will display a list without any bullet points at all in mediawiki code and not require the use of HTML to force line breaks. It works best for listing items in this template and is preferred.
 
{{clear}}
==Example==
==Example==
{{Conflict
{{Conflict
| name = First Battle of Starbase Kickass
| name = First Battle of Starbase Kickass
| image =  
| image = [[File:Starfleet1.jpg|Noise control running from Old Lady Higgins]]
| date = {{plainlist|
| date = {{plainlist|
*August 5th, 2398
*August 5th, 2398
Line 124: Line 140:
}}
}}
| location = Sector Kickass
| location = Sector Kickass
| result = Noise control was told to piss off, stereo turned up even louder!
| result = {{plainlist|
| belligerents left = Starbase Kickass
*Noise control was told to piss off
*Stereo turned up even louder!
*IKS Rust Bucket captured
}}
| belligerents left =  
{{belligerent|Starbase Kickass}}
| belligerents right =  
| belligerents right =  
{{belligerent|FEDicon.png|The Federation}}
{{belligerent|FEDicon.png|The Feds}}
{{belligerent|KDFicon.png|Clingy Empire}}
{{belligerent|KDFicon.png|Clingwrap Empire}}
{{belligerent|ROMicon.png|Roman Space Elves}}
{{belligerent|ROMicon.png|Roman Space Elves}}
| commanders left =  
| commanders left =  
{{belligerent|Big Bird}}
{{belligerent|High Adm. Big Bird}}
{{belligerent|Tholian Assembly.png|Old Lady Higgins}}
{{belligerent|Tholian Assembly.png|Old Lady Higgins}}
| commanders right =  
| commanders right =  
{{belligerent|FEDicon.png|Pointy Ears}}
{{belligerent|FEDicon.png|Pointy Ears}}
{{belligerent|KDFicon.png|honour eyes.gif}}
{{belligerent|KDFicon.png|honour eyes.gif}}
{{belligerent|FEDicon.png|Ensign Kim}}
{{belligerent|FEDicon.png|Adm. Ens. Kim}}
| strength left = {{plainlist|
| strength left = {{plainlist|
*Starbase Kickass
*Starbase Kickass
Line 149: Line 170:
| casualties left = {{plainlist|
| casualties left = {{plainlist|
*Janitor Jeff
*Janitor Jeff
*High Admiral Big Bird's cup of tea
*Big Bird's cup of tea
}}
}}
| casualties right = {{plainlist|
| casualties right = {{plainlist|
Line 155: Line 176:
*1 bottle 2279 Saurian Brandy
*1 bottle 2279 Saurian Brandy
}}
}}
| templatemode = nocats
}}
}}
The following code block produced the infobox on the right
The following code block produced the infobox on the right
Line 160: Line 182:
{{Conflict
{{Conflict
| name = First Battle of Starbase Kickass
| name = First Battle of Starbase Kickass
| image =  
| image = [[File:Starfleet1.jpg|Noise control running from Old Lady Higgins]]
| date = {{plainlist|
| date = {{plainlist|
*August 5th, 2398
*August 5th, 2398
Line 166: Line 188:
}}
}}
| location = Sector Kickass
| location = Sector Kickass
| result = Noise control was told to piss off, stereo turned up even louder!
| result = {{plainlist|
| belligerents left = Starbase Kickass
*Noise control was told to piss off
*Stereo turned up even louder!
*IKS Rust Bucket captured
}}
| belligerents left =  
{{belligerent|Starbase Kickass}}
| belligerents right =  
| belligerents right =  
{{belligerent|FEDicon.png|The Federation}}
{{belligerent|FEDicon.png|The Feds}}
{{belligerent|KDFicon.png|Clingy Empire}}
{{belligerent|KDFicon.png|Clingwrap Empire}}
{{belligerent|ROMicon.png|Roman Space Elves}}
{{belligerent|ROMicon.png|Roman Space Elves}}
| commanders left =  
| commanders left =  
{{belligerent|Big Bird}}
{{belligerent|High Adm. Big Bird}}
{{belligerent|Tholian Assembly.png|Old Lady Higgins}}
{{belligerent|Tholian Assembly.png|Old Lady Higgins}}
| commanders right =  
| commanders right =  
{{belligerent|FEDicon.png|Pointy Ears}}
{{belligerent|FEDicon.png|Pointy Ears}}
{{belligerent|KDFicon.png|honour eyes.gif}}
{{belligerent|KDFicon.png|honour eyes.gif}}
{{belligerent|FEDicon.png|Ensign Kim}}
{{belligerent|FEDicon.png|Adm. Ens. Kim}}
| strength left = {{plainlist|
| strength left = {{plainlist|
*Starbase Kickass
*Starbase Kickass
Line 191: Line 218:
| casualties left = {{plainlist|
| casualties left = {{plainlist|
*Janitor Jeff
*Janitor Jeff
*High Admiral Big Bird's cup of tea
*Big Bird's cup of tea
}}
}}
| casualties right = {{plainlist|
| casualties right = {{plainlist|
Line 199: Line 226:
}}
}}
</pre>
</pre>
[[Category:Infobox Templates]]{{DEFAULTSORT:#}}
[[Category:Infobox Templates]]
{{clear}}
</noinclude>
</noinclude>

Latest revision as of 12:10, 23 March 2024

{{{name}}}
Belligerents
Template:Conflict

Conflict

This infobox exists for the purpose of providing a uniform and consistent method for displaying conflict high-level details. There is the infobox itself as well as 2 other templates in use for formatting. They are detailed below on their usage and examples are provided within the infobox code example below.

The code for the infobox itself is as follows:

{{Conflict
| name = 
| image = 
| date = 
| location = 
| result = 
| belligerents left = {{belligerent|icon|name}}
| belligerents right = {{belligerent|icon|name}}
| commanders left = {{belligerent|icon|name}}
| commanders right = {{belligerent|icon|name}}
| strength left = {{plainlist|
*
*
}}
| strength right = {{plainlist|
*
*
}}
| casualties left = {{plainlist|
*
*
}}
| casualties right = {{plainlist|
*
*
}}
}}

Belligerent

{{belligerent|icon|name}}

This code is used to provide a belligerent and its national icon. The code can be used for nations, commanders and strength if indicating strength per participant instead of as a whole per side. If there is no accompanying icon, remove the icon| part of the code and it will simply display the nation name correctly.

There is however an alignment issue with mixing belligerents with and without icons. Please see the example below to see the nature of this issue.

If there is a commander or nation without an icon, it creates a spacing issue with entities either above or below.

If you have multiple commanders or nations, simply enter a belligerent line for each entity.

Plainlist

{{plainlist|
*
*
}}

This is used when you have a list of items. It will display a list without any bullet points at all in mediawiki code and not require the use of HTML to force line breaks. It works best for listing items in this template and is preferred.

Example

Noise control running from Old Lady Higgins
First Battle of Starbase Kickass
Date
  • August 5th, 2398
  • Staradate 75592.2
Location

Sector Kickass

Result
  • Noise control was told to piss off
  • Stereo turned up even louder!
  • IKS Rust Bucket captured
Belligerents
Blankflag.png
Starbase Kickass
FEDicon.png
The Feds


KDFicon.png
Clingwrap Empire


ROMicon.png
Roman Space Elves
Commanders
Blankflag.png
High Adm. Big Bird


Tholian Assembly.png
Old Lady Higgins
FEDicon.png
Pointy Ears


KDFicon.png
honour eyes.gif


FEDicon.png
Adm. Ens. Kim
Strength
  • Starbase Kickass
  • USS Lollipop
  • USS Shiny
  • IKS Rust Bucket
  • 3 Cruisers
  • 4 Destroyers
Casualties and Losses
  • Janitor Jeff
  • Big Bird's cup of tea
  • 6000 Egos badly bruised
  • 1 bottle 2279 Saurian Brandy
Template:Conflict


The following code block produced the infobox on the right

{{Conflict
| name = First Battle of Starbase Kickass
| image = [[File:Starfleet1.jpg|Noise control running from Old Lady Higgins]]
| date = {{plainlist|
*August 5th, 2398
*Staradate 75592.2
}}
| location = Sector Kickass
| result = {{plainlist|
*Noise control was told to piss off
*Stereo turned up even louder!
*IKS Rust Bucket captured
}}
| belligerents left = 
{{belligerent|Starbase Kickass}}
| belligerents right = 
{{belligerent|FEDicon.png|The Feds}}
{{belligerent|KDFicon.png|Clingwrap Empire}}
{{belligerent|ROMicon.png|Roman Space Elves}}
| commanders left = 
{{belligerent|High Adm. Big Bird}}
{{belligerent|Tholian Assembly.png|Old Lady Higgins}}
| commanders right = 
{{belligerent|FEDicon.png|Pointy Ears}}
{{belligerent|KDFicon.png|honour eyes.gif}}
{{belligerent|FEDicon.png|Adm. Ens. Kim}}
| strength left = {{plainlist|
*Starbase Kickass
*USS Lollipop
}}
| strength right = {{plainlist|
*USS Shiny
*IKS Rust Bucket
*3 Cruisers
*4 Destroyers
}}
| casualties left = {{plainlist|
*Janitor Jeff
*Big Bird's cup of tea
}}
| casualties right = {{plainlist|
*6000 Egos badly bruised
*1 bottle 2279 Saurian Brandy
}}
}}