Template:Character infobox: Difference between revisions
From Destinypedia, the Destiny wiki
m (Text replacement - "]] </noinclude>" to "]]</noinclude>") |
No edit summary Tag: Mobile edit |
||
(65 intermediate revisions by 4 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=teal|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|}}}| | ||
! class=" | {{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}; 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=teal|Cabal=orange|Hive=olive|Vex=brown|Taken=black|#default=slategray}}}}}" {{!}} {{{section1-title|Biographical information}}} | ||
}} | |||
|- | |||
{{#if:{{{othernames|}}}| | {{#if:{{{othernames|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{othernames-title|Other name(s)}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{othernames | {{{othernames}}} | ||
}} | |||
|- | |||
{{#if:{{{fullname|}}}| | {{#if:{{{fullname|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}} | ||
{{{fullname-title|Full name}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{fullname | {{{fullname}}} | ||
}} | |||
|- | |||
{{#if:{{{homeworld|}}}| | {{#if:{{{homeworld|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{homeworld-title|Homeworld}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{homeworld | {{{homeworld}}} | ||
}} | |||
|- | |||
{{#if:{{{birth|}}}| | {{#if:{{{birth|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{birth-title|Born}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{birth | {{{birth}}} | ||
}} | |||
|- | |||
{{#if:{{{death|}}}| | {{#if:{{{death|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{death-title|Died}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{death | {{{death}}} | ||
}} | |||
|- | |||
{{#if:{{{species|}}}| | {{#if:{{{species|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{species-title|Species}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{species | {{{species}}} | ||
}} | |||
|- | |||
{{#if:{{{gender|}}}| | {{#if:{{{gender|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{gender-title|Gender}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{gender | {{{gender}}} | ||
}} | |||
|- | |||
{{#if:{{{height|}}}| | {{#if:{{{height|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{height-title|Height}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{height | {{{height}}} | ||
}} | |||
|- | |||
{{#if:{{{mass|}}}| | {{#if:{{{mass|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{mass-title|Weight}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{mass | {{{mass}}} | ||
}} | |||
|- | |||
{{#if:{{{hair|}}}| | {{#if:{{{hair|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{hair-title|Hair color}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{hair | {{{hair}}} | ||
}} | |||
|- | |||
{{#if:{{{eyes|}}}| | {{#if:{{{eyes|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{eyes-title|Eye color}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{eyes | {{{eyes}}} | ||
}} | |||
{{#if:{{{hideb|}}}| | |- | ||
! class="infoboxsubheading" colspan="2" style=" | {{#if:{{{hideb|}}}|| | ||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#fff}}}; background:{{{sectionBG|{{#switch:{{{variant|}}}|Human=royalblue|Exo=darkgrey|Awoken=purple|Fallen=teal|Cabal=orange|Hive=olive|Vex=crimson|Taken=black|#default=slategray}}}}}" {{!}} {{{section2-title|Political and military information}}} | |||
}} | |||
|- | |||
{{#if:{{{affiliation|}}}| | {{#if:{{{affiliation|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{affiliation-title|Affiliation}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{affiliation | {{{affiliation}}} | ||
}} | |||
|- | |||
{{#if:{{{rank|}}}| | {{#if:{{{rank|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{rank-title|Rank}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{rank | {{{rank}}} | ||
}} | |||
|- | |||
{{#if:{{{class|}}}| | {{#if:{{{class|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{class-title|Class}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{class | {{{class}}} | ||
}} | |||
|- | |||
{{#if:{{{sn|}}}| | {{#if:{{{sn|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{sn-title|Service number}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{sn | {{{sn}}} | ||
}} | |||
|- | |||
{{#if:{{{notable|}}}| | {{#if:{{{notable|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{notable-title|Notable info}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{notable | {{{notable}}} | ||
}} | |||
|- | |||
{{#if:{{{misc|}}}| | {{#if:{{{misc|}}}| | ||
{{!}} class=" | {{!}} class="infoboxlabel" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{misc-title|Miscellaneous}}}: | |||
{{!}} class="infoboxcell" style=" | {{!}} class="infoboxcell" style="background:{{{fieldBG|#f0f0f0}}}; border-color:{{{lineBG|#999}}}" {{!}} | ||
{{{misc | {{{misc}}} | ||
}} | |||
| colspan=2 | |- | ||
| class="infoboxfooter" colspan="2" | | |||
|}<noinclude>{{clear}} | |}<noinclude>{{clear}} | ||
==Usage== | ==Usage== | ||
Copy and paste the following into the article and fill in the fields. | Copy and paste the following into the article and fill in the fields. | ||
<pre> | <pre> | ||
{{Character infobox | {{Character infobox | ||
Line 143: | Line 162: | ||
==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 162: | Line 182: | ||
</pre> | </pre> | ||
[[Category:Infobox templates | [[Category:Infobox templates]]</noinclude> |
Latest revision as of 17:38, December 3, 2023
Character infobox | |
---|---|
Biographical information | |
Political and military information | |
Usage
Copy and paste the following into the article and fill in the fields.
{{Character infobox |variant= <Specify Human, Exo, Awoken, Fallen, Cabal, Hive, Vex, or Taken. No value renders infobox grey.> |othernames= |image= |homeworld= |birth= |death= |species= |gender= |height= |mass= |hair= |eyes= |affiliation= |rank= |class= |sn= |notable= }}
Custom parameters
The following allows you to alter the title of the sub-sections:
|imageBG= |nameBG= |sectionBG= |fieldBG= |section1-title= |section2-title=
Display parameters
The following allows you to hide the section header
- hidea (hides Bio section header)
- hideb (hides Politic/Military section header)
|hidea= |hideb=