Template:Cabal Legion infobox: Difference between revisions

m (Text replacement - "0 0 0.75em 1em" to "0 0 0.5em 1em")
m (Text replacement - "({{{ *|\n *\| *)([A-Z][a-z][^\n\|\[\]{}]+ *)([=\|}])" to "$1$2$3")
 
(71 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 0.5em 1em; padding:2px; background:{{{BG|#e69500}}}; border-radius: 0 0 .7em .7em; -moz-border-radius: 0 0 .7em .7em; -webkit-border-radius: 0 0 .7em .7em; -ms-border-radius: 0 0 .7em .7em; -o-border-radius: 0 0 .7em .7em;  color:{{{color1|inherit}}};"
{| class="infobox" style="width:260px; background:{{{BG|#e69500}}}; color:{{{color1|inherit}}}" cellspacing="0"
{{!}}-
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! style="background:{{{nameBG|transparent}}}; color:{{{color2|white}}}; text-align:center; font-size:120%;" colspan="2" | '''{{{name}}}'''
|-
{{!}}-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
! class="infoboxcell" style="background:{{{imageBG|#FFF}}}; text-align:center; border-bottom:1px solid {{{lineBG|#e69500}}};" colspan="2" {{!}} {{{image|}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#fff}}}; border-bottom:1px solid {{{lineBG|silver}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
}}
}}
{{!}}-
|-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
{{#if:{{{hidea|}}}||
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|white}}}; text-align:center; background:{{{sectionBG|#e69500}}}" {{!}} {{{section1-title|Overview}}}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#e69500}}}" {{!}} {{{section1-title|Overview}}}
{{!}}-}}
}}
|-
{{#if:{{{objectives|}}}|
{{#if:{{{objectives|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#FFF}}}; border-bottom:1px solid {{{lineBG|silver}}}; border-top:1px solid {{{lineBG|silver}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
'''{{{objectives-title|Objectives}}}''':
{{{objectives-title|Objectives}}}:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#FFF}}}; border-bottom:1px solid {{{lineBG|silver}}}; border-top:1px solid {{{lineBG|silver}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{objectives|}}}
{{{objectives}}}
{{!}}-}}
}}
{{#if:{{{Commander(s)|}}}|
|-
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#FFF}}}; border-bottom:1px solid {{{lineBG|silver}}}; border-top:1px solid {{{lineBG|silver}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{#if:{{{commander(s)|}}}|
'''{{{Commander(s)-title|Commander(s)}}}''':
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#FFF}}}; border-bottom:1px solid {{{lineBG|silver}}}; border-top:1px solid {{{lineBG|silver}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{commander(s)-title|Commander(s)}}}:
{{{Commander(s)|}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{!}}-}}
{{{commander(s)}}}
{{#if:{{{Keep(s)|}}}|
}}
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#FFF}}}; border-bottom:1px solid {{{lineBG|silver}}}; border-top:1px solid {{{lineBG|silver}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
|-
'''{{{Keep(s)-title|Keep(s)}}}''':
{{#if:{{{keep(s)|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#FFF}}}; border-bottom:1px solid {{{lineBG|silver}}}; border-top:1px solid {{{lineBG|silver}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{Keep(s)|}}}
{{{keep(s)-title|Keep(s)}}}:
{{!}}-}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{keep(s)}}}
}}
|-
{{#if:{{{deployed|}}}|
{{#if:{{{deployed|}}}|
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#FFF}}}; border-bottom:1px solid {{{lineBG|silver}}}; border-top:1px solid {{{lineBG|silver}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
'''{{{deployed-title|Deployed}}}''':
{{{deployed-title|Deployed}}}:
{{!}} class="infoboxcell" style="vertical-align:top; background:{{{fieldBG|#FFF}}}; border-bottom:1px solid {{{lineBG|silver}}}; border-top:1px solid {{{lineBG|silver}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{deployed|}}}
{{{deployed}}}
{{!}}-}}
}}
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" | 
|-
{{#if:{{{affiliation|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{affiliation-title|Affiliation}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{affiliation}}}
}}
|-
{{#if:{{{war|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{war-title|At war with}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{war}}}
}}
|-
{{#if:{{{ally|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{ally-title|Allied with}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{ally}}}
}}
|-
| class="infoboxfooter" colspan="2" |  
|}<noinclude>{{clear}}
|}<noinclude>{{clear}}
==Usage==
==Usage==
Line 44: Line 69:
|name=
|name=
|objectives=
|objectives=
|Commander(s)=
|commander(s)=
|Keep(s)=
|keep(s)=
|deployed=
|deployed=
|affiliation=
|war=
|ally=
}}
}}
</pre>
</pre>
Line 52: Line 80:
==Custom parameters==
==Custom parameters==
The following allows you to alter the title of the sub-sections:
The following allows you to alter the title of the sub-sections:
<pre>
<pre>
|BG=
|BG=
Line 75: Line 104:
</pre>
</pre>


[[Category:Infobox templates|{{PAGENAME}}]]
[[Category:Infobox templates]]</noinclude>
</noinclude>

Latest revision as of 16:36, May 25, 2024

Cabal Legion infobox
Overview
 

Usage

Copy and paste the following into the article and fill in the fields.

{{Cabal Legion infobox
|image=
|name=
|objectives=
|commander(s)=
|keep(s)=
|deployed=
|affiliation=
|war=
|ally=
}}

Custom parameters

The following allows you to alter the title of the sub-sections:

|BG=
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=

Display parameters

The following allows you to hide the section header

  • hidea (hides Bio section header)
  • hideb (hides Politic/Military section header)
|hidea=
|hideb=