Template:Race infobox: Difference between revisions

From Destinypedia, the Destiny wiki

m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} ?class="infoboxlabel" style="background:([^\n;"]+); border-color:([^\n;"]+)" {{!}}↵([^\n]+):↵{{!}} ?class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to " {{Infobox|entry|title=$4|content=$1|bg=$2|linebg=$3}}")
mNo edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox|start|width=260px|color={{{color|#000}}}|bg={{{BG|{{#switch:{{{variant}}}|Human=royalblue|Exo=darkgrey|Awoken=purple|Fallen=maroon|Cabal=orange|Hive=olive|Vex=brown|Taken=black|lightslategray}}}}}}}
{{Infobox|start|width=260px|color={{{color1|#000}}}|bg={{{BG|{{#switch:{{{variant}}}|Human=royalblue|Exo=darkgrey|Awoken=purple|Fallen=maroon|Cabal=orange|Hive=olive|Vex=brown|Taken=black|lightslategray}}}}}}}
{{Infobox|title|name={{{name|}}}|color=#fff|bg={{{nameBG|transparent}}}}}
{{Infobox|title|name={{{name|}}}|color={{{color2|#fff}}}|bg={{{nameBG|transparent}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg={{{imageBG|#D0D1D7}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg={{{imageBG|#D0D1D7}}}|linebg={{{lineBG|#999}}}}}
{{#if:{{{hidea|}}}||
 
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|{{#switch:{{{variant}}}|Human=royalblue|Exo=darkgrey|Awoken=purple|Fallen=maroon|Cabal=orange|Hive=olive|Vex=brown|Taken=black|lightslategray}}}}}" {{!}} {{{section1-title|Overview}}}
{{Infobox|section|title={{{section1-title|Overview}}}|color={{{color2|#fff}}}|bg={{{sectionBG|{{#switch:{{{variant}}}|Human=royalblue|Exo=darkgrey|Awoken=purple|Fallen=maroon|Cabal=orange|Hive=olive|Vex=brown|Taken=black|lightslategray}}}}}|entries=
{{Infobox|entry|title={{{othernames-title|Other name(s)}}}|content={{{othernames|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{homeworld-title|Homeworld}}}|content={{{homeworld|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{focalworld(s)-title|Focal world(s)}}}|content={{{focalworld(s)|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{goals-title|Goals}}}|content={{{goals|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{affiliation-title|Affiliation}}}|content={{{affiliation|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{war-title|At war with}}}|content={{{war|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{ally-title|Allied with}}}|content={{{ally|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{height-title|Average height}}}|content={{{height|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{weight-title|Average weight}}}|content={{{weight|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{distinctions-title|Distinctions}}}|content={{{distinctions|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{lifespan-title|Average lifespan}}}|content={{{lifespan|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{notable-group-title|Notable group(s)}}}|content={{{notable-group|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{notable-person-title|Notable individual(s)}}}|content={{{notable-person|}}}|bg={{{fieldBG|#F3F3F3}}}|linebg={{{lineBG|#999}}}}}
}}
}}
|-
 
{{Infobox|entry|title={{{homeworld-title|Homeworld}}}|content={{{homeworld|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|end}}<noinclude>{{clear}}
{{Infobox|entry|title={{{focalworld(s)-title|Focal world(s)}}}|content={{{focalworld(s)|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{goals-title|Goals}}}|content={{{goals|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{war-title|At war with}}}|content={{{war|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{ally-title|Allied with}}}|content={{{ally|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{height-title|Average height}}}|content={{{height|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{weight-title|Average weight}}}|content={{{weight|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{distinctions-title|Distinctions}}}|content={{{distinctions|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{lifespan-title|Average lifespan}}}|content={{{lifespan|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{notable-group-title|Notable groups}}}|content={{{notable-group|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{notable-person-title|Notable individuals}}}|content={{{notable-person|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
{{Infobox|entry|title={{{othernames-title|Other names}}}|content={{{othernames|}}}|bg={{{fieldBG|#f0f0f0}}}|linebg={{{lineBG|#999}}}}}
| class="infoboxfooter" colspan="2" | &nbsp;
|}<noinclude>{{clear}}
==Usage instructions==
==Usage instructions==
Paste the following code into the top of an article, filling all known fields:
Paste the following code into the top of an article, filling all known fields:


<pre><nowiki>
<pre>
{{Race infobox
{{Race infobox
|name=
|name=
|image=
|othernames=
|othernames=
|image=
|variant=
|variant=
|homeworld=
|homeworld=
|focalworld(s)=
|focalworld(s)=
|goals=
|goals=
|affiliation=
|war=
|war=
|ally=
|ally=
Line 40: Line 41:
|notable-group=
|notable-group=
|notable-person=
|notable-person=
}}</nowiki></pre>
}}
</pre>


==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>
|nameBG=
|imageBG=
|imageBG=
|nameBG=
|sectionBG=
|sectionBG=
|fieldBG=
|fieldBG=
Line 54: Line 56:
|color2=
|color2=
|section1-title=
|section1-title=
|section2-title=
</pre>
</pre>


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

Latest revision as of 23:27, August 19, 2024

Race infobox
 

Usage instructions

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

{{Race infobox
|name=
|image=
|othernames=
|variant=
|homeworld=
|focalworld(s)=
|goals=
|affiliation=
|war=
|ally=
|height=
|weight=
|distinctions=
|lifespan=
|notable-group=
|notable-person=
}}

Custom parameters

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

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