Template:Infobox person: Difference between revisions

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

Revision as of 08:50, 13 August 2007

{{{name}}}
[[Image:{{{image}}}|225px|]]
{{{caption}}}
Born{{{birth_name}}}
{{{birth_date}}}
{{{birth_place}}}
Died{{{death_date}}}
{{{death_place}}}
{{{death_cause}}}
Resting place{{{resting_place}}}
{{{resting_place_coordinates}}}
Residence{{{residence}}}
Nationality{{{nationality}}}
Other names{{{other_names}}}
Known for{{{known_for}}}
Education{{{education}}}
Employer{{{employer}}}
Occupation{{{occupation}}}
Title{{{title}}}
Salary{{{salary}}}
Net worth{{{networth}}}
Height{{{height}}}
Weight{{{weight}}}
Term{{{term}}}
Predecessor{{{predecessor}}}
Successor{{{successor}}}
Political party{{{party}}}
Boards on{{{boards}}}
Religious belief{{{religion}}}
Spouse{{{spouse}}}
Partner{{{partner}}}
Children{{{children}}}
Parents{{{parents}}}
Relatives{{{relatives}}}
Signature[[Image:{{{signature}}}|128px]]
Website{{{website}}}
{{{footnotes}}}

Template:Infobox person/doc