Template:Infobox person: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<table class="infobox" style="width:22em; font-size: 0.9em; line-height: 1.4em; text-align: left;">
<div style="border: 1px solid #a2a9b1; background-color: #f9f9f9; padding: 5px; float: right; clear: right; margin: 0 0 1em 1em; width: 22em; font-size: 90%;">
    <caption style="font-weight: bold; text-align: center;">{{{name|One}}}</caption>
 
    <tbody>
<!-- Title -->
        <tr>
<div style="background-color: #f8f9fa; text-align: center; font-weight: bold; font-size: 110%;">
            <td style="text-align: center;">
{{{name|Unnamed person}}}
                {{#if: {{{image|}}} | [[File:{{{image}}}|200px|center]] | <!-- No image provided --> }}
</div>
            </td>
 
        </tr>
<!-- Image -->
        <tr>
{{#if: {{{image|}}} |
            <th scope="row">Birth name</th>
<div style="text-align: center; margin: 5px 0;">
            <td>{{{birthname|One}}}</td>
[[File:{{{image}}}|250px|alt={{{alt|}}}|{{{caption|}}}]]
        </tr>
</div>}}
        <tr>
 
            <th scope="row">Birth date</th>
<!-- Caption -->
            <td>{{{birth_date|One}}}</td>
{{#if: {{{caption|}}} |
        </tr>
<div style="text-align: center; font-size: 90%;">{{{caption}}}</div>}}
        <tr>
 
            <th scope="row">Birth place</th>
<!-- Table for Information -->
            <td>{{{birth_place|One}}}</td>
<table style="width: 100%; border-spacing: 0; margin: 0;">
        </tr>
{{#if: {{{native_name|}}} | <tr><th style="text-align: left;">Native name</th><td>{{{native_name}}}</td></tr> }}
        <tr>
{{#if: {{{native_name_lang|}}} | <tr><th style="text-align: left;">Native language</th><td>{{{native_name_lang}}}</td></tr> }}
            <th scope="row">Death date</th>
{{#if: {{{birth_date|}}} | <tr><th style="text-align: left;">Born</th><td>{{{birth_date}}}</td></tr> }}
            <td>{{{death_date|One}}}</td>
{{#if: {{{birth_place|}}} | <tr><th style="text-align: left;">Birth place</th><td>{{{birth_place}}}</td></tr> }}
        </tr>
{{#if: {{{death_date|}}} | <tr><th style="text-align: left;">Died</th><td>{{{death_date}}}</td></tr> }}
        <tr>
{{#if: {{{death_place|}}} | <tr><th style="text-align: left;">Death place</th><td>{{{death_place}}}</td></tr> }}
            <th scope="row">Death place</th>
{{#if: {{{occupation|}}} | <tr><th style="text-align: left;">Occupation</th><td>{{{occupation}}}</td></tr> }}
            <td>{{{death_place|One}}}</td>
{{#if: {{{era|}}} | <tr><th style="text-align: left;">Era</th><td>{{{era}}}</td></tr> }}
        </tr>
{{#if: {{{title|}}} | <tr><th style="text-align: left;">Title</th><td>{{{title}}}</td></tr> }}
        <tr>
            <th scope="row">Alma mater</th>
            <td>{{{alma_mater|One}}}</td>
        </tr>
        <tr>
            <th scope="row">Occupation</th>
            <td>{{{occupation|One}}}</td>
        </tr>
        <tr>
            <th scope="row">Years active</th>
            <td>{{{years_active|One}}}</td>
        </tr>
        <tr>
            <th scope="row">Organization</th>
            <td>{{{organization|One}}}</td>
        </tr>
        <tr>
            <th scope="row">Known for</th>
            <td>{{{known_for|One}}}</td>
        </tr>
        <tr>
            <th scope="row">Notable works</th>
            <td>{{{notable_works|One}}}</td>
        </tr>
        <tr>
            <th scope="row">Spouse</th>
            <td>{{{spouse|One}}}</td>
        </tr>
    </tbody>
</table>
</table>
</div>
</includeonly>
<noinclude>
== Usage ==
This template displays a biography infobox for a person. It is designed for historical figures or modern individuals.
=== Example ===
<syntaxhighlight lang="mediawiki">
{{Infobox person
| name          = Hippocrates of Kos
| image          = Hippocrates rubens.jpg
| caption        = Engraving by [[Peter Paul Rubens]], 1638
| native_name    = Ἱπποκράτης
| native_name_lang = Greek
| birth_date    = c. 460 BC
| birth_place    = [[Kos]], [[Ancient Greece]]
| death_date    = c. 370 BC
| death_place    = [[Larissa]], Ancient Greece
| occupation    = [[Physician]]
| era            = [[Classical Greece]]
| title          = The Father of Western Medicine
}}
</syntaxhighlight>
=== Parameters ===
* `name` - Name of the person (required).
* `image` - Filename for the person's image (optional).
* `caption` - Caption for the image.
* `native_name` - Name in native language/script.
* `native_name_lang` - Native language.
* `birth_date` - Date or approximate date of birth.
* `birth_place` - Place of birth.
* `death_date` - Date or approximate date of death.
* `death_place` - Place of death.
* `occupation` - Profession or primary occupation.
* `era` - Historical era or period.
* `title` - Honorary or descriptive title.
== Notes ==
* Unused fields will not appear.
* Place this template at the top of biography articles for consistency.
</noinclude>

Revision as of 21:39, 18 December 2024

<tbody> </tbody>
One
Birth name One
Birth date One
Birth place One
Death date One
Death place One
Alma mater One
Occupation One
Years active One
Organization One
Known for One
Notable works One
Spouse One