Template:Infobox person: Difference between revisions
Name defaults to pagename if omitted. Birth_date now optional. Add networth, the only parameter from Infobox Celebrity that isn't already here. Show infobox on this page with all parameters displayed. |
allow birthplace & deathplace/deathcause to display properly if birthdate or deathdate parameters are omitted (trailing <br/> doesn't display if no text after it, but leading <br/> does display) |
||
| Line 9: | Line 9: | ||
{{#if: {{{birth_name<includeonly>|</includeonly>}}} {{{birth_date|}}} {{{birth_place|}}} | | {{#if: {{{birth_name<includeonly>|</includeonly>}}} {{{birth_date|}}} {{{birth_place|}}} | | ||
! Born | ! Born | ||
{{!}} {{#if:{{{birth_name<includeonly>|</includeonly>}}}|{{{birth_name}}}<br/>}} {{{birth_date<includeonly>|</includeonly>}}} {{ | {{!}} {{#if:{{{birth_name<includeonly>|</includeonly>}}}|{{{birth_name}}}<br/>}} {{#if:{{{birth_date<includeonly>|</includeonly>}}}|{{{birth_date}}}<br/>}} {{{birth_place<includeonly>|</includeonly>}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{death_date<includeonly>|</includeonly>}}} {{{death_place|}}} {{{death_cause|}}} | | {{#if: {{{death_date<includeonly>|</includeonly>}}} {{{death_place|}}} {{{death_cause|}}} | | ||
! Died | ! Died | ||
{{!}} {{{death_date<includeonly>|</includeonly>}}} {{#if:{{{death_place<includeonly>|</includeonly>}}}| | {{!}} {{#if:{{{death_date<includeonly>|</includeonly>}}}|{{{death_date}}}<br/>}} {{#if:{{{death_place<includeonly>|</includeonly>}}}|{{{death_place}}}<br/>}} {{{death_cause<includeonly>|</includeonly>}}} | ||
}} | }} | ||
|- | |- | ||