Template:Infobox Person: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Stefan Sels
mNo edit summary
imported>Caesar Schinas
(Updated to take advantage of Template:Infobox, and cleaned up slightly)
Line 1: Line 1:
{| class="infobox" style="width: 20em; font-size: 90%; position:absolute; right:5px; border:1px solid gray; background-color:#E0E0E0; padding:4px; margin:0px;"
<includeonly>
|+ style="font-size:larger;" | '''{{{name}}}'''{{#if:{{{other_names|}}}|<br>{{{other_names|}}}}}
{{Template:Infobox
|-
| title       = {{{name|}}}
{{#if: {{{image|}}}|
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{image|}}}|225px| ]]<br>{{{caption|}}}}}
|- style="vertical-align: top;"
! Born
| {{{birth_date}}} {{#if:{{{birth_place|}}}|<br>{{{birth_place|}}}}}
|-
{{#if: {{{death_date|}}}|
! Died
{{!}} {{{death_date|}}} {{#if:{{{death_place|}}}|<br>{{{death_place}}}}}{{#if:{{{death_cause|}}}|<br>{{{death_cause|}}}}}}}
|-
{{#if: {{{known|}}}|
! Known for
{{!}} {{{known|}}}}}
|-
{{#if: {{{occupation|}}}|
! Occupation
{{!}} {{{occupation|}}}}}
|-
{{#if: {{{title|}}}|
! Title
{{!}} {{{title|}}}}}
|-
{{#if: {{{salary|}}}|
! Salary
{{!}} {{{salary|}}}}}
|-
{{#if: {{{term|}}}|
! Term
{{!}} {{{term|}}}}}
|-
{{#if: {{{predecessor|}}}|
! Predecessor
{{!}} {{{predecessor|}}}}}
|-
{{#if: {{{successor|}}}|
! Successor
{{!}} {{{successor|}}}}}
|-
{{#if: {{{party|}}}|
! Political&nbsp;party
{{!}} {{{party|}}}}}
|-
{{#if: {{{boards|}}}|
! Boards on
{{!}} {{{boards|}}}}}
|-
{{#if: {{{religion|}}}|
! Religion
{{!}} {{{religion|}}}}}
|-
{{#if: {{{spouse|}}}|
! Spouse
{{!}} {{{spouse|}}}}}
|-
{{#if: {{{children|}}}| 
! Children
{{!}} {{{children|}}}}}
|-
{{#if: {{{relations|}}}| 
! Notable relations
{{!}} {{{relations|}}}}}
|-
{{#if: {{{website|}}}|
{{!}} '''Website:''' {{{website|}}}}}
|- colspan="2"
{{#if: {{{footnotes|}}}|
{{!}} <small>{{{footnotes|}}}</small>}}
|}<noinclude>


| 1_label    = Other names
| 1_data      = {{#if:{{{website|}}}|[http://{{{website}}} {{{website}}}]}}
| 2_data      = {{#if:{{{portrait|}}}|[[Image:{{{portrait}}}|{{{portrait_size|300x300px}}}]]}}
| 2_datastyle = text-align:center; padding:0.5em;
| 3_label      = Website
| 3_data      = {{#if:{{{website|}}}|[http://{{{website}}} {{{website}}}]}}
| 4_label      = Born
| 4_data      = {{{birth_date|}}} {{#if:{{{birth_place|}}}|<br>{{{birth_place|}}}}}
| 5_label      = Died
| 5_data      = {{{death_date|}}} {{#if:{{{death_place|}}}|<br>{{{death_place|}}}}}
| 6_label      = Occupation
| 6_data      = {{{occupation|}}}
| 7_label      = Title
| 7_data      = {{{title|}}}
| 8_label      = Predecessor
| 8_data      = {{{predecessor|}}}
| 9_label      = Successor
| 9_data      = {{{successor|}}}
| 10_label      = Salary
| 10_data      = {{{salary|}}}
| 11_label      = Political&nbsp;party
| 11_data      = {{{party|}}}
| 12_label      = Boards on
| 12_data      = {{{boards|}}}
| 13_label      = Religion
| 13_data      = {{{religion|}}}
| 14_label      = Notable relations
| 14_data      = {{{relations|}}}
| 15_data      = {{{footnotes|}}}
}}</includeonly><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
{{Infobox_Person | name =
{{Infobox Person
| other_names =
| name       =  
| image =
| other_names =  
| caption =
| image       =  
| birth_date =
| website    =  
| birth_place =
| birth_date =  
| death_date =
| birth_place =  
| death_place =
| death_date =  
| death_cause
| death_place =  
| known =  
| occupation =  
| occupation =  
| title       =  
| title =
| salary     =  
| salary =
| term       =  
| term =
| predecessor =  
| predecessor =  
| successor =  
| successor   =  
| party =  
| party       =  
| boards =
| boards     =  
| religion =
| religion   =  
| spouse =
| relations   =  
| children =  
| footnotes   =  
| relations =
}}</pre>
| website =  
| footnotes =  
}}
</pre>
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:people infobox templates|Person]]
</noinclude>
</noinclude>

Revision as of 06:05, 24 April 2009

Usage

{{Infobox Person
| name        = 
| other_names = 
| image       = 
| website     = 
| birth_date  = 
| birth_place = 
| death_date  = 
| death_place = 
| occupation  = 
| title       = 
| salary      = 
| term        = 
| predecessor = 
| successor   = 
| party       = 
| boards      = 
| religion    = 
| relations   = 
| footnotes   = 
}}