Template:Infobox scientist: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
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|}}}|
[[{{{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|{{{Birth_name|{{{BIRTH_NAME|}}}}}}}}} |
| label9        = Author abbrev. (botany)
<tr><th style="padding: 5px; text-align: left;">Birth name</th><td style="padding: 5px;">{{{birth_name|{{{Birth_name|{{{BIRTH_NAME|}}}}}}}}}</td></tr> }}
| data9          = {{{author_abbreviation_bot|{{{author_abbrev_bot|}}}}}}
 
| label10        = Author abbrev. (zoology)
{{#if: {{{birth_date|{{{Birth_date|{{{BIRTH_DATE|}}}}}}}}} |  
| data10        = {{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}
<tr><th style="padding: 5px; text-align: left;">Birth date</th><td style="padding: 5px;">{{{birth_date|{{{Birth_date|{{{BIRTH_DATE|}}}}}}}}}</td></tr> }}
| belowstyle    = font-size: 90%; border-top: 1px solid #a2a9b1; margin-top: 1em;
 
| below          = {{#if:{{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}|[[Category:Zoologists with author abbreviations|{{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}]]}}
{{#if: {{{birth_place|{{{Birth_place|{{{BIRTH_PLACE|}}}}}}}}} |
}}
<tr><th style="padding: 5px; text-align: left;">Birth place</th><td style="padding: 5px;">{{{birth_place|{{{Birth_place|{{{BIRTH_PLACE|}}}}}}}}}</td></tr> }}
</includeonly>
 
{{#if: {{{death_date|{{{Death_date|{{{DEATH_DATE|}}}}}}}}} |
<tr><th style="padding: 5px; text-align: left;">Died</th><td style="padding: 5px;">{{{death_date|{{{Death_date|{{{DEATH_DATE|}}}}}}}}}</td></tr> }}
 
{{#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> }}
 
{{#if: {{{spouse|{{{Spouse|{{{SPOUSE|}}}}}}}}} |  
<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 scientists without requiring Lua.


=== Parameters ===
{{#if: {{{awards|{{{Awards|{{{AWARDS|}}}}}}}}} |
* `name` - Name of the scientist.
<tr><th style="padding: 5px; text-align: left;">Awards</th><td style="padding: 5px;">{{{awards|{{{Awards|{{{AWARDS|}}}}}}}}}</td></tr> }}
* `field` or `fields` - Field(s) of expertise.
* `workplaces`, `work_institutions`, or `work_institution` - Workplaces or institutions.
* `patrons` - Patrons, if any.
* `thesis_title`, `thesis1_title`, `thesis2_title` - Title(s) of thesis.
* `thesis_url`, `thesis1_url`, `thesis2_url` - URL(s) for thesis.
* `thesis_year`, `thesis1_year`, `thesis2_year` - Year(s) of thesis.
* `doctoral_advisors` or `doctoral_advisor` - Doctoral advisor(s).
* `academic_advisors` - Academic advisors.
* `doctoral_students` - Doctoral students.
* `notable_students` - Other notable students.
* `author_abbreviation_bot` or `author_abbrev_bot` - Author abbreviation (botany).
* `author_abbreviation_zoo` or `author_abbrev_zoo` - Author abbreviation (zoology).


=== Example ===
{{#if: {{{website|{{{Website|{{{WEBSITE|}}}}}}}}} |
<syntaxhighlight lang="mediawiki">
<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> }}
{{Infobox scientist
</table>
| 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>
</div>
</includeonly>

Latest revision as of 15:54, 24 April 2026