Difference between revisions of "Template:Conflict"
m |
|||
(26 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly> | ||
<infobox theme="bravoconflict"> | |||
{{ | <title source="name"> | ||
<default>{{pagename}}</default><format>'''{{{name}}}'''</format> | |||
</title> | |||
<image source="image"/> | |||
<header>Basic Information</header> | |||
<data source="date"><label>Date</label><format>{{{date}}}</format></data> | |||
<data source="location"><label>Location</label><format>{{{location}}}</format></data> | |||
<data source="result"><label>Result</label><format>{{{result}}}</format></data> | |||
<header>Belligerents</header> | |||
<data source="belligerents right"><label>{{{belligerents left}}}</label><format>{{{belligerents right}}}</format></data> | |||
<header>Commanders</header> | |||
<data source="commanders right"><label>{{{commanders left}}}</label></data> | |||
<header>{{#if:{{{strength left|}}}{{{strength right|}}}|Strength|}}</header> | |||
<data source="strength right"><label>{{{strength left}}}</label></data> | |||
<header>Casualties</header> | |||
<data source="casualties right"><label>{{{casualties left}}}</label></data> | |||
<header name="footer">[[Template:Conflict]]</header> | |||
</infobox> | |||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Conflict]]}} | |||
{{#if: {{{strength left|}}}{{{strength right|}}}| | |||
{{#if: {{{ | |||
| | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
==Conflict== | ==Conflict== | ||
This infobox exists for the | 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: | ||
<pre> | <pre> | ||
Line 91: | Line 56: | ||
</pre> | </pre> | ||
==Belligerent== | ===Belligerent=== | ||
<pre> | <pre> | ||
{{belligerent|icon|name}} | {{belligerent|icon|name}} | ||
</pre> | </pre> | ||
This code is used to provide a belligerent and | 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 however an alignment issue with mixing belligerents with and without icons. Please see the example below to see the nature of this issue. | |||
If you have multiple commanders or nations, simply enter | 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== | ||
Line 110: | Line 77: | ||
</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 = August 5th, 2398<br>Stardate 75592.2 | ||
* | | location = Sector Kickass | ||
* | | result = *Noise control was told to piss off | ||
*Stereo turned up even louder! | |||
*IKS Rust Bucket captured | |||
| belligerents left = {{plainlist| | |||
{{belligerent|Starbase Kickass}} | |||
}} | |||
| belligerents right = {{plainlist| | |||
{{belligerent|FEDicon.png|The Feds}} | |||
{{belligerent|KDFicon.png|Clingwrap Empire}} | |||
{{belligerent|ROMicon.png|Roman Space Elves}} | |||
}} | |||
| commanders left = {{plainlist| | |||
{{belligerent|High Adm. Big Bird}} | |||
{{belligerent|Tholian Assembly.png|Old Lady Higgins}} | |||
}} | |||
| commanders right = {{plainlist| | |||
{{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 | |||
}} | |||
| templatemode = nocats | |||
}} | }} | ||
The following code block produced the infobox on the right | |||
<pre> | |||
{{Conflict | |||
| name = First Battle of Starbase Kickass | |||
| image = [[File:Starfleet1.jpg|Noise control running from Old Lady Higgins]] | |||
| date = August 5th, 2398<br>Stardate 75592.2 | |||
| location = Sector Kickass | | location = Sector Kickass | ||
| result = Noise control was told to piss off | | result = *Noise control was told to piss off | ||
| belligerents left = Starbase Kickass | *Stereo turned up even louder! | ||
| belligerents right = | *IKS Rust Bucket captured | ||
{{belligerent|FEDicon.png| | | belligerents left = {{plainlist| | ||
{{belligerent|KDFicon.png| | {{belligerent|Starbase Kickass}} | ||
}} | |||
| belligerents right = {{plainlist| | |||
{{belligerent|FEDicon.png|The Feds}} | |||
{{belligerent|KDFicon.png|Clingwrap Empire}} | |||
{{belligerent|ROMicon.png|Roman Space Elves}} | {{belligerent|ROMicon.png|Roman Space Elves}} | ||
| commanders left = | }} | ||
{{belligerent|High | | commanders left = {{plainlist| | ||
{{belligerent|High Adm. Big Bird}} | |||
{{belligerent|Tholian Assembly.png|Old Lady Higgins}} | {{belligerent|Tholian Assembly.png|Old Lady Higgins}} | ||
| commanders right = | }} | ||
{{belligerent|FEDicon.png| | | commanders right = {{plainlist| | ||
{{belligerent|FEDicon.png|Pointy Ears}} | |||
{{belligerent|KDFicon.png|honour eyes.gif}} | {{belligerent|KDFicon.png|honour eyes.gif}} | ||
{{belligerent|FEDicon.png| | {{belligerent|FEDicon.png|Adm. Ens. Kim}} | ||
}} | |||
| strength left = {{plainlist| | | strength left = {{plainlist| | ||
*Starbase Kickass | *Starbase Kickass | ||
Line 145: | Line 163: | ||
| casualties left = {{plainlist| | | casualties left = {{plainlist| | ||
*Janitor Jeff | *Janitor Jeff | ||
* | *Big Bird's cup of tea | ||
}} | }} | ||
| casualties right = {{plainlist| | | casualties right = {{plainlist| | ||
Line 152: | Line 170: | ||
}} | }} | ||
}} | }} | ||
</pre> | |||
[[Category:Infobox Templates]] | |||
{{clear}} | {{clear}} | ||
</noinclude> | |||
Latest revision as of 02:26, 15 November 2024
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
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 = August 5th, 2398<br>Stardate 75592.2 | location = Sector Kickass | result = *Noise control was told to piss off *Stereo turned up even louder! *IKS Rust Bucket captured | belligerents left = {{plainlist| {{belligerent|Starbase Kickass}} }} | belligerents right = {{plainlist| {{belligerent|FEDicon.png|The Feds}} {{belligerent|KDFicon.png|Clingwrap Empire}} {{belligerent|ROMicon.png|Roman Space Elves}} }} | commanders left = {{plainlist| {{belligerent|High Adm. Big Bird}} {{belligerent|Tholian Assembly.png|Old Lady Higgins}} }} | commanders right = {{plainlist| {{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 }} }}