Template:Battle: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
m (Bullets aren't working, first fix attempt)
((I think that's all for now) Fix bullets. Collapse unused sections. Fix example)
Line 21: Line 21:
|-
|-
{{#if: {{{objective|}}}|  
{{#if: {{{objective|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; colspan="2" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} '''Objective''': {{{objective}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; colspan="2" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} '''Objective''':  
{{{objective}}}
}}
|-
|-
{{#if: {{{date|}}}|  
{{#if: {{{date|}}}|  
Line 27: Line 29:
|-
|-
{{#if: {{{location|}}}|  
{{#if: {{{location|}}}|  
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; colspan="2" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} '''Location''': {{{location}}}}}
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; colspan="2" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} '''Location''':  
{{{location}}}
}}
|-
|-
{{#if: {{{participants|}}}|  
{{#if: {{{participants|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; colspan="2" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} '''Participants''': {{{participants}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; colspan="2" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} '''Participants''': {{{participants}}}
}}
|-
|-
{{#if: {{{outcome|}}}|  
{{#if: {{{outcome|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; colspan="2" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} '''Outcome''': {{{outcome}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; colspan="2" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; font-size:smaller;"}}} {{!}} '''Outcome''':  
{{{outcome}}}
}}
|-
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#282828; text-align:center; font-size:8pt;" | '''Combatants'''
{{#if: {{{side1|}}}|
{{!}} colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#282828; text-align:center; font-size:8pt;" {{!}} '''Combatants'''|}}
|-
|-
{{#if: {{{side1|}}}|  
{{#if: {{{side1|}}}|  
Line 42: Line 50:
}}
}}
{{#if: {{{side2|}}}|  
{{#if: {{{side2|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{side2}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{side2}}}
}}
|-
|-
{{#if: {{{side3|}}}|  
{{#if: {{{side3|}}}|  
{{!}} {{#if: {{{side4|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{side3}}}}}
{{!}} {{#if: {{{side4|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{side3}}}
}}
{{#if: {{{side4|}}}|  
{{#if: {{{side4|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{side4}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{side4}}}
}}
|-
|-
{{#if: {{{side5|}}}|  
{{#if: {{{side5|}}}|  
{{!}} {{#if: {{{side6|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{side5}}}}}
{{!}} {{#if: {{{side6|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{side5}}}
}}
{{#if: {{{side6|}}}|  
{{#if: {{{side6|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{side6}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{side6}}}
}}
|-
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#282828; text-align:center; font-size:8pt;" | '''Commanders'''
{{#if: {{{commanders1|}}}|
{{!}} colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#282828; text-align:center; font-size:8pt;" {{!}} '''Commanders'''|}}
|-
|-
{{#if: {{{commanders1|}}}|  
{{#if: {{{commanders1|}}}|  
{{!}} {{#if: {{{commanders2|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{commanders1}}}}}
{{!}} {{#if: {{{commanders2|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{commanders1}}}
}}
{{#if: {{{commanders2|}}}|  
{{#if: {{{commanders2|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{commanders2}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{commanders2}}}
}}
|-
|-
{{#if: {{{commanders3|}}}|  
{{#if: {{{commanders3|}}}|  
{{!}} {{#if: {{{commanders4|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{commanders3}}}}}
{{!}} {{#if: {{{commanders4|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{commanders3}}}
}}
{{#if: {{{commanders4|}}}|  
{{#if: {{{commanders4|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{commanders4}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{commanders4}}}
}}
|-
|-
{{#if: {{{commanders5|}}}|  
{{#if: {{{commanders5|}}}|  
{{!}} {{#if: {{{commanders6|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{commanders5}}}}}
{{!}} {{#if: {{{commanders6|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{commanders5}}}
}}
{{#if: {{{commanders6|}}}|  
{{#if: {{{commanders6|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{commanders6}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{commanders6}}}
}}
|-
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#282828; text-align:center; font-size:8pt;" | '''Strength'''
{{#if: {{{forces1|}}}|
{{!}} colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#282828; text-align:center; font-size:8pt;" {{!}} '''Strength'''|}}
|-
|-
{{#if: {{{forces1|}}}|  
{{#if: {{{forces1|}}}|  
{{!}} {{#if: {{{forces2|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{forces1}}}}}
{{!}} {{#if: {{{forces2|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{forces1}}}
}}
{{#if: {{{forces2|}}}|  
{{#if: {{{forces2|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{forces2}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{forces2}}}
}}
|-
|-
{{#if: {{{forces3|}}}|  
{{#if: {{{forces3|}}}|  
{{!}} {{#if: {{{forces4|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{forces3}}}}}
{{!}} {{#if: {{{forces4|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{forces3}}}
}}
{{#if: {{{forces4|}}}|  
{{#if: {{{forces4|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{forces4}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{forces4}}}
}}
|-
|-
{{#if: {{{forces5|}}}|  
{{#if: {{{forces5|}}}|  
{{!}} {{#if: {{{forces6|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{forces5}}}}}
{{!}} {{#if: {{{forces6|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{forces5}}}
}}
{{#if: {{{forces6|}}}|  
{{#if: {{{forces6|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{forces6}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{forces6}}}
}}
|-
|-
| colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#282828; text-align:center; font-size:8pt;" | '''Casualties'''
{{#if: {{{casual1|}}}|
{{!}} colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed; background-color:#282828; text-align:center; font-size:8pt;" {{!}} '''Casualties''' |}}
|-
|-
{{#if: {{{casual1|}}}|  
{{#if: {{{casual1|}}}|  
{{!}} {{#if: {{{casual2|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{casual1}}}}}
{{!}} {{#if: {{{casual2|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{casual1}}}
}}
{{#if: {{{casual2|}}}|  
{{#if: {{{casual2|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{casual2}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{casual2}}}
}}
|-
|-
{{#if: {{{casual3|}}}|  
{{#if: {{{casual3|}}}|  
{{!}} {{#if: {{{casual4|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{casual3}}}}}
{{!}} {{#if: {{{casual4|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{casual3}}}
}}
{{#if: {{{casual4|}}}|  
{{#if: {{{casual4|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{casual4}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{casual4}}}
}}
|-
|-
{{#if: {{{casual5|}}}|  
{{#if: {{{casual5|}}}|  
{{!}} {{#if: {{{casual6|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{casual5}}}}}
{{!}} {{#if: {{{casual6|}}}| |colspan=2}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{casual5}}}
}}
{{#if: {{{casual6|}}}|  
{{#if: {{{casual6|}}}|  
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}} {{{casual6}}}}}
{{!}} bgcolor={{{bgcolor_value|#222222; width="50%" style="background: #222222; padding-left:6px; padding-right:6px; border-top: 1px solid #111111; border-right: 1px solid #111111; color: #cccccc; text-align:center; font-size:smaller;"}}} {{!}}  
{{{casual6}}}
}}
|-
|-
|colspan="2" style="border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; text-align: center; color: #e5e5ed; font-variant:small-caps; font-size:smaller; background-color:#383838; text-align:center; border-top: 1px solid #111111;" | [[Template:Battle|[ Source ]]]
|colspan="2" style="border-bottom-right-radius: .8em; border-bottom-left-radius: .8em; -moz-border-radius-bottomright: .8em; -moz-border-radius-bottomleft: .8em; -webkit-border-bottom-right-radius: .8em; -webkit-border-bottom-left-radius: .8em; text-align: center; color: #e5e5ed; font-variant:small-caps; font-size:smaller; background-color:#383838; text-align:center; border-top: 1px solid #111111;" | [[Template:Battle|[ Source ]]]
Line 111: Line 166:
To use: Paste the following text into the desired character article, and fill in the appropriate fields.
To use: Paste the following text into the desired character article, and fill in the appropriate fields.
<pre>
<pre>
{{Royale
{{Battle
| prev =  
| prev =  
| conc =  
| conc =  

Revision as of 18:10, 7 July 2011

{{{name}}}
Information
[ Source ]

Usage

To use: Paste the following text into the desired character article, and fill in the appropriate fields.

{{Battle
| prev = 
| conc = 
| next = 
| image = 
| name = 
| conflict = (details about the conflict in question)
| objective = (for mission-based battles)
| date = 
| location = 
| participants = (for events)
| outcome = 
| side1 = 
| side2 = 
| side3 = 
| side4 = 
| side5 = 
| side6 = 
| commanders1 = 
| commanders2 = 
| commanders3 = 
| commanders4 = 
| commanders5 = 
| commanders6 = 
| forces1 = 
| forces2 = 
| forces3 = 
| forces4 = 
| forces5 = 
| forces6 = 
| casual1 = 
| casual2 = 
| casual3 = 
| casual4 = 
| casual5 = 
| casual6 = 
}}