Template:Species infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "|{{!}}-|{{!}}-" to "||")
(adding the ability to make this a flood themed species box)
Line 1: Line 1:
{| class="infobox" style="width:300px; background:{{{BG|#334B5B}}}; color:{{{color1|#000}}}" cellspacing="0"
{| class="infobox" style="width:300px; background:{{{BG|#{{#switch:{{{variant|}}}|Flood=996|#default=334B5B}}}}}; color:{{{color1|#000}}}" cellspacing="0"
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
|-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#D0D1D7}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#D0D1D7}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
Line 7: Line 10:
|-
|-
{{#if:{{{hidea|}}}||
{{#if:{{{hidea|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#4F5360}}}" {{!}} {{{section1-title|Biological overview}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#{{#switch:{{{variant|}}}|Flood=DDB|#default=4F5360}}}}}" {{!}} {{{section1-title|Biological overview}}}
}}
}}
|-
|-
Line 47: Line 50:
|-
|-
{{#if:{{{hideb|}}}||
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#4F5360}}}" {{!}} {{{section2-title|Physical information}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#{{#switch:{{{variant|}}}|Flood=DDB|#default=4F5360}}}}}" {{!}} {{{section2-title|Physical information}}}
}}
}}
|-
|-
Line 79: Line 82:
|-
|-
{{#if:{{{hidec|}}}||
{{#if:{{{hidec|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#4F5360}}}" {{!}} {{{section3-title|Sociocultural information}}}
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#{{#switch:{{{variant|}}}|Flood=DDB|#default=4F5360}}}}}" {{!}} {{{section3-title|Sociocultural information}}}
}}
}}
|-
|-
Line 124: Line 127:
<pre><nowiki>
<pre><nowiki>
{{Species infobox
{{Species infobox
|variant=<!--Leave blank for most species. Use Flood parameter to theme infobox green.-->
|name=
|name=
|image=
|image=

Revision as of 09:39, November 15, 2022

Species infobox
Biological overview
Physical information
Sociocultural information
 

Usage instructions

Paste the following code into the top of an article, filling all known fields:

{{Species infobox
|variant=<!--Leave blank for most species. Use Flood parameter to theme infobox green.-->
|name=
|image=
|latin=
|classification=
|species=
|subspecies=
|diet=
|height=
|weight=
|distinctions=
|lifespan=
|homeworld=
|techlevel=
|notable-person=
|othernames=
|languages=
}}

Custom parameters

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

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