Template:Infobox person: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
<includeonly>
<!-- Template:Infobox biography vcard -->
{| 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;"
{| class="infobox biography-infobox" 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 ==}}}
! colspan="2" style="background:#b0c4de; text-align:center; font-size:110%;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
|-
| colspan="2" style="text-align:center; padding:6px;" |
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|200px]]
<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
| {{#if:{{{birth_date|}}}|{{{birth_date}}}|–}} {{#if:{{{birth_place|}}}|<br />{{{birth_place}}}|}}
|-
{{#if:{{{death_date|}}}|
! Died
| {{{death_date}}} {{#if:{{{death_place|}}}|<br />{{{death_place}}}|}}
}}
|-
{{#if:{{{nationality|}}}|
! Nationality
| {{{nationality}}}
}}
|-
{{#if:{{{occupation|}}}|
! Occupation
| {{{occupation}}}
}}
|-
{{#if:{{{known_for|}}}|
! Known for
| {{{known_for}}}
}}
|-
{{#if:{{{notable_works|}}}|
! Notable works
| {{{notable_works}}}
}}
|-
{{#if:{{{awards|}}}|
! Awards
| {{{awards}}}
}}
}}
|}
</includeonly>
<noinclude>
This template creates a simple biography vCard infobox, floated to the right side of the page.
<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%;" | {{{name|{{PAGENAME}}}}}
|-
| colspan="2" style="text-align:center;" | [[File:{{{image|Example.jpg}}}|200px]]
|-
| colspan="2" style="text-align:center; font-size:85%;" | {{{caption|}}}
|-
|-
! Born
! style="padding:6px 8px; background:#f2f2f2; width:40%;" | Born
| {{{birth_date|}}}<br />{{{birth_place|}}}
| style="padding:6px 8px;" | {{{birth_date|}}}<br />{{{birth_place|}}}
|-
|-
! Died
! style="padding:6px 8px; background:#f2f2f2;" | Died
| {{{death_date|}}}<br />{{{death_place|}}}
| style="padding:6px 8px;" | {{{death_date|}}}<br />{{{death_place|}}}
|-
|-
! Nationality
! style="padding:6px 8px; background:#f2f2f2;" | Nationality
| {{{nationality|}}}
| style="padding:6px 8px;" | {{{nationality|}}}
|-
|-
! Occupation
! style="padding:6px 8px; background:#f2f2f2;" | Occupation
| {{{occupation|}}}
| style="padding:6px 8px;" | {{{occupation|}}}
|-
|-
! Known for
! style="padding:6px 8px; background:#f2f2f2;" | Known for
| {{{known_for|}}}
| style="padding:6px 8px;" | {{{known_for|}}}
|-
|-
! Notable works
! style="padding:6px 8px; background:#f2f2f2;" | Notable works
| {{{notable_works|}}}
| style="padding:6px 8px;" | {{{notable_works|}}}
|-
|-
! Awards
! style="padding:6px 8px; background:#f2f2f2;" | Awards
| {{{awards|}}}
| style="padding:6px 8px;" | {{{awards|}}}
|}
|}
</includeonly>
<noinclude>
<noinclude>
This is a simple biography vCard infobox template.
==Usage==
==Usage==
<pre>
<pre>
Line 87: Line 36:
| name        = John Doe
| name        = John Doe
| image        = Example.jpg
| image        = Example.jpg
| caption      = Sample caption
| caption      = Example caption
| birth_date  = 1 January 1990
| birth_date  = 1 January 1990
| birth_place  = New York, USA
| birth_place  = New York, USA
| death_date  =  
| death_date  = 5 May 2077
| death_place  =  
| death_place  = Los Angeles, USA
| nationality  = American
| nationality  = American
| occupation  = Software Engineer
| occupation  = Software Engineer