Difference between revisions of "Template:Infobox Biography"

From Pensapedia, the Pensacola encyclopedia
Jump to navigation Jump to search
m
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><table class="infobox" style="width: 21em; font-size:90%; text-align: left; align: right;" cellspacing="2">
+
<includeonly>
<tr><th colspan="2" style="text-align: center;"><big>{{{subject_name|{{PAGENAME}}}}}</big></th></tr>
+
{| class="infobox" style="width: 21em; font-size:90%; text-align: left; align: right;" cellspacing="2"
{{#if:{{{image_name|}}}|<tr><td colspan="2" align="center">[[Image:{{{image_name}}}|{{{image_size|180x180px}}}|center]] {{#if:{{{image_caption|}}}|<div style="line-height:1.25em;">{{{image_caption}}}</div>|}}|}}
+
|-
<tr valign="top"><th align="right">Born</th> <td>{{{date_of_birth}}}{{#if:{{{place_of_birth|}}}
+
! colspan="2" style="text-align: center;" {{!}}<big>{{{subject_name|{{PAGENAME}}}}}</big>
| <br/>{{{place_of_birth}}}
+
|-
}}</td></tr>
+
{{#if:{{{image_name|}}}|
{{#if:{{{date_of_death|}}}
+
{{!}} colspan="2" align="center" {{!}} [[Image:{{{image_name}}}|{{{image_size|180x180px}}}|center]] {{#if:{{{image_caption|}}}|<div style="line-height:1.25em;">{{{image_caption}}}</div>|}}|}}
|<tr valign="top"><th style="text-align:right;">Died</th> <td>{{{date_of_death}}}{{#if:{{{place_of_death|}}}
+
|-
  | <br/>{{{place_of_death}}}
+
{{#if:{{{date_of_birth|}}}|
  }}</td></tr>
+
{{!}} valign="top" align="right" {{!}} '''Born'''
}}{{#if:{{{occupation|}}}
+
{{!}} {{{date_of_birth}}}{{#if:{{{place_of_birth|}}}|<br/>{{{place_of_birth}}}
|<tr valign="top"><th style="text-align:right;">Occupation</th> <td>{{{occupation}}}</td></tr>
+
}}}}
}}{{#if:{{{religion|}}}
+
|-
|<tr valign="top"><th style="text-align:right;">Religion</th> <td>{{{religion}}}</td></tr>
+
{{#if:{{{date_of_death|}}}|
}}{{#if:{{{spouse|}}}
+
{{!}} valign="top" style="text-align:right;" {{!}} '''Died'''
|<tr valign="top"><th style="text-align:right;">Spouse</th> <td>{{{spouse}}}</td></tr>
+
{{!}}{{{date_of_death}}}{{#if:{{{place_of_death|}}}|<br/>{{{place_of_death}}}
}}{{#if:{{{parents|}}}
+
}}}}
|<tr valign="top"><th style="text-align:right;">Parents</th> <td>{{{parents}}}</td></tr>
+
|-
}}{{#if:{{{children|}}}
+
{{#if:{{{occupation|}}}|
|<tr valign="top"><th style="text-align:right;">Children</th> <td>{{{children}}}</td></tr>
+
{{!}} valign="top" style="text-align:right;" {{!}} '''Occupation'''
}}</table></includeonly><noinclude>
+
{{!}}{{{occupation}}}
 +
}}
 +
|-
 +
{{#if:{{{religion|}}}|
 +
{{!}} valign="top" style="text-align:right;" {{!}} '''Religion'''
 +
{{!}}{{{religion}}}
 +
}}
 +
|-
 +
{{#if:{{{spouse|}}}|
 +
{{!}} valign="top" style="text-align:right;" {{!}} '''Spouse'''
 +
{{!}} {{{spouse}}}
 +
}}
 +
|-
 +
{{#if:{{{parents|}}}|
 +
{{!}} valign="top" style="text-align:right;" {{!}} '''Parents'''
 +
{{!}}{{{parents}}}
 +
}}
 +
|-
 +
{{#if:{{{children|}}}|
 +
{{!}} valign="top" style="text-align:right;" {{!}} '''Children'''
 +
{{!}}{{{children}}}
 +
}}
 +
|-
 +
{{#if:{{{signature|}}}|
 +
{{!}} colspan="2" align="center" {{!}} [[Image:{{{signature}}}|{{{signaturesize |200px}}}|center]]|}}
 +
|}
 +
</includeonly><noinclude>
  
 
{{{{FULLPAGENAME}}/doc}}
 
{{{{FULLPAGENAME}}/doc}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 12:25, 26 August 2008


An Infobox Biography may be used to summarize information about a person.

Usage

This infobox may be added by pasting the template as shown below into an article.

{{Infobox Biography
| subject_name   =
| image_name     =
| image_size     =
| image_caption  =
| date_of_birth  =
| place_of_birth =
| date_of_death  =
| place_of_death =
| occupation     =
| religion       =
| spouse         =
| parents        =
| children       =
| signature      =
| signaturesize  =
}}

Parameters

Parameter Explanation
subject_name Insert name of person.
image_name Insert *.jpg image.
image_size Insert image width (defaults to 180x180px if empty).
image_caption Insert photograph caption. Try to include date of photo and the photographer.
date_of_birth Insert date of birth: month, day, year.
place_of_birth Insert place of birth: town, city, country.
date_of_death Insert date of death: month, day, year.
place_of_death Insert place of death: town, city, country.
occupation Insert the person's occupation.
spouse Insert the names of the person's spouses, followed by the years of marriage. Use the format: Name (Year[hyphen]Year) [or] (Year-present). Separate entries with a line break (<br />).
parents Insert the names of the person's parents. Separate entries with a line break (<br />).
children Insert the names of the person's children. Separate entries with a line break (<br />).
signature Image file of person's signature (preferably PNG transparent background). Primarily used for historical figures.
signaturesize Insert image width (defaults to 200px if empty).