Template:Character infobox: Difference between revisions

From Destinypedia, the Destiny wiki

 
(Testing something out.)
Line 1: Line 1:
{| cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 5px 10px; 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|#default=lightslategray}}}}};"
{| cellspacing="0" cellpadding="0" border="0" style="float:right; clear:right; width:260px; margin:0 0 5px 10px; 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=#900|#default=lightslategray}}}}};"
{{!}}-
{{!}}-
! style="background:{{{nameBG|transparent}}}; text-align:center; font-size:120%; color:#FFFFFF;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! style="background:{{{nameBG|transparent}}}; text-align:center; font-size:120%; color:#FFFFFF;" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
Line 8: Line 8:
{{!}}-
{{!}}-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|{{#switch:{{{variant|}}}|Human=cornflowerblue|#default=slategray}}}}}" {{!}} {{{section1-title|Biographical information}}}}}
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|{{#switch:{{{variant|}}}|Human=cornflowerblue|Fallen=#900|#default=slategray}}}}}" {{!}} {{{section1-title|Biographical information}}}}}
{{!}}-
{{!}}-
{{#if:{{{fullname|}}}|
{{#if:{{{fullname|}}}|
Line 71: Line 71:
{{!}}-}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|{{#switch:{{{variant|}}}|Human=cornflowerblue|#default=slategray}}}}}" {{!}} {{{section2-title|Political and military information}}}}}
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|{{#switch:{{{variant|}}}|Human=cornflowerblue|Fallen=#900|#default=slategray}}}}}" {{!}} {{{section2-title|Political and military information}}}}}
{{!}}-
{{!}}-
{{#if:{{{affiliation|}}}|
{{#if:{{{affiliation|}}}|
Line 108: Line 108:
==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>
 
{{Character infobox|variant= <specify Human or not. No value makes infobox grey>
{{Character infobox|variant=Fallen
|image=
|image=
|homeworld=
|homeworld=
|birth=
|birth=
|death=
|death=test
|species=
|species=
|gender=
|gender=

Revision as of 13:19, December 13, 2013

Character infobox
Biographical information
Political and military information
 

Usage

Copy and paste the following into the article and fill in the fields.

  1. 900;"
Character infobox
class="infoboxsubheading" colspan="2" style="font-size:90%; color:#000; text-align:center; background:
  1. 900" | Biographical information

Died:

test

class="infoboxsubheading" colspan="2" style="font-size:90%; color:#000; text-align:center; background:
  1. 900" | Political and military information
 

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=

Display parameters

The following allows you to hide the section header

  • hidea (hides Bio section header)
  • hideb (hides Politic/Military section header)
|hidea=
|hideb=