Template:Person: Difference between revisions

From Koen Family Research Log
Jump to navigation Jump to search
Rewrite infobox using canonical wikitable + {{!}} pattern (via update-page on MediaWiki MCP Server)
Rewrite infobox using core MediaWiki only (no ParserFunctions dependency) (via update-page on MediaWiki MCP Server)
 
Line 2: Line 2:
|-
|-
! colspan="2" style="background:#e8e8e8; font-size:120%; padding:0.4em;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="background:#e8e8e8; font-size:120%; padding:0.4em;" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
|-
{{!}}-
! scope="row" style="width:40%; padding:0.3em; text-align:left;" | Born
{{!}} colspan="2" style="text-align:center; padding:0.4em;" {{!}} [[File:{{{image}}}{{!}}frameless{{!}}200px{{!}}alt={{{caption|}}}]]
| style="padding:0.3em;" | {{{birth_date|}}} {{{birth_place|}}}
}}
|-
{{#if:{{{birth_date|}}}{{{birth_place|}}}|
! scope="row" style="padding:0.3em; text-align:left;" | Died
{{!}}-
| style="padding:0.3em;" | {{{death_date|}}} {{{death_place|}}}
! scope="row" style="width:40%; padding:0.3em; text-align:left;" {{!}} Born
|-
{{!}} style="padding:0.3em;" {{!}} {{{birth_date|}}} {{{birth_place|}}}
! scope="row" style="padding:0.3em; text-align:left;" | Buried
}}
| style="padding:0.3em;" | {{{resting_place|}}}
{{#if:{{{death_date|}}}{{{death_place|}}}|
|-
{{!}}-
! scope="row" style="padding:0.3em; text-align:left;" | Spouse(s)
! scope="row" style="padding:0.3em; text-align:left;" {{!}} Died
| style="padding:0.3em;" | {{{spouse|}}}
{{!}} style="padding:0.3em;" {{!}} {{{death_date|}}} {{{death_place|}}}
|-
}}
! scope="row" style="padding:0.3em; text-align:left;" | Parents
{{#if:{{{resting_place|}}}|
| style="padding:0.3em;" | {{{parents|}}}
{{!}}-
|-
! scope="row" style="padding:0.3em; text-align:left;" {{!}} Buried
! scope="row" style="padding:0.3em; text-align:left;" | Children
{{!}} style="padding:0.3em;" {{!}} {{{resting_place}}}
| style="padding:0.3em;" | {{{children|}}}
}}
|-
{{#if:{{{spouse|}}}|
! scope="row" style="padding:0.3em; text-align:left;" | Occupation
{{!}}-
| style="padding:0.3em;" | {{{occupation|}}}
! scope="row" style="padding:0.3em; text-align:left;" {{!}} Spouse(s)
|-
{{!}} style="padding:0.3em;" {{!}} {{{spouse}}}
! scope="row" style="padding:0.3em; text-align:left;" | Known for
}}
| style="padding:0.3em;" | {{{known_for|}}}
{{#if:{{{parents|}}}|
{{!}}-
! scope="row" style="padding:0.3em; text-align:left;" {{!}} Parents
{{!}} style="padding:0.3em;" {{!}} {{{parents}}}
}}
{{#if:{{{children|}}}|
{{!}}-
! scope="row" style="padding:0.3em; text-align:left;" {{!}} Children
{{!}} style="padding:0.3em;" {{!}} {{{children}}}
}}
{{#if:{{{occupation|}}}|
{{!}}-
! scope="row" style="padding:0.3em; text-align:left;" {{!}} Occupation
{{!}} style="padding:0.3em;" {{!}} {{{occupation}}}
}}
{{#if:{{{known_for|}}}|
{{!}}-
! scope="row" style="padding:0.3em; text-align:left;" {{!}} Known for
{{!}} style="padding:0.3em;" {{!}} {{{known_for}}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
== Usage ==
== Usage ==
Line 53: Line 33:
{{Person
{{Person
| name        =
| name        =
| image      = Example.jpg
| caption    =
| birth_date  =
| birth_date  =
| birth_place =
| birth_place =
Line 68: Line 46:
</pre>
</pre>


All fields are optional and hidden when empty.
Leave any field empty to show a blank cell. Add a portrait separately on the page, e.g. <code><nowiki>[[File:portrait.jpg|thumb|Caption]]</nowiki></code>.


[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 06:53, 27 August 2026

Usage

Add to a person page (deceased individuals only):

{{Person
| name        =
| birth_date  =
| birth_place =
| death_date  =
| death_place =
| resting_place =
| spouse      =
| parents     =
| children    =
| occupation  =
| known_for   =
}}

Leave any field empty to show a blank cell. Add a portrait separately on the page, e.g. [[File:portrait.jpg|thumb|Caption]].