Anonymous user
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>
<table class="infobox biography vcard" style="width:{{{box_width|22em}}}; font-size:90%; text-align: left;" cellspacing="2">
#if: {{{subject_name|}}} {{{name<includeonly>|</includeonly>}}}
| {{PAGENAME}}
}}{{
#if: {{{image_name|{{{image<includeonly>|</includeonly>}}}}}} |
<tr><td colspan="2" style="text-align: center;">[[Image:{{{image_name|{{{image}}}}}}|{{{imagesize|{{{image_size|225px}}}}}}|]]<br />{{{image_caption|{{{caption<includeonly>|</includeonly>}}}}}}
}}{{
#if: {{{birth_name<includeonly>|</includeonly>}}} {{{date_of_birth|{{{birth_date|}}}}}} {{{place_of_birth|{{{birth_place|}}}}}} |
<tr><th>Born<td>{{
#if: {{{birth_name<includeonly>|</includeonly>}}} |
{{{birth_name}}}<br />
}}{{
#if: {{{date_of_birth|{{{birth_date<includeonly>|</includeonly>}}}}}} | {{{date_of_birth|{{{birth_date}}}}}}<br />
}}{{{place_of_birth|{{{birth_place<includeonly>|</includeonly>}}}}}}
}}{{
#if: {{{date_of_death|{{{death_date<includeonly>|</includeonly>}}}}}} {{{place_of_death|{{{death_place|}}}}}} {{{death_cause|}}} |
<tr><th>Died<td>{{
#if: {{{date_of_death|{{{death_date<includeonly>|</includeonly>}}}}}} | {{{date_of_death|{{{death_date}}}}}}<br />
}}{{
#if: {{{place_of_death|{{{death_place<includeonly>|</includeonly>}}}}}} | {{{place_of_death|{{{death_place}}}}}}<br />
}}{{{death_cause<includeonly>|</includeonly>}}}
}}{{
#if: {{{resting_place<includeonly>|</includeonly>}}} |
<tr><th>Resting place<td><span class="label">{{{resting_place}}}</span>{{
<br />{{{resting_place_coordinates}}} }}
}}{{
#if: {{{residence<includeonly>|</includeonly>}}} |
<tr><th>Residence<td><span class="label">{{{residence}}}</span>
}}{{
#if: {{{nationality<includeonly>|</includeonly>}}} |
<tr><th>Nationality<td>{{{nationality}}}
}}{{
#if: {{{other_names<includeonly>|</includeonly>}}} |
<tr><th>Other names<td><span class="nickname">{{{other_names}}}</span>
}}{{
<tr><th>Known for<td>{{{known|{{{known_for}}}}}}
}}{{
#if: {{{education<includeonly>|</includeonly>}}} |
<tr><th>Education<td>{{{education}}}
}}{{
#if: {{{employer<includeonly>|</includeonly>}}} |
<tr><th>Employer<td>{{{employer}}}
}}{{
#if: {{{occupation<includeonly>|</includeonly>}}} |
<tr><th>Occupation<td>{{{occupation}}}
}}{{
<tr><th>Title<td>{{{title}}}
}}{{
#if: {{{salary<includeonly>|</includeonly>}}} |
<tr><th>Salary<td>{{{salary}}}
}}{{
<tr><th>Net worth<td>{{{networth}}}
}}{{
#if: {{{height<includeonly>|</includeonly>}}} |
}}{{
<tr><th>Weight<td>{{{weight}}}
}}{{
#if: {{{term<includeonly>|</includeonly>}}} |
}}{{
#if: {{{predecessor<includeonly>|</includeonly>}}} |
<tr><th>Predecessor<td>{{{predecessor}}}
}}{{
#if: {{{successor<includeonly>|</includeonly>}}} |
<tr><th>Successor<td>{{{successor}}}
}}{{
<tr><th>Political party<td>{{{party}}}
}}{{
#if: {{{boards<includeonly>|</includeonly>}}} |
<tr><th>Boards on<td>{{{boards}}}
}}{{
#if: {{{religion<includeonly>|</includeonly>}}} |
<tr><th>Religious belief<td>{{{religion}}}
}}{{
#if: {{{spouse<includeonly>|</includeonly>}}} |
<tr><th>Spouse<td>{{{spouse}}}
}}{{
<tr><th>Partner<td>{{{partner}}}
}}{{
#if: {{{children<includeonly>|</includeonly>}}} |
<tr><th>Children<td>{{{children}}}
}}{{
#if: {{{parents<includeonly>|</includeonly>}}} |
<tr><th>Parents<td>{{{parents}}}
}}{{
#if: {{{relations|}}} {{{relatives<includeonly>|</includeonly>}}} |
<tr><th>Relatives<td>{{{relations|{{{relatives}}}}}}
}}{{
<tr><th>Signature<td>[[Image:{{{signature}}}|128px]]
}}{{
#if: {{{website<includeonly>|</includeonly>}}} |
<tr><th>Website<td>{{{website}}}
}}{{
#if: {{{footnotes<includeonly>|</includeonly>}}} |
<tr><th colspan="2" style="font-size: smaller;">{{{footnotes}}}
}}</tr>
</table><noinclude>
{{{{BASEPAGENAME}}/doc}}
<!-- Add categories and interwikis to the /doc subpage, not here. -->
</noinclude>
|