Template:Species infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to " {{Infobox|entry|title=$2|content=$1}}")
No edit summary
Line 1: Line 1:
{| class="infobox" style="width:300px; background:{{{BG|#{{#switch:{{{variant|}}}|Flood=5D6A42|#default=334B5B}}}}}; color:{{{color1|#000}}}" cellspacing="0"
{{Infobox|start|bg=#{{#switch:{{{variant}}}|Flood=5D6A42|334B5B}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#D0D1D7}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#D0D1D7}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|section|title={{{section1-title|Biological overview}}}|bg=#{{#switch:{{{variant}}}|Flood=616B51|4F5360}}|entries=
}}
|-
{{#if:{{{hidea|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#{{#switch:{{{variant|}}}|Flood=616b51|#default=4F5360}}}}}" {{!}} {{{section1-title|Biological overview}}}
}}
|-
{{Infobox|entry|title={{{latin-title|Latin name}}}|content={{{latin|}}}}}
{{Infobox|entry|title={{{latin-title|Latin name}}}|content={{{latin|}}}}}
{{Infobox|entry|title={{{classification-title|Classification}}}|content={{{classification|}}}}}
{{Infobox|entry|title={{{classification-title|Classification}}}|content={{{classification|}}}}}
<!--This is specifically for sub-species, most notable examples being the Kig-Yar and Lekgolo, but is reserved for if more turn up.-->
<!--This is specifically for sub-species, most notable examples being the Kig-Yar and Lekgolo, but is reserved for if more turn up.-->
{{Infobox|entry|title={{{species-title|Species}}}|content={{{species|}}}}}
{{Infobox|entry|title={{{species-title|Species}}}|content={{{species|}}}}}
{{Infobox|entry|title={{{subspecies-title|Subspecies}}}|content={{{subspecies|}}}}}
{{Infobox|entry|title={{{subspecies-title|Subspecies}}}|content={{{subspecies|}}}}}
{{Infobox|entry|title={{{diet-title|Diet}}}|content={{{diet|}}}}}
{{Infobox|entry|title={{{diet-title|Diet}}}|content={{{diet|}}}}}
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#{{#switch:{{{variant|}}}|Flood=616b51|#default=4F5360}}}}}" {{!}} {{{section2-title|Physical information}}}
}}
}}
|-
 
{{Infobox|section|title={{{section2-title|Physical information}}}|bg=#{{#switch:{{{variant}}}|Flood=616B51|4F5360}}|entries=
{{Infobox|entry|title={{{height-title|Avg. height}}}|content={{{height|}}}}}
{{Infobox|entry|title={{{height-title|Avg. height}}}|content={{{height|}}}}}
{{Infobox|entry|title={{{weight-title|Avg. weight}}}|content={{{weight|}}}}}
{{Infobox|entry|title={{{weight-title|Avg. weight}}}|content={{{weight|}}}}}
{{Infobox|entry|title={{{distinctions-title|Distinctions}}}|content={{{distinctions|}}}}}
{{Infobox|entry|title={{{distinctions-title|Distinctions}}}|content={{{distinctions|}}}}}
{{Infobox|entry|title={{{lifespan-title|Avg. lifespan}}}|content={{{lifespan|}}}}}
{{Infobox|entry|title={{{lifespan-title|Avg. lifespan}}}|content={{{lifespan|}}}}}
{{#if:{{{hidec|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|#{{#switch:{{{variant|}}}|Flood=616b51|#default=4F5360}}}}}" {{!}} {{{section3-title|Sociocultural information}}}
}}
}}
|-
 
{{Infobox|section|title={{{section3-title|Sociocultural information}}}|bg=#{{#switch:{{{variant}}}|Flood=616B51|4F5360}}|entries=
{{Infobox|entry|title={{{homeworld-title|Homeworld}}}|content={{{homeworld|}}}}}
{{Infobox|entry|title={{{homeworld-title|Homeworld}}}|content={{{homeworld|}}}}}
{{Infobox|entry|title={{{techlevel-title|[[Technological Achievement Tiers|Technology level]]}}}|content={{{techlevel|}}}}}
{{Infobox|entry|title={{{techlevel-title|[[Technological Achievement Tiers|Technology level]]}}}|content={{{techlevel|}}}}}
Line 33: Line 25:
{{Infobox|entry|title={{{othernames-title|Also known as}}}|content={{{othernames|}}}}}
{{Infobox|entry|title={{{othernames-title|Also known as}}}|content={{{othernames|}}}}}
{{Infobox|entry|title={{{languages-title|Languages}}}|content={{{languages|}}}}}
{{Infobox|entry|title={{{languages-title|Languages}}}|content={{{languages|}}}}}
}}
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Species {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>{{clear}}
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Species {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>{{clear}}
==Usage instructions==
==Usage instructions==
Line 62: Line 56:


<pre>
<pre>
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section1-title=
|section2-title=
|section2-title=
|section3-title=
</pre>
</pre>


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

Revision as of 11:22, August 29, 2023

Species infobox
 

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:

|section1-title=
|section2-title=
|section3-title=