Template:Race infobox: Difference between revisions
From Destinypedia, the Destiny wiki
(Template isn't displaying properly.) |
No edit summary Tags: Manual revert Mobile edit |
||
(124 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox | {| class="infobox" style="width:260px; color:{{{color|#000}}}; background:{{{BG|{{#switch:{{{variant|}}}|Human=royalblue|Exo=darkgrey|Awoken=purple|Fallen=maroon|Cabal=orange|Hive=olive|Vex=brown|Taken=black|#default=lightslategray}}}}}" cellspacing="0" | ||
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:#fff" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | |||
! style="background:{{{nameBG|transparent}}} | |- | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
! style="background:{{{imageBG|# | {{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#D0D1D7}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}} | ||
}} | }} | ||
|- | |||
{{#if:{{{hidea|}}}| | {{#if:{{{hidea|}}}|| | ||
! class="infoboxsubheading" colspan="2" style=" | ! 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|#default=lightslategray}}}}}" {{!}} {{{section1-title|Overview}}} | ||
}} | |||
{{#if:{{{ | |- | ||
{{!}} style=" | {{#if:{{{homeworld|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}} | |||
{{!}} style=" | {{{homeworld-title|Homeworld}}}: | ||
{{{ | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{!}} | {{{homeworld}}} | ||
{{# | }} | ||
{{!}} | |- | ||
{{#if:{{{focalworld(s)|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}} | |||
{ | {{{focalworld(s)-title|Focal world(s)}}}: | ||
{{! | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{ | {{{focalworld(s)}}} | ||
{{!}} style=" | }} | ||
|- | |||
{{!}} | {{#if:{{{goals|}}}| | ||
{{{ | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}} | ||
{{ | {{{goals-title|Goals}}}: | ||
{{#if:{{{ | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{!}} style=" | {{{goals}}} | ||
}} | |||
{{!}} style=" | |- | ||
{{{ | {{#if:{{{war|}}}| | ||
{{!}} | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}} | ||
{{{war-title|At war with}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{war}}} | |||
{{!}} style=" | }} | ||
{{{ | |- | ||
{{#if:{{{ally|}}}| | |||
{{#if:{{{ | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}} | ||
{{!}} style=" | {{{ally-title|Allied with}}}: | ||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{!}} style=" | {{{ally}}} | ||
{{{ | }} | ||
|- | |||
{{#if:{{{ | {{#if:{{{height|}}}| | ||
{{!}} style=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{height-title|Average height}}}: | |||
{{!}} style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{ | {{{height}}} | ||
}} | |||
{{#if:{{{ | |- | ||
{{!}} style=" | {{#if:{{{weight|}}}| | ||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{!}} | {{{weight-title|Average weight}}}: | ||
{{{ | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{!}} | {{{weight}}} | ||
}} | |||
|- | |||
{{#if:{{{distinctions|}}}| | |||
{{!}} style=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{ | {{{distinctions-title|Distinctions}}}: | ||
{{!}} | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{distinctions}}} | |||
}} | |||
|- | |||
{{!}} style=" | {{#if:{{{lifespan|}}}| | ||
{{{ | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{lifespan-title|Average lifespan}}}: | |||
| | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{lifespan}}} | |||
}} | |||
|- | |||
{{#if:{{{notable-group|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{notable-group-title|Notable groups}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{notable-group}}} | |||
}} | |||
|- | |||
{{#if:{{{notable-person|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{notable-person-title|Notable individuals}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{notable-person}}} | |||
}} | |||
|- | |||
{{#if:{{{othernames|}}}| | |||
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{othernames-title|Other names}}}: | |||
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | |||
{{{othernames}}} | |||
}} | |||
|- | |||
| class="infoboxfooter" colspan="2" | | |||
|}<noinclude>{{clear}} | |}<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><nowiki> | ||
{{Race infobox | {{Race infobox | ||
| | |name= | ||
|othernames= | |||
|image= | |image= | ||
|variant= | |variant= | ||
| | |homeworld= | ||
| | |focalworld(s)= | ||
| | |goals= | ||
| | |war= | ||
| | |ally= | ||
| | |height= | ||
| | |weight= | ||
| | |distinctions= | ||
| | |lifespan= | ||
|notable-group= | |||
|notable-person= | |||
}}</nowiki></pre> | }}</nowiki></pre> | ||
==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> | ||
|imageBG= | |imageBG= | ||
Line 105: | Line 134: | ||
</pre> | </pre> | ||
[[Category:Infobox templates | [[Category:Infobox templates]]</noinclude> | ||
</noinclude> |
Revision as of 13:10, December 4, 2023
Race infobox | |
---|---|
Overview | |
Usage instructions
Paste the following code into the top of an article, filling all known fields:
{{Race infobox |name= |othernames= |image= |variant= |homeworld= |focalworld(s)= |goals= |war= |ally= |height= |weight= |distinctions= |lifespan= |notable-group= |notable-person= }}
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=