Template:Infobox Person: Difference between revisions

English person infobox, ported from תבנית:דמות / תבנית:אדמו"ר
 
Add optional spouse and children fields
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| cellpadding="2.5" cellspacing="0" style="width: 280px; float: right; clear: right; border: 1px solid #CBD3DD; margin: 0 0 1em 1em; background: #F9FAFB; font-size: 95%; text-align: left;"
{{#invoke:Infobox|infoboxTemplate
! colspan="2" style="font-size: larger; background-color: #b0ffb5; color: #000000; text-align: center;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
| bodyclass  = biography vcard
|-valign="top"
| above      = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{#if:{{{image|}}}|
| subheader  = {{{nickname|}}}
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|220px]]{{#if:{{{description|}}}|<br />{{{description}}}}}
| image      = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|250px]]}}
{{!}}-valign="top"
| caption    = {{{description|}}}
}}
| label1 = Born | data1 = {{#if:{{{birth_date|}}}|{{{birth_date}}}{{#if:{{{birth_place|}}}|<br />{{{birth_place}}}}}|{{{birth_place|}}}}}
{{#if:{{{nickname|}}}|
| label2 = Passed away | data2 = {{#if:{{{death_date|}}}|{{{death_date}}}{{#if:{{{death_place|}}}|<br />{{{death_place}}}}}|{{{death_place|}}}}}
{{!}} colspan="2" style="text-align:center;" {{!}} '''{{{nickname}}}'''
| label3 = Resting place | data3 = {{{burial_place|}}}
{{!}}-valign="top"
| label4 = Father | data4 = {{{father|}}}
}}
| label5 = Mother | data5 = {{{mother|}}}
{{#if:{{{birth_date|}}}|
| label6 = Spouse | data6 = {{{spouse|}}}
{{!}} '''Born'''
| label7 = Children | data7 = {{{children|}}}
{{!}} {{{birth_date}}}
| label8 = Place of activity | data8 = {{{activity_place|}}}
{{!}}-valign="top"
| label9 = Residence | data9 = {{{residence|}}}
}}
| label10 = Roles | data10 = {{{roles|}}}
{{#if:{{{birth_place|}}}|
| label11 = Predecessor | data11 = {{{predecessor|}}}
{{!}} '''Place of birth'''
| label12 = Successor | data12 = {{{successor|}}}
{{!}} {{{birth_place}}}
| label13 = Teachers | data13 = {{{teachers|}}}
{{!}}-valign="top"
| label14 = Students | data14 = {{{students|}}}
}}
| label15 = Works | data15 = {{{works|}}}
{{#if:{{{death_date|}}}|
| label16 = Affiliation | data16 = {{{affiliation|}}}
{{!}} '''Passed away'''
| data17 = {{{module|}}}
{{!}} {{{death_date}}}
| data18 = {{{module2|}}}
{{!}}-valign="top"
| data19 = {{{module3|}}}
}}
}}<noinclude>
{{#if:{{{death_place|}}}|
Infobox for people, in the style of Wikipedia's biography infoboxes. Ported from the Hebrew edition ({{tl|דמות}}, {{tl|אדמו"ר}}).
{{!}} '''Place of passing'''
{{!}} {{{death_place}}}
{{!}}-valign="top"
}}
{{#if:{{{burial_place|}}}|
{{!}} '''Resting place'''
{{!}} {{{burial_place}}}
{{!}}-valign="top"
}}
{{#if:{{{activity_place|}}}|
{{!}} '''Place of activity'''
{{!}} {{{activity_place}}}
{{!}}-valign="top"
}}
{{#if:{{{roles|}}}|
{{!}} '''Roles'''
{{!}} {{{roles}}}
{{!}}-valign="top"
}}
{{#if:{{{predecessor|}}}|
{{!}} '''Preceded by'''
{{!}} {{{predecessor}}}
{{!}}-valign="top"
}}
{{#if:{{{successor|}}}|
{{!}} '''Succeeded by'''
{{!}} {{{successor}}}
{{!}}-valign="top"
}}
{{#if:{{{teachers|}}}|
{{!}} '''Teachers'''
{{!}} {{{teachers}}}
{{!}}-valign="top"
}}
{{#if:{{{students|}}}|
{{!}} '''Students'''
{{!}} {{{students}}}
{{!}}-valign="top"
}}
{{#if:{{{works|}}}|
{{!}} '''Works'''
{{!}} {{{works}}}
{{!}}-valign="top"
}}
{{#if:{{{affiliation|}}}|
{{!}} '''Affiliation'''
{{!}} {{{affiliation}}}
{{!}}-valign="top"
}}
|}<noinclude>
Infobox for people. Ported from the Hebrew edition ({{tl|דמות}}, {{tl|אדמו"ר}}).
<pre>{{Infobox Person
<pre>{{Infobox Person
|name=
|name= |image= |description= |nickname=
|image=
|birth_date= |birth_place= |death_date= |death_place= |burial_place=
|description=
|activity_place= |residence= |father= |mother= |spouse= |children= |roles= |predecessor= |successor=
|nickname=
|teachers= |students= |works= |affiliation=
|birth_date=
|module= |module2= |module3=  (sections embedded from other boxes, e.g. {{Chabad Rebbes Box|embed=yes|…}})
|birth_place=
|death_date=
|death_place=
|burial_place=
|activity_place=
|roles=
|predecessor=
|successor=
|teachers=
|students=
|works=
|affiliation=
}}</pre>
}}</pre>
[[Category:Templates]]
[[Category:Templates]]
[[he:תבנית:דמות]]
[[he:תבנית:דמות]]
</noinclude>
</noinclude>