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" cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:6px; padding:2px; border-radius: 0 0 .7em .7em; -moz-border-radius: 0 0 .7em .7em; -webkit-border-radius: 0 0 .7em .7em; -ms-border-radius: 0 0 .7em .7em; -o-border-radius: 0 0 .7em .7em; color:{{{color|inherit}}}; background:{{{BG|{{#switch:{{{variant|}}}|Human=royalblue|Fallen=maroon|#default=lightslategray}}}}};"
{| 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}}}; text-align:center; font-size:120%; color:#FFFFFF;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
{{!}}-
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
! style="background:{{{imageBG|#F0F8FF}}}; text-align:center; border-bottom:1px solid {{{lineBG|maroon}}};" colspan="2" {{!}} {{{image|}}}
{{!}} 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="font-size:90%; color:{{{color2|#FFF}}}; text-align:center; background:{{{sectionBG|{{#switch:{{{variant|}}}|Human=cornflowerblue|Fallen=darkred|#default=slategray}}}}}" {{!}} {{{section1-title|Overview}}}}}
! 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:{{{Focal world(s)|}}}|
|-
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
{{#if:{{{homeworld|}}}|
'''{{{Focal world(s)-title|Focal world(s)}}}''':
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{homeworld-title|Homeworld}}}:
{{{Focal world(s)|}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}}-}}
{{{homeworld}}}
{{#if:{{{Goals|}}}|
}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
|-
'''{{{Goals-title|Goals}}}''':
{{#if:{{{focalworld(s)|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{Goals|}}}
{{{focalworld(s)-title|Focal world(s)}}}:
{{!}}-}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{#if:{{{War|}}}|
{{{focalworld(s)}}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
}}
'''{{{War-title|At war with}}}''':
|-
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{#if:{{{goals|}}}|
{{{War|}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{!}}-}}
{{{goals-title|Goals}}}:
{{#if:{{{Height|}}}|
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{goals}}}
'''{{{Height-title|Average height}}}''':
}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
|-
{{{Height|}}}
{{#if:{{{war|}}}|
{{!}}-}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{#if:{{{Weight|}}}|
{{{war-title|At war with}}}:
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{Weight-title|Average weight}}}''':
{{{war}}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
}}
{{{Weight|}}}
|-
{{!}}-}}
{{#if:{{{ally|}}}|
{{#if:{{{Distinctions|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{ally-title|Allied with}}}:
'''{{{Distinctions-title|Distinctions}}}''':
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{ally}}}
{{{Distinctions|}}}
}}
{{!}}-}}
|-
{{#if:{{{Lifespan|}}}|
{{#if:{{{height|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
'''{{{Lifespan-title|Average lifespan}}}''':
{{{height-title|Average height}}}:
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{Lifespan|}}}
{{{height}}}
{{!}}-}}
}}
{{#if:{{{Notable-group|}}}|
|-
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{#if:{{{weight|}}}|
'''{{{Notable-group-title|Notable groups}}}''':
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{weight-title|Average weight}}}:
{{{Notable-group|}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}}-}}
{{{weight}}}
{{#if:{{{Notable-person|}}}|
}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
|-
'''{{{Notable-person-title|Notable individuals}}}''':
{{#if:{{{distinctions|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{Notable-person|}}}
{{{distinctions-title|Distinctions}}}:
{{!}}-}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{#if:{{{Other names|}}}|
{{{distinctions}}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
}}
'''{{{Other names-title|Other nomenclature}}}''':
|-
{{!}} style="vertical-align:top; background:{{{fieldBG|#F2F3F4}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{#if:{{{lifespan|}}}|
{{{Other names|}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}}-}}
{{{lifespan-title|Average lifespan}}}:
| colspan=2 style="text-align:center; background:{{{BG|transparent}}}; padding:0px; font-size:10px; line-height:10px;" | 
{{!}} 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=
|name=
|othernames=
|image=
|image=
|variant=
|variant=
|Focal world(s)=
|homeworld=
|Goals=
|focalworld(s)=
|War=
|goals=
|Height=
|war=
|Weight=
|ally=
|Distinctions=
|height=
|Lifespan=
|weight=
|Notable-group=
|distinctions=
|Notable-person=
|lifespan=
|Other names=
|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|{{PAGENAME}}]]
[[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=