Template:Cabal Legion infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Text replacement - "{\| class="infobox" style="width:([^\n;"]+); background:([^\n;"]+); color:([^\n;"]+)" cellspacing="0"" to "{{Infobox|start|width=$1|color=$3|bg=$2}}")
m (Text replacement - "The following allows you to alter the title of the sub-sections:" to "The following parameters allow you to customize the infobox colors and section titles:")
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox|start|width=260px|color={{{color1|inherit}}}|bg={{{BG|#e69500}}}}}
{{Infobox|start|width=260px|color={{{color1|#000}}}|bg={{{BG|#e69500}}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}|color={{{color2|#fff}}}|bg={{{nameBG|transparent}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg={{{imageBG|#fff}}}|linebg={{{lineBG|silver}}}}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#fff}}}; border-bottom:1px solid {{{lineBG|silver}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|section|title={{{section1-title|Overview}}}|color={{{color2|#fff}}}|bg={{{sectionBG|#e69500}}}|entries=
{{Infobox|entry|title={{{objectives-title|Objectives}}}|content={{{objectives|}}}|bg={{{fieldBG|#fff}}}|linebg={{{lineBG|silver}}}}}
{{Infobox|entry|title={{{commander(s)-title|Commander(s)}}}|content={{{commander(s)|}}}|bg={{{fieldBG|#fff}}}|linebg={{{lineBG|silver}}}}}
{{Infobox|entry|title={{{keep(s)-title|Keep(s)}}}|content={{{keep(s)|}}}|bg={{{fieldBG|#fff}}}|linebg={{{lineBG|silver}}}}}
{{Infobox|entry|title={{{deployed-title|Deployed}}}|content={{{deployed|}}}|bg={{{fieldBG|#fff}}}|linebg={{{lineBG|silver}}}}}
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}|bg={{{fieldBG|#fff}}}|linebg={{{lineBG|silver}}}}}
{{Infobox|entry|title={{{war-title|At war with}}}|content={{{war|}}}|bg={{{fieldBG|#fff}}}|linebg={{{lineBG|silver}}}}}
{{Infobox|entry|title={{{ally-title|Allied with}}}|content={{{ally|}}}|bg={{{fieldBG|#fff}}}|linebg={{{lineBG|silver}}}}}
}}
}}
|-
 
{{#if:{{{hidea|}}}||
{{Infobox|end}}<noinclude>{{clear}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#e69500}}}" {{!}} {{{section1-title|Overview}}}
}}
|-
{{#if:{{{objectives|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{objectives-title|Objectives}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{objectives}}}
}}
|-
{{#if:{{{commander(s)|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{commander(s)-title|Commander(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{commander(s)}}}
}}
|-
{{#if:{{{keep(s)|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{keep(s)-title|Keep(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{keep(s)}}}
}}
|-
{{#if:{{{deployed|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{deployed-title|Deployed}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#fff}}}; border-color:{{{lineBG|silver}}}" {{!}}
{{{deployed}}}
}}
|-
{{#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" | &nbsp;
|}<noinclude>{{clear}}
==Usage instructions==
==Usage instructions==
Copy and paste the following into the article and fill in the fields.
Copy and paste the following into the article and fill in the fields.
Line 66: Line 19:
<pre>
<pre>
{{Cabal Legion infobox
{{Cabal Legion infobox
|name=
|image=
|image=
|name=
|objectives=
|objectives=
|commander(s)=
|commander(s)=
Line 79: Line 32:


==Custom parameters==
==Custom parameters==
The following allows you to alter the title of the sub-sections:
The following parameters allow you to customize the infobox colors and section titles:


<pre>
<pre>
|BG=
|BG=
|nameBG=
|imageBG=
|imageBG=
|nameBG=
|sectionBG=
|sectionBG=
|fieldBG=
|fieldBG=
Line 91: Line 44:
|color2=
|color2=
|section1-title=
|section1-title=
|section2-title=
</pre>
==Display parameters==
The following allows you to hide the section header
*hidea (hides Bio section header)
*hideb (hides Politic/Military section header)
<pre>
|hidea=
|hideb=
</pre>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 14:50, June 18, 2024

Cabal Legion infobox
 

Usage instructions

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

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

Custom parameters

The following parameters allow you to customize the infobox colors and section titles:

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