Template:Infobox scientist: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{Infobox
<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%;">
| bodystyle      = width: 22em;
 
| title          = {{{name|{{PAGENAME}}}}}
<!-- Title -->
| label1        = Fields
<div style="background-color: #f8f9fa; text-align: center; font-weight: bold; font-size: 110%;">
| data1          = {{{field|{{{fields|}}}}}}
{{{name|Unnamed person}}}
| label2        = Institutions
</div>
| data2          = {{{workplaces|{{{work_institutions|{{{work_institution|}}}}}}}}}
 
| label3        = Patrons
<!-- Image -->
| data3          = {{{patrons|}}}
{{#if: {{{image|}}} |
| label4        = {{#if:{{{thesis1_title|}}}{{{thesis2_title|}}}|[[Thesis|Theses]]|[[Thesis]]}}
<div style="text-align: center; margin: 5px 0;">
| data4          = {{#if:{{{thesis1_title|}}}|
[[File:{{{image}}}|{{{image_size|frameless}}}|alt={{{alt|}}}]]
  * {{#if:{{{thesis1_url|}}}|[{{{thesis1_url}}} {{{thesis1_title}}}]|{{{thesis1_title}}}}} {{#if:{{{thesis1_year|}}|({{{thesis1_year}}})}}<br>}}
</div>}}
  {{#if:{{{thesis2_title|}}}|
 
  * {{#if:{{{thesis2_url|}}}|[{{{thesis2_url}}} {{{thesis2_title}}}]|{{{thesis2_title}}}}} {{#if:{{{thesis2_year|}}|({{{thesis2_year}}})}}}}}}
<!-- Caption -->
| label5        = Doctoral advisor{{#if:{{{doctoral_advisors|}}}|s}}
{{#if: {{{caption|}}} |
| data5          = {{{doctoral_advisors|{{{doctoral_advisor|}}}}}}
<div style="text-align: center; font-size: 90%;">
| label6        = {{#if:{{{doctoral_advisors|{{{doctoral_advisor|}}}}}}|Other academic advisors|Academic advisors}}
{{{caption}}}
| data6          = {{{academic_advisors|}}}
</div>}}
| label7        = Doctoral students
 
| data7          = {{{doctoral_students|}}}
<!-- Personal Information -->
| label8        = {{#if:{{{doctoral_students|}}}|Other notable students|Notable students}}
<table style="width: 100%; border-spacing: 0; margin: 0; padding: 0; text-align: left;">
| data8          = {{{notable_students|}}}
{{#if: {{{birth_name|}}} | <tr><th style="padding: 5px; text-align: left;">Birth name</th><td style="padding: 5px;">{{{birth_name}}}</td></tr> }}
| label9        = Author abbrev. (botany)
{{#if: {{{birth_date|}}} | <tr><th style="padding: 5px; text-align: left;">Born</th><td style="padding: 5px;">{{{birth_date}}}</td></tr> }}
| data9          = {{{author_abbreviation_bot|{{{author_abbrev_bot|}}}}}}
{{#if: {{{birth_place|}}} | <tr><th style="padding: 5px; text-align: left;">Birth place</th><td style="padding: 5px;">{{{birth_place}}}</td></tr> }}
| label10        = Author abbrev. (zoology)
{{#if: {{{death_date|}}} | <tr><th style="padding: 5px; text-align: left;">Died</th><td style="padding: 5px;">{{{death_date}}}</td></tr> }}
| data10        = {{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}
{{#if: {{{death_place|}}} | <tr><th style="padding: 5px; text-align: left;">Place of death</th><td style="padding: 5px;">{{{death_place}}}</td></tr> }}
| belowstyle    = font-size: 90%; border-top: 1px solid #a2a9b1; margin-top: 1em;
{{#if: {{{nationality|}}} | <tr><th style="padding: 5px; text-align: left;">Nationality</th><td style="padding: 5px;">{{{nationality}}}</td></tr> }}
| below          = {{#if:{{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}|[[Category:Zoologists with author abbreviations|{{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}]]}}
{{#if: {{{occupation|}}} | <tr><th style="padding: 5px; text-align: left;">Occupation</th><td style="padding: 5px;">{{{occupation}}}</td></tr> }}
}}
{{#if: {{{known_for|}}} | <tr><th style="padding: 5px; text-align: left;">Known for</th><td style="padding: 5px;">{{{known_for}}}</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: {{{awards|}}} | <tr><th style="padding: 5px; text-align: left;">Awards</th><td style="padding: 5px;">{{{awards}}}</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>
 
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>
== Usage ==
== Usage ==
This template provides an infobox for scientists without requiring Lua.
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 ===
=== Parameters ===
* `name` - Name of the scientist.
* `name` - Full name of the person (displayed at the top).
* `field` or `fields` - Field(s) of expertise.
* `image` - Filename of the person's image.
* `workplaces`, `work_institutions`, or `work_institution` - Workplaces or institutions.
* `caption` - Caption for the image.
* `patrons` - Patrons, if any.
* `birth_name` - Person's birth name.
* `thesis_title`, `thesis1_title`, `thesis2_title` - Title(s) of thesis.
* `birth_date` - Date of birth.
* `thesis_url`, `thesis1_url`, `thesis2_url` - URL(s) for thesis.
* `birth_place` - Place of birth.
* `thesis_year`, `thesis1_year`, `thesis2_year` - Year(s) of thesis.
* `death_date` - Date of death.
* `doctoral_advisors` or `doctoral_advisor` - Doctoral advisor(s).
* `death_place` - Place of death.
* `academic_advisors` - Academic advisors.
* `nationality` - Nationality.
* `doctoral_students` - Doctoral students.
* `occupation` - Primary occupation.
* `notable_students` - Other notable students.
* `known_for` - Notable achievements.
* `author_abbreviation_bot` or `author_abbrev_bot` - Author abbreviation (botany).
* `spouse` - Spouse(s).
* `author_abbreviation_zoo` or `author_abbrev_zoo` - Author abbreviation (zoology).
* `children` - Number or names of children.
* `awards` - Awards received.
* `website` - URL to their official website.


=== Example ===
== Notes ==
<syntaxhighlight lang="mediawiki">
* Fields left empty will not be displayed.
{{Infobox scientist
* Ensure images are uploaded to the wiki.
| name = Albert Einstein
| field = Physics
| workplaces = Princeton University
| thesis1_title = A New Determination of Molecular Dimensions
| thesis1_year = 1905
| doctoral_advisors = Alfred Kleiner
| author_abbreviation_bot = Einstein
}}
</syntaxhighlight>


</noinclude>
</noinclude>

Revision as of 18:24, 6 January 2025


Usage

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

Example

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.
  • Ensure images are uploaded to the wiki.