Template:Infobox Person: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Stefan Sels
mNo edit summary
imported>Caesar Schinas
(Moving documentation to ./doc)
 
(13 intermediate revisions by 2 users not shown)
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>


== Usage ==
| 1_label    = Other names
<pre>
| 1_data      = {{{other_names|}}}
{{Infobox_Person | name =
 
| other_names =
| 2_data      = {{#if:{{{portrait|}}}|[[Image:{{{portrait}}}|{{{portrait_size|300x300px}}}]]}}
| image =
| 2_datastyle = text-align:center; padding:0.5em;
| caption =
 
| birth_date =
| 3_label      = Website
| birth_place =
| 3_data      = {{#if:{{{website|}}}|[http://{{{website}}} {{{website}}}]}}
| death_date =
 
| death_place =
| 4_label      = Born
| death_cause
| 4_data      = {{{birth_date|}}} {{#if:{{{birth_place|}}}|<br>{{{birth_place|}}}}}
| known =  
 
| occupation =  
| 5_label      = Died
| title =
| 5_data      = {{{death_date|}}} {{#if:{{{death_place|}}}|<br>{{{death_place|}}}}}
| salary =
 
| term =
| 6_label      = Occupation
| predecessor =  
| 6_data      = {{{occupation|}}}
| successor =  
 
| party =  
| 7_label      = Title
| boards =
| 7_data      = {{{title|}}}
| religion =  
 
| spouse =  
| 8_label      = Predecessor
| children =  
| 8_data      = {{{predecessor|}}}
| relations =
 
| website =  
| 9_label      = Successor
| footnotes =  
| 9_data      = {{{successor|}}}
}}
 
</pre>
| 10_label      = Salary
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
| 10_data      = {{{salary|}}}
[[Category:people infobox templates|Person]]
 
</noinclude>
| 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_label      = Field
| 15_data      = {{{field|}}}
 
| 16_label      = Known for
| 16_data      = {{{known_for|}}}
 
| 17_label      =  
| 17_data      = {{{footnotes|}}}
}}</includeonly><noinclude>{{TlDoc}}</noinclude>

Latest revision as of 10:23, 6 May 2009

This documentation is transcluded from Template:Infobox Person/doc (edit | history)

Usage

Coming soon... please see example below.

Example

Some Bloke
Other names S.B.
Test.jpg
Website bloke.net
Born 31st April 1902
Utopia
Died 31st June 2005
Aipotu
Occupation Scientist
Title Prof.
Predecessor A Bloke
Successor The Bloke
Salary Millions
Political party Often
Boards on Many
Religion Samarian
Notable relations Reginal Bloke
Discovered Joe Blogs is more popular than the average bloke.
{{Infobox Person
| name        = Some Bloke
| portrait    = test.jpg
| other_names = S.B.
| website     = bloke.net
| birth_date  = 31st April 1902
| birth_place = Utopia
| death_date  = 31st June 2005
| death_place = Aipotu
| occupation  = Scientist
| title       = Prof.
| salary      = Millions
| term        = 5th
| predecessor = A Bloke
| successor   = The Bloke
| party       = Often
| boards      = Many
| religion    = Samarian
| relations   = Reginal Bloke
| footnotes   = Discovered Joe Blogs is more popular than the average bloke.
}}