Template:Infobox person: Difference between revisions

Jump to navigation Jump to search
Created page with "<includeonly> {| class="infobox vcard" style="float:right; clear:right; width:22em; font-size:90%; line-height:1.4em; border:1px solid #aaa; background:#f9f9f9; padding:0.2em; margin:0 0 1em 1em;" |- ! colspan="2" style="background:#b0c4de; text-align:center; font-size:110%;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} |- {{#if:{{{image|}}}| | colspan="2" style="text-align:center;" | [[File:{{{image}}}|200px]] }} {{#if:{{{caption|}}}| | colspan="2" style="text-align:ce..."
 
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
 
{| class="infobox vcard" style="float:right; clear:right; width:22em; font-size:90%; line-height:1.4em; border:1px solid #aaa; background:#f9f9f9; padding:0.2em; margin:0 0 1em 1em;"
 
|-
<!-- Template:Infobox biography vcard -->
! colspan="2" style="background:#b0c4de; text-align:center; font-size:110%;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{| class="infobox biography-infobox vcard" style="float:right; clear:right; margin:0 0 1em 1em; width:320px; font-size:95%; border:1px solid #aaa; background:#fff;"
|+ style="font-size:130%; font-weight:bold; padding:8px; text-align:center; background:#f8f8f8;" | {{{name|Person name}}}
|-
|-
{{#if:{{{image|}}}|
| colspan="2" style="text-align:center; padding:6px;" |
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|200px]]
{{#if:{{{image|}}}
| <div style="margin:4px 0;">[[File:{{{image}}}|250px]]</div>
{{#if:{{{caption|}}}
| <div style="font-size:90%; color:#555;">{{{caption}}}</div>
}}
}}
{{#if:{{{caption|}}}|
| colspan="2" style="text-align:center; font-size:85%;" | {{{caption}}}
}}
}}
|-
|-
! Born
! style="padding:6px 8px; background:#f2f2f2; width:40%;" | Born
| {{#if:{{{birth_date|}}}|{{{birth_date}}}|–}} {{#if:{{{birth_place|}}}|<br />{{{birth_place}}}|}}
| style="padding:6px 8px;" | {{{birth_date|}}}<br />{{{birth_place|}}}
|-{{#if:{{{death_date|}}}
! style="padding:6px 8px; background:#f2f2f2;" | Died
| style="padding:6px 8px;" | {{{death_date|}}}<br />{{{death_place|}}}
|-{{#if:{{{nationality|}}}
! style="padding:6px 8px; background:#f2f2f2;" | Nationality
| style="padding:6px 8px;" | {{{nationality|}}}
|-
|-
{{#if:{{{death_date|}}}|
! style="padding:6px 8px; background:#f2f2f2;" | Alma Mater
! Died
| style="padding:6px 8px;" | {{{alma_mater|}}}
| {{{death_date}}} {{#if:{{{death_place|}}}|<br />{{{death_place}}}|}}
|-
}}
! style="padding:6px 8px; background:#f2f2f2;" | Occupation
| style="padding:6px 8px;" | {{{occupation|}}}
|-
|-
{{#if:{{{nationality|}}}|
! style="padding:6px 8px; background:#f2f2f2;" | Organization
! Nationality
| style="padding:6px 8px;" | {{{organization|}}}
| {{{nationality}}}
}}
|-
|-
{{#if:{{{occupation|}}}|
! style="padding:6px 8px; background:#f2f2f2;" | Spouse
! Occupation
| style="padding:6px 8px;" | {{{spouse|}}}
| {{{occupation}}}
}}
|-
|-
{{#if:{{{known_for|}}}|
! style="padding:6px 8px; background:#f2f2f2;" | Children
! Known for
| style="padding:6px 8px;" | {{{children|}}}
| {{{known_for}}}
}}
|-
|-
{{#if:{{{notable_works|}}}|
! style="padding:6px 8px; background:#f2f2f2;" | Honors
! Notable works
| style="padding:6px 8px;" | {{{honors|}}}
| {{{notable_works}}}
}}
|-
|-
{{#if:{{{awards|}}}|
! style="padding:6px 8px; background:#f2f2f2;" | Awards
! Awards
| style="padding:6px 8px;" | {{{awards|}}}
| {{{awards}}}
}}
|}
|}
</includeonly>
 
<noinclude>
<noinclude>
This template creates a simple biography vCard infobox, floated to the right side of the page.
{{documentation}}
This is the '''Infobox biography vcard''' template
It is used to summarize key information about a person in a structured sidebar.


==Usage==
=== Usage ===
Copy and paste:
Copy and paste the following into an article, then fill in the fields:


<pre>
<pre>
{{Infobox biography vcard
{{Infobox biography vcard
| name         =  
| name         =  
| image       = Example.jpg
| image         =  
| caption     =  
| caption       =  
| birth_date   = {{Birth date|YYYY|MM|DD}}
| birth_date   =  
| birth_place =  
| birth_place   =  
| death_date  = {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}}
| death_date   =
| death_place  =  
| death_place   =  
| nationality =  
| nationality  =
| occupation  =  
| alma_mater    =
| known_for    =  
| occupation    =  
| notable_works=  
| organization =  
| awards       =  
| spouse        =  
| children      =  
| honors        =  
| awards       =  
}}
}}
</pre>
</pre>
=== Parameters ===
* <code>name</code> – Full name of the person
* <code>image</code> – Image filename without "File:"
* <code>caption</code> – Caption under the image
* <code>birth_date</code>, <code>birth_place</code> – Birth details
* <code>death_date</code>, <code>death_place</code> – Death details (if applicable)
* <code>nationality</code> – Nationality
* <code>alma_mater</code> – Educational institution(s)
* <code>occupation</code> – Main profession(s)
* <code>organization</code> – Affiliated organization(s)
* <code>spouse</code>, <code>children</code> – Family details
* <code>honors</code>, <code>awards</code> – Recognition received
[[Category:Infobox templates|Biography vcard]]
</noinclude>
</noinclude>