Template:Infobox scientist: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
Tag: Reverted
Undo revision 6040854 by Prab (talk)
Tag: Undo
Line 1: Line 1:
<includeonly>
<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%;">


{{Infobox
<!-- Title -->
| name                =  
<div style="background-color: #f8f9fa; text-align: center; font-weight: bold; font-size: 110%;">
| image               =
{{{name|Unnamed person}}}
| image_size         =  
</div>
| alt                =  
 
| caption             =  
<!-- Image -->
| birth_date         =
{{#if: {{{image|}}} |
| birth_place         =
<div style="text-align: center; margin: 5px 0;">
| death_date         =
[[File:{{{image}}}|{{{image_size|frameless}}}|alt={{{alt|}}}]]
| death_place         =
</div>}}
| nationality         =
 
| fields              =
<!-- Caption -->
| workplaces          =
{{#if: {{{caption|}}} |
| alma_mater          =
<div style="text-align: center; font-size: 90%;">
| doctoral_advisor    =
{{{caption}}}
| doctoral_students  =
</div>}}
| known_for          =
 
| awards             =
<!-- Personal Information -->
| signature          =
<table style="width: 100%; border-spacing: 0; margin: 0; padding: 0;">
}}
{{#if: {{{birth_name|}}} | <tr><th>Birth name</th><td>{{{birth_name}}}</td></tr> }}
{{#if: {{{birth_date|}}} | <tr><th>Born</th><td>{{{birth_date}}}</td></tr> }}
{{#if: {{{birth_place|}}} | <tr><th>Birth place</th><td>{{{birth_place}}}</td></tr> }}
{{#if: {{{death_date|}}} | <tr><th>Died</th><td>{{{death_date}}}</td></tr> }}
{{#if: {{{death_place|}}} | <tr><th>Place of death</th><td>{{{death_place}}}</td></tr> }}
{{#if: {{{nationality|}}} | <tr><th>Nationality</th><td>{{{nationality}}}</td></tr> }}
{{#if: {{{occupation|}}} | <tr><th>Occupation</th><td>{{{occupation}}}</td></tr> }}
{{#if: {{{known_for|}}} | <tr><th>Known for</th><td>{{{known_for}}}</td></tr> }}
{{#if: {{{spouse|}}} | <tr><th>Spouse(s)</th><td>{{{spouse}}}</td></tr> }}
{{#if: {{{children|}}} | <tr><th>Children</th><td>{{{children}}}</td></tr> }}
{{#if: {{{awards|}}} | <tr><th>Awards</th><td>{{{awards}}}</td></tr> }}
{{#if: {{{website|}}} | <tr><th>Website</th><td>[{{{website}}} Official website]</td></tr> }}
</table>
 
</div>
</includeonly>


<!-- Template documentation -->
<noinclude>
<noinclude>
{{documentation}}
== Usage ==
== Usage ==
This template is used to create an infobox for a scientist. It should be placed at the top of the article.
This template provides an infobox for people (biographies) without requiring Lua.


== Parameters ==
=== Example ===
* '''name''': The full name of the scientist.
<syntaxhighlight lang="mediawiki">
* '''image''': An image of the scientist (use the file name, e.g., "Example.jpg").
{{Infobox person
* '''image_size''': The size of the image (optional).
| name         = John Doe
* '''alt''': Alt text for the image (optional).
| image       = Example.jpg
* '''caption''': A caption for the image (optional).
| caption      = A picture of John Doe
* '''birth_date''': The birth date of the scientist.
| birth_name  = Johnathan Doe
* '''birth_place''': The birth place of the scientist.
| birth_date   = 1 January 1980
* '''death_date''': The death date of the scientist (if applicable).
| birth_place = New York City, U.S.
* '''death_place''': The death place of the scientist (if applicable).
| death_date   = 2 February 2050
* '''nationality''': The nationality of the scientist.
| death_place = Los Angeles, California, U.S.
* '''fields''': The fields of study the scientist is known for.
| nationality = American
* '''workplaces''': The institutions where the scientist has worked.
| occupation  = Software Engineer
* '''alma_mater''': The universities or colleges the scientist attended.
| known_for    = Inventing cool things
* '''doctoral_advisor''': The doctoral advisor of the scientist (if applicable).
| spouse      = Jane Doe
* '''doctoral_students''': Notable doctoral students of the scientist (if applicable).
| children    = 2
* '''known_for''': What the scientist is known for.
| awards      = Best Engineer Award
* '''awards''': Awards received by the scientist.
| website      = https://example.com
* '''signature''': An image of the scientist's signature (use the file name, e.g., "Signature.jpg").
}}
</syntaxhighlight>


== Example ==
=== Parameters ===
<pre>
* `name` - Full name of the person (displayed at the top).
{{Infobox scientist
* `image` - Filename of the person's image.
| name               = Albert Einstein
* `caption` - Caption for the image.
| image               = Albert_Einstein_1921.jpg
* `birth_name` - Person's birth name.
| image_size          = 200px
* `birth_date` - Date of birth.
| alt                =
* `birth_place` - Place of birth.
| caption            = Einstein in 1921
* `death_date` - Date of death.
| birth_date         = {{birth date|1879|3|14|df=y}}
* `death_place` - Place of death.
| birth_place         = Ulm, Kingdom of Württemberg, German Empire
* `nationality` - Nationality.
| death_date         = {{death date and age|1955|4|18|1879|3|14|df=y}}
* `occupation` - Primary occupation.
| death_place         = Princeton, New Jersey, U.S.
* `known_for` - Notable achievements.
| nationality         = German, Swiss, American
* `spouse` - Spouse(s).
| fields              = Physics
* `children` - Number or names of children.
| workplaces          = [[University of Zurich]], [[Prussian Academy of Sciences]], [[Institute for Advanced Study]]
* `awards` - Awards received.
| alma_mater          = [[ETH Zurich]]
* `website` - URL to their official website.
| doctoral_advisor    = [[Alfred Kleiner]]
| doctoral_students  = [[Ernst G. Straus]], [[Nathan Rosen]]
| known_for           = [[Theory of relativity]], [[E=mc²]]
| awards              = [[Nobel Prize in Physics]] (1921)
| signature          = Albert_Einstein_Signature.svg
}}
</pre>


== See also ==
== Notes ==
* [[Wikipedia:WikiProject Biography]]
* Fields left empty will not be displayed.
* [[Wikipedia:Manual of Style/Infoboxes]]
* Image requires a file uploaded to the wiki (e.g., `Example.jpg`).


[[Category:Infobox templates|Scientist]]
[[Category:Science templates]]
</noinclude>
</noinclude>

Revision as of 16:31, 18 December 2024


Usage

This template provides an infobox for people (biographies) without requiring Lua.

Example

{{Infobox person
| 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

  • Fields left empty will not be displayed.
  • Image requires a file uploaded to the wiki (e.g., `Example.jpg`).