Template:Infobox scientist: Difference between revisions

From WikiMD's Medical Encyclopedia

CSV import
 
No edit summary
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%;">
<!-- Title -->
<div style="background-color: #f8f9fa; text-align: center; font-weight: bold; font-size: 110%;">
{{{name|Unnamed person}}}
</div>
<!-- Image -->
{{#if: {{{image|}}} |
<div style="text-align: center; margin: 5px 0;">
[[File:{{{image}}}|{{{image_size|frameless}}}|alt={{{alt|}}}]]
</div>}}
<!-- Caption -->
{{#if: {{{caption|}}} |
<div style="text-align: center; font-size: 90%;">
{{{caption}}}
</div>}}
<!-- Personal Information -->
<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>
<noinclude>
== Usage ==
This template provides an infobox for people (biographies) without requiring Lua.
=== Example ===
<syntaxhighlight lang="mediawiki">
{{Infobox person
{{Infobox person
| child = {{lc:{{{child|{{{embed|}}}}}}}}
| name         = John Doe
| honorific_prefix  = {{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}
| image        = Example.jpg
| name             = {{{name|}}}
| caption      = A picture of John Doe
| honorific_suffix  = {{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}
| birth_name   = Johnathan Doe
| native_name      = {{{native_name|}}}
| birth_date   = 1 January 1980
| native_name_lang  = {{{native_name_lang|}}}
| birth_place = New York City, U.S.
| image             = {{{image|}}}
| death_date   = 2 February 2050
| image_size       = {{{image_size|{{{imagesize|}}}}}}
| death_place = Los Angeles, California, U.S.
| image_upright    = {{{image_upright|1}}}
| nationality = American
| alt              = {{{alt|}}}
| occupation   = Software Engineer
| caption           = {{{caption|}}}
| known_for   = Inventing cool things
| pronunciation    = {{#if:{{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce comment|}}} |<!--
| spouse       = Jane Doe
-->{{ubl|1={{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce ref|}}}&#x20;{{{pronounce comment|}}}<!--
| children     = 2
     -->|2={{{pronounce 2|}}} }}}}
| awards      = Best Engineer Award
| birth_name       = {{{birth_name|}}}
| website     = https://example.com
| birth_date       = {{{birth_date|}}}
}}
| birth_place       = {{{birth_place|}}}
</syntaxhighlight>
| death_date       = {{{death_date|}}}
 
| death_place       = {{{death_place|}}}
=== Parameters ===
| death_cause      = {{{death_cause|}}}
* `name` - Full name of the person (displayed at the top).
| resting_place    = {{{resting place|{{{resting_place|{{{restingplace|}}}}}}}}}
* `image` - Filename of the person's image.
| resting_place_coordinates = {{{resting place coordinates|{{{resting_place_coordinates|{{{restingplacecoordinates|}}}}}}}}}
* `caption` - Caption for the image.
| other_names      = {{{other_names|}}}
* `birth_name` - Person's birth name.
| siglum            = {{{siglum|}}}
* `birth_date` - Date of birth.
<!-- parameter removed from infobox person per discussion at https://en.wikipedia.org/w/index.php?title=Template_talk:Infobox_person&oldid=932429196#Residence_parameter
* `birth_place` - Place of birth.
| residence        = {{{residence|}}} -->
* `death_date` - Date of death.
| title            = {{{title|}}}
* `death_place` - Place of death.
| citizenship      = {{{citizenship|}}}
* `nationality` - Nationality.
| nationality       = {{{nationality|}}}
* `occupation` - Primary occupation.
| education        = {{{education|}}}
* `known_for` - Notable achievements.
| alma_mater        = {{{alma_mater|}}}
* `spouse` - Spouse(s).
| occupation       = {{{occupation|}}}
* `children` - Number or names of children.
| known_for         = {{{known_for|}}}
* `awards` - Awards received.
| awards            = {{{awards|}}}{{{prizes|}}}
* `website` - URL to their official website.
| spouse           = {{if empty|{{{spouses|}}}|{{{spouse|}}}}}
 
| partner          = {{if empty|{{{partners|}}}|{{{partner|}}}}}
== Notes ==
| children         = {{{children|}}}
* Fields left empty will not be displayed.
| signature        = {{{signature|}}}
* Image requires a file uploaded to the wiki (e.g., `Example.jpg`).
| signature_alt    = {{{signature_alt|}}}
 
| website           = {{{website|{{{homepage|{{{URL|}}}}}}}}}
| footnotes        = {{{footnotes|}}}
| nocat_wdimage    = {{{nocat_wdimage|}}}
| module            = {{#if:{{{field|{{{fields|}}}}}}{{{workplaces|{{{work_institutions|{{{work_institution|}}}}}}}}}{{{patrons|}}}{{{thesis_title|}}}{{{thesis1_title|}}}{{{thesis2_title|}}}{{{doctoral_advisors|}}}{{{doctoral_advisor|}}}{{{academic_advisors|}}}{{{doctoral_students|}}}{{{notable_students|}}}{{{influences|}}}{{{influenced|}}}{{{author_abbreviation_bot|{{{author_abbrev_bot|}}}}}}{{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}
  |{{Infobox
  | child  = yes
  | title  = '''Scientific career'''
  | decat  = yes <!-- remove from template:infobox tracking categories -->
  | label1 = Fields
  | class1 = category
  | data1  = {{{field|{{{fields|}}}}}}
  | label2 = Institutions
  | data2  = {{{workplaces|{{{work_institutions|{{{work_institution|}}}}}}}}}
  | label3 = Patrons
  | data3  = {{{patrons|}}}
  | label4 = {{#if:{{{thesis2_title|}}} |[[Thesis|Theses]] |[[Thesis]]}}
  | data4  = {{#if:{{{thesis1_title|}}}{{{thesis2_title|}}}
            | {{startplainlist}}
* {{#if:{{{thesis1_title|}}}
  |  {{#if:{{{thesis1_url|}}}  |[{{{thesis1_url}}} ''{{{thesis1_title}}}''] |''{{{thesis1_title}}}''}}}}<!--
    -->{{#if:{{{thesis1_year|}}} |&nbsp;{{resize|97%|({{{thesis1_year}}})}}
  }}
* {{#if:{{{thesis2_title|}}}
  |  {{#if:{{{thesis2_url|}}}  |[{{{thesis2_url}}} ''{{{thesis2_title}}}''] |''{{{thesis2_title}}}''}}}}<!--
    -->{{#if:{{{thesis2_year|}}} |&nbsp;{{resize|97%|({{{thesis2_year}}})}}
  }}
{{endplainlist}}
            | {{#if:{{{thesis_title|}}}
                |  {{#if:{{{thesis_url|}}}  |[{{{thesis_url}}} ''{{{thesis_title}}}''] |''{{{thesis_title}}}''}}}}<!--
                -->{{#if:{{{thesis_year|}}} |&nbsp;{{resize|97%|({{{thesis_year}}})}}
            }} }}
  | label5 = [[Doctoral advisor]]{{#if:{{{doctoral_advisors|}}}|s}}
  | data5  = {{if empty|{{{doctoral_advisors|}}}|{{{doctoral_advisor|}}}}}
  | label6 = {{#if:{{{doctoral_advisors|}}}{{{doctoral_advisor|}}} |Other&nbsp;academic advisors |Academic advisors}}
  | data6  = {{{academic_advisors|}}}
  | label7 = Doctoral students
  | data7  = {{{doctoral_students|}}}
  | label8 = {{#if:{{{doctoral_students|}}} |Other&nbsp;notable students |Notable students}}
  | data8  = {{{notable_students|}}}
  | label9 = Influences
  | data9  = {{{influences|}}}
  | label10 = Influenced
  | data10  = {{{influenced|}}}
  | label11 = [[Author citation (botany)|Author&nbsp;abbrev. (botany)]]
  | data11  = {{{author_abbreviation_bot|{{{author_abbrev_bot|}}}}}}
  | label12 = [[Author citation (zoology)|Author&nbsp;abbrev. (zoology)]]
  | data12  = {{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}
  | rowclass3 = note
}} }}
| module2      = {{{module|}}}
}}<!--Auto-categorisation:
  -->{{main other|{{#if:{{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}}
      | [[Category:Zoologists with author abbreviations|{{{author_abbreviation_zoo|{{{author_abbrev_zoo}}}}}}]]
      }}}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox scientist with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox scientist]] with unknown parameter "_VALUE_"|ignoreblank=y| academic_advisors | alma_mater | alt | author_abbrev_bot | author_abbrev_zoo | author_abbreviation_bot | author_abbreviation_zoo | awards | birth_date | birth_name | birth_place | caption | child | children | citizenship | death_cause | death_date | death_place | doctoral_advisor | doctoral_advisors | doctoral_students | education | embed | field | fields | footnotes | homepage | honorific prefix | honorific suffix | honorific_prefix | honorific_suffix | image | image_size | image_upright | imagesize | influenced | influences | known_for | module | name | nationality | native_name | native_name_lang | nocat_wdimage | notable_students | occupation | other_names | partner | partners | patrons | prizes | pronounce | Pronounce | pronounce 2 | pronounce comment | pronounce ref | Pronunciation | pronunciation <!--| residence--> | resting place | resting place coordinates | resting_place | resting_place_coordinates | restingplace | restingplacecoordinates | siglum | signature | signature_alt | spouse | spouses | thesis_title | thesis_url | thesis_year | thesis1_title | thesis1_url | thesis1_year | thesis2_title | thesis2_url | thesis2_year | title | URL | website | work_institution | work_institutions | workplaces }}<noinclude>
{{documentation}}
</noinclude>
</noinclude>
{{no-index-template}}

Revision as of 11:57, 17 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`).