Template:Infobox person: Difference between revisions

convert to html (fixes problem with multi-line parameters), allow image_size parameter to work if blank, make template page show all parameter names.
(apply label class to residence, also)
(convert to html (fixes problem with multi-line parameters), allow image_size parameter to work if blank, make template page show all parameter names.)
Line 1:
<noinclude>{{#ifeq:{{SUBPAGENAME}}|sandbox|{{Template sandbox notice}}}}</noinclude>
<includeonly>{| class="infobox biography vcard" style="width:{{{box_width|22em}}}; font-size:90%; text-align: left;" cellspacing="2"
<table class="infobox biography vcard" style="width:{{{box_width|22em}}}; font-size:90%; text-align: left;" cellspacing="2">
|-
!<tr><th colspan="2" style="text-align:center; font-size:larger;" class="fn" | {{{subject_name|{{{name|>{{PAGENAME}}}}}}}}
#if: {{{subject_name|}}} {{{name<includeonly>|</includeonly>}}}
|-
{{#if:| {{{image_namesubject_name|{{{image|name}}}}}} |
| {{PAGENAME}}
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{image_name|{{{image}}}}}}|{{{image_size|{{{imagesize|255px}}}}}}]]<br />{{{image_caption|{{{caption|}}}}}} }}
}}{{
|-
#if: {{{image_name|{{{image<includeonly>|</includeonly>}}}}}} |
{{#if: {{{birth_name|}}} {{{date_of_birth|{{{birth_date|}}}}}} {{{place_of_birth|{{{birth_place|}}}}}} |
<tr><td colspan="2" style="text-align: center;">[[Image:{{{image_name|{{{image}}}}}}|{{{imagesize|{{{image_size|225px}}}}}}|]]<br />{{{image_caption|{{{caption<includeonly>|</includeonly>}}}}}}
! Born
}}{{
{{!}} {{#if: {{{birth_name|}}} | {{{birth_name}}}<br /> }} {{#if: {{{date_of_birth|{{{birth_date|}}}}}} | {{{date_of_birth|{{{birth_date}}}}}}<br /> }} {{{place_of_birth|{{{birth_place|}}}}}} }}
#if: {{{birth_name<includeonly>|</includeonly>}}} {{{date_of_birth|{{{birth_date|}}}}}} {{{place_of_birth|{{{birth_place|}}}}}} |
|-
<tr><th>Born<td>{{
{{#if: {{{date_of_death|{{{death_date|}}}}}} {{{place_of_death|{{{death_place|}}}}}} {{{death_cause|}}} |
#if: {{{birth_name<includeonly>|</includeonly>}}} |
! Died
{{{birth_name}}}<br />
{{!}} {{#if: {{{date_of_death|{{{death_date|}}}}}} | {{{date_of_death|{{{death_date|}}}}}}<br /> }} {{#if: {{{place_of_death|{{{death_place|}}}}}} | {{{place_of_death|{{{death_place|}}}}}}<br /> }} {{{death_cause|}}} }}
}}{{
|-
#if: {{{date_of_birth|{{{birth_date<includeonly>|</includeonly>}}}}}} | {{{date_of_birth|{{{birth_date}}}}}}<br />
{{#if: {{{resting_place|}}} |
}}{{{place_of_birth|{{{birth_place<includeonly>|</includeonly>}}}}}}
! Resting&nbsp;place
}}{{
{{!}} <span class="label">{{{resting_place}}}</span> {{#if: {{{resting_place_coordinates|}}} | <br />{{{resting_place_coordinates}}} }} }}
#if: {{{date_of_death|{{{death_date<includeonly>|</includeonly>}}}}}} {{{place_of_death|{{{death_place|}}}}}} {{{death_cause|}}} |
|-
<tr><th>Died<td>{{
{{#if: {{{residence|}}} |
#if: {{{date_of_death|{{{death_date<includeonly>|</includeonly>}}}}}} | {{{date_of_death|{{{death_date}}}}}}<br />
! Residence
}}{{
{{!}} <span class="label">{{{residence}}}<\span> }}
#if: {{{place_of_death|{{{death_place<includeonly>|</includeonly>}}}}}} | {{{place_of_death|{{{death_place}}}}}}<br />
|-
}}{{{death_cause<includeonly>|</includeonly>}}}
{{#if: {{{nationality|}}} |
}}{{
! Nationality
#if: {{{resting_place<includeonly>|</includeonly>}}} |
{{!}} {{{nationality}}} }}
<tr><th>Resting place<td><span class="label">{{{resting_place}}}</span>{{
|-
{{#if: {{{other_namesresting_place_coordinates<includeonly>|</includeonly>}}} |
<br />{{{resting_place_coordinates}}} }}
! Other&nbsp;names
}}{{
{{!}} <span class="nickname">{{{other_names}}}</span> }}
#if: {{{residence<includeonly>|</includeonly>}}} |
|-
<tr><th>Residence<td><span class="label">{{{residence}}}</span>
{{#if: {{{known_for|{{{known|}}}}}} |
}}{{
! Known&nbsp;for
#if: {{{nationality<includeonly>|</includeonly>}}} |
{{!}} {{{known_for|{{{known}}}}}} }}
<tr><th>Nationality<td>{{{nationality}}}
|-
}}{{
{{#if: {{{education|}}} |
#if: {{{other_names<includeonly>|</includeonly>}}} |
! Education
<tr><th>Other&nbsp;names<td><span class="nickname">{{{other_names}}}</span>
{{!}} {{{education}}} }}
}}{{
|-
{{#if: {{{employerknown|{{{known_for<includeonly>|</includeonly>}}}}}} |
<tr><th>Known&nbsp;for<td>{{{known|{{{known_for}}}}}}
! Employer
}}{{
{{!}} {{{employer}}} }}
#if: {{{education<includeonly>|</includeonly>}}} |
|-
<tr><th>Education<td>{{{education}}}
{{#if: {{{occupation|}}} |
}}{{
! Occupation
#if: {{{employer<includeonly>|</includeonly>}}} |
{{!}} {{{occupation}}} }}
<tr><th>Employer<td>{{{employer}}}
|-
}}{{
{{#if: {{{title|}}} |
#if: {{{occupation<includeonly>|</includeonly>}}} |
! Title
<tr><th>Occupation<td>{{{occupation}}}
{{!}} {{{title}}} }}
}}{{
|-
{{#if: {{{salarytitle<includeonly>|</includeonly>}}} |
<tr><th>Title<td>{{{title}}}
! Salary
}}{{
{{!}} {{{salary}}} }}
#if: {{{salary<includeonly>|</includeonly>}}} |
|-
<tr><th>Salary<td>{{{salary}}}
{{#if: {{{networth|}}} |
}}{{
! Net&nbsp;worth
{{!}}#if: {{{networth<includeonly>|</includeonly>}}} }}|
<tr><th>Net&nbsp;worth<td>{{{networth}}}
|-
}}{{
{{#if: {{{height|}}} |
#if: {{{height<includeonly>|</includeonly>}}} |
! Height
{{!}} <tr><th>Height<td>{{{height}}} }}
}}{{
|-
{{#if: {{{weight<includeonly>|</includeonly>}}} |
<tr><th>Weight<td>{{{weight}}}
! Weight
}}{{
{{!}} {{{weight}}} }}
#if: {{{term<includeonly>|</includeonly>}}} |
|-
{{#if: <tr><th>Term<td>{{{term|}}} |
}}{{
! Term
#if: {{{predecessor<includeonly>|</includeonly>}}} |
{{!}} {{{term}}} }}
<tr><th>Predecessor<td>{{{predecessor}}}
|-
}}{{
{{#if: {{{predecessor|}}} |
#if: {{{successor<includeonly>|</includeonly>}}} |
! Predecessor
<tr><th>Successor<td>{{{successor}}}
{{!}} {{{predecessor}}} }}
}}{{
|-
{{#if: {{{successorparty<includeonly>|</includeonly>}}} |
<tr><th>Political&nbsp;party<td>{{{party}}}
! Successor
}}{{
{{!}} {{{successor}}} }}
#if: {{{boards<includeonly>|</includeonly>}}} |
|-
<tr><th>Boards on<td>{{{boards}}}
{{#if: {{{party|}}} |
}}{{
! Political&nbsp;party
#if: {{{religion<includeonly>|</includeonly>}}} |
{{!}} {{{party}}} }}
<tr><th>Religious&nbsp;belief<td>{{{religion}}}
|-
}}{{
{{#if: {{{boards|}}} |
#if: {{{spouse<includeonly>|</includeonly>}}} |
! Boards on
<tr><th>Spouse<td>{{{spouse}}}
{{!}} {{{boards}}} }}
}}{{
|-
{{#if: {{{religionpartner<includeonly>|</includeonly>}}} |
<tr><th>Partner<td>{{{partner}}}
! Religious&nbsp;belief
}}{{
{{!}} {{{religion}}} }}
#if: {{{children<includeonly>|</includeonly>}}} |
|-
<tr><th>Children<td>{{{children}}}
{{#if: {{{spouse|}}} |
}}{{
! Spouse
#if: {{{parents<includeonly>|</includeonly>}}} |
{{!}} {{{spouse}}} }}
<tr><th>Parents<td>{{{parents}}}
|-
}}{{
{{#if: {{{partner|}}} |
#if: {{{relations|}}} {{{relatives<includeonly>|</includeonly>}}} |
! Partner
<tr><th>Relatives<td>{{{relations|{{{relatives}}}}}}
{{!}} {{{partner}}} }}
}}{{
|-
{{#if: {{{childrensignature<includeonly>|</includeonly>}}} |
<tr><th>Signature<td>[[Image:{{{signature}}}|128px]]
! Children
}}{{
{{!}} {{{children}}} }}
#if: {{{website<includeonly>|</includeonly>}}} |
|-
<tr><th>Website<td>{{{website}}}
{{#if: {{{parents|}}} |
}}{{
! Parents
#if: {{{footnotes<includeonly>|</includeonly>}}} |
{{!}} {{{parents}}} }}
<tr><th colspan="2" style="font-size: smaller;">{{{footnotes}}}
|-
}}</tr>
{{#if: {{{relatives|{{{relations|}}}}}} |
</table><noinclude>
! Relatives
{{{{BASEPAGENAME}}/doc}}
{{!}} {{{relatives|{{{relations}}}}}} }}
|-
{{#if: {{{signature|}}} |
! Signature
{{!}} [[Image:{{{signature}}}|128px]] }}
|-
{{#if: {{{website|}}} |
! Website
{{!}} {{{website}}} }}
|-
{{#if: {{{footnotes|}}} |
{{!}} colspan="2" style="font-size: smaller;" {{!}} {{{footnotes}}} }}
|}</includeonly><noinclude>
 
{{{{FULLPAGENAME}}/doc}}
<!-- Add categories and interwikis to the /doc subpage, not here. -->
</noinclude>
Anonymous user