Template:Infobox scientist: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
 
Line 21: Line 21:
<!-- Personal Information -->
<!-- Personal Information -->
<table style="width: 100%; border-spacing: 0; margin: 0; padding: 0; text-align: left;">
<table style="width: 100%; border-spacing: 0; margin: 0; padding: 0; text-align: left;">
{{#if: {{{birth_name|}}} | <tr><th style="padding: 5px; text-align: left;">birth name</th><td style="padding: 5px;">{{{birth_name}}}</td></tr> }}
{{#if: {{{birth_name|{{{Birth_name|{{{BIRTH_NAME|}}}}}}}}} |  
{{#if: {{{birth_date|}}} | <tr><th style="padding: 5px; text-align: left;">birth date</th><td style="padding: 5px;">{{{birth_date}}}</td></tr> }}
<tr><th style="padding: 5px; text-align: left;">Birth name</th><td style="padding: 5px;">{{{birth_name|{{{Birth_name|{{{BIRTH_NAME|}}}}}}}}}</td></tr> }}
{{#if: {{{birth_place|}}} | <tr><th style="padding: 5px; text-align: left;">birth place</th><td style="padding: 5px;">{{{birth_place}}}</td></tr> }}
 
{{#if: {{{death_date|}}} | <tr><th style="padding: 5px; text-align: left;">died</th><td style="padding: 5px;">{{{death_date}}}</td></tr> }}
{{#if: {{{birth_date|{{{Birth_date|{{{BIRTH_DATE|}}}}}}}}} |  
{{#if: {{{death_place|}}} | <tr><th style="padding: 5px; text-align: left;">Place of death</th><td style="padding: 5px;">{{{death_place}}}</td></tr> }}
<tr><th style="padding: 5px; text-align: left;">Birth date</th><td style="padding: 5px;">{{{birth_date|{{{Birth_date|{{{BIRTH_DATE|}}}}}}}}}</td></tr> }}
{{#if: {{{nationality|}}} | <tr><th style="padding: 5px; text-align: left;">Nationality</th><td style="padding: 5px;">{{{nationality}}}</td></tr> }}
 
{{#if: {{{occupation|}}} | <tr><th style="padding: 5px; text-align: left;">Occupation</th><td style="padding: 5px;">{{{occupation}}}</td></tr> }}
{{#if: {{{birth_place|{{{Birth_place|{{{BIRTH_PLACE|}}}}}}}}} |  
{{#if: {{{known_for|}}} | <tr><th style="padding: 5px; text-align: left;">Known for</th><td style="padding: 5px;">{{{known_for}}}</td></tr> }}
<tr><th style="padding: 5px; text-align: left;">Birth place</th><td style="padding: 5px;">{{{birth_place|{{{Birth_place|{{{BIRTH_PLACE|}}}}}}}}}</td></tr> }}
{{#if: {{{spouse|}}} | <tr><th style="padding: 5px; text-align: left;">Spouse(s)</th><td style="padding: 5px;">{{{spouse}}}</td></tr> }}
 
{{#if: {{{children|}}} | <tr><th style="padding: 5px; text-align: left;">Children</th><td style="padding: 5px;">{{{children}}}</td></tr> }}
{{#if: {{{death_date|{{{Death_date|{{{DEATH_DATE|}}}}}}}}} |  
{{#if: {{{awards|}}} | <tr><th style="padding: 5px; text-align: left;">Awards</th><td style="padding: 5px;">{{{awards}}}</td></tr> }}
<tr><th style="padding: 5px; text-align: left;">Died</th><td style="padding: 5px;">{{{death_date|{{{Death_date|{{{DEATH_DATE|}}}}}}}}}</td></tr> }}
{{#if: {{{website|}}} | <tr><th style="padding: 5px; text-align: left;">Website</th><td style="padding: 5px;"><a href="{{{website}}}" target="_blank">Official website</a></td></tr> }}
 
</table>
{{#if: {{{death_place|{{{Death_place|{{{DEATH_PLACE|}}}}}}}}} |  
<tr><th style="padding: 5px; text-align: left;">Place of death</th><td style="padding: 5px;">{{{death_place|{{{Death_place|{{{DEATH_PLACE|}}}}}}}}}</td></tr> }}
 
{{#if: {{{nationality|{{{Nationality|{{{NATIONALITY|}}}}}}}}} |  
<tr><th style="padding: 5px; text-align: left;">Nationality</th><td style="padding: 5px;">{{{nationality|{{{Nationality|{{{NATIONALITY|}}}}}}}}}</td></tr> }}
 
{{#if: {{{occupation|{{{Occupation|{{{OCCUPATION|}}}}}}}}} |  
<tr><th style="padding: 5px; text-align: left;">Occupation</th><td style="padding: 5px;">{{{occupation|{{{Occupation|{{{OCCUPATION|}}}}}}}}}</td></tr> }}
 
{{#if: {{{known_for|{{{Known_for|{{{KNOWN_FOR|}}}}}}}}} |  
<tr><th style="padding: 5px; text-align: left;">Known for</th><td style="padding: 5px;">{{{known_for|{{{Known_for|{{{KNOWN_FOR|}}}}}}}}}</td></tr> }}


</div>
{{#if: {{{spouse|{{{Spouse|{{{SPOUSE|}}}}}}}}} |
</includeonly>
<tr><th style="padding: 5px; text-align: left;">Spouse(s)</th><td style="padding: 5px;">{{{spouse|{{{Spouse|{{{SPOUSE|}}}}}}}}}</td></tr> }}


<noinclude>
{{#if: {{{children|{{{Children|{{{CHILDREN|}}}}}}}}} |
== Usage ==
<tr><th style="padding: 5px; text-align: left;">Children</th><td style="padding: 5px;">{{{children|{{{Children|{{{CHILDREN|}}}}}}}}}</td></tr> }}
This template provides an infobox for people (biographies) without requiring Lua.


=== Example ===
{{#if: {{{awards|{{{Awards|{{{AWARDS|}}}}}}}}} |  
{{Infobox person
<tr><th style="padding: 5px; text-align: left;">Awards</th><td style="padding: 5px;">{{{awards|{{{Awards|{{{AWARDS|}}}}}}}}}</td></tr> }}
| name        = John Doe
| image        = Example.jpg
| caption      = A picture of John Doe
| birth_name  = Johnathan Doe
| birth_date  = 1 January 1980
| birth_place  = New York City, U.S.
| death_date  = 2 February 2050
| death_place  = Los Angeles, California, U.S.
| nationality  = American
| occupation  = Software Engineer
| known_for    = Inventing cool things
| spouse      = Jane Doe
| children    = 2
| awards      = Best Engineer Award
| website      = https://example.com
}}
=== Parameters ===
* `name` - Full name of the person (displayed at the top).
* `image` - Filename of the person's image.
* `caption` - Caption for the image.
* `birth_name` - Person's birth name.
* `birth_date` - Date of birth.
* `birth_place` - Place of birth.
* `death_date` - Date of death.
* `death_place` - Place of death.
* `nationality` - Nationality.
* `occupation` - Primary occupation.
* `known_for` - Notable achievements.
* `spouse` - Spouse(s).
* `children` - Number or names of children.
* `awards` - Awards received.
* `website` - URL to their official website.


== Notes ==
{{#if: {{{website|{{{Website|{{{WEBSITE|}}}}}}}}} |
* Fields left empty will not be displayed.
<tr><th style="padding: 5px; text-align: left;">Website</th><td style="padding: 5px;"><a href="{{{website|{{{Website|{{{WEBSITE|}}}}}}}}}" target="_blank">Official website</a></td></tr> }}
* Ensure images are uploaded to the wiki.
</table>


</noinclude>
</div>
</includeonly>

Latest revision as of 20:47, 6 January 2025