Template:Infobox scientist: Difference between revisions
From WikiMD's Wellness Encyclopedia
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{Infobox | |||
| bodystyle = width: 22em; | |||
| title = {{{name|{{PAGENAME}}}}} | |||
| label1 = Fields | |||
{{{name| | | data1 = {{{field|{{{fields|}}}}}} | ||
| label2 = Institutions | |||
| data2 = {{{workplaces|{{{work_institutions|{{{work_institution|}}}}}}}}} | |||
| label3 = Patrons | |||
{{ | | data3 = {{{patrons|}}} | ||
| label4 = {{#if:{{{thesis1_title|}}}{{{thesis2_title|}}}|[[Thesis|Theses]]|[[Thesis]]}} | |||
| data4 = {{#if:{{{thesis1_title|}}}{{{thesis2_title|}}}| | |||
* {{#if:{{{thesis1_title|}}}|{{#if:{{{thesis1_url|}}}|[{{{thesis1_url}}} {{{thesis1_title}}}]|{{{thesis1_title}}}}}} {{#if:{{{thesis1_year|}}|({{{thesis1_year}}})}}<br> | |||
* {{#if:{{{thesis2_title|}}}|{{#if:{{{thesis2_url|}}}|[{{{thesis2_url}}} {{{thesis2_title}}}]|{{{thesis2_title}}}}}} {{#if:{{{thesis2_year|}}|({{{thesis2_year}}})}} | |||
|{{#if:{{{thesis_title|}}}|{{#if:{{{thesis_url|}}}|[{{{thesis_url}}} {{{thesis_title}}}]|{{{thesis_title}}}}}} {{#if:{{{thesis_year|}}|({{{thesis_year}}})}} }} | |||
{{#if: {{{ | | label5 = Doctoral advisor{{#if:{{{doctoral_advisors|}}}|s}} | ||
| data5 = {{{doctoral_advisors|{{{doctoral_advisor|}}}}}} | |||
{{{ | | label6 = {{#if:{{{doctoral_advisors|{{{doctoral_advisor|}}}}}}|Other academic advisors|Academic advisors}} | ||
| data6 = {{{academic_advisors|}}} | |||
| label7 = Doctoral students | |||
| data7 = {{{doctoral_students|}}} | |||
| label8 = {{#if:{{{doctoral_students|}}}|Other notable students|Notable students}} | |||
{{#if: {{{ | | data8 = {{{notable_students|}}} | ||
{{#if: {{{ | | label9 = Author abbrev. (botany) | ||
{{#if: {{{ | | data9 = {{{author_abbreviation_bot|{{{author_abbrev_bot|}}}}}} | ||
| label10 = Author abbrev. (zoology) | |||
{{#if: {{{ | | data10 = {{{author_abbreviation_zoo|{{{author_abbrev_zoo|}}}}}} | ||
{{#if: {{{ | | 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: {{{ | }} | ||
{{#if: {{{ | |||
{{#if: {{{ | |||
{{#if: {{{ | |||
{{ | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
This template provides an infobox for | This template provides an infobox for scientists without requiring Lua. | ||
=== Parameters === | === Parameters === | ||
* `name` - | * `name` - Name of the scientist. | ||
* ` | * `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). | ||
== Notes == | === Notes === | ||
* Fields left empty will not be displayed. | * Fields left empty will not be displayed. | ||
* Ensure | * Do not include Lua-based logic. | ||
* Ensure proper categorization based on the presence of `author_abbreviation_zoo`. | |||
=== Example === | |||
{{Infobox scientist | |||
| name = Albert Einstein | |||
| field = Physics | |||
| workplaces = Princeton University | |||
| thesis_title = A New Determination of Molecular Dimensions | |||
| thesis_year = 1905 | |||
| doctoral_advisors = Alfred Kleiner | |||
| author_abbreviation_bot = Einstein | |||
}} | |||
</noinclude> | </noinclude> | ||
Revision as of 18:20, 6 January 2025
Usage
This template provides an infobox for scientists without requiring Lua.
Parameters
- `name` - Name of the scientist.
- `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).
Notes
- Fields left empty will not be displayed.
- Do not include Lua-based logic.
- Ensure proper categorization based on the presence of `author_abbreviation_zoo`.
Example
{{Infobox | bodystyle = width: 22em; | title = Albert Einstein | label1 = Fields | data1 = Physics | label2 = Institutions | data2 = Princeton University | label3 = Patrons | data3 = | label4 = Thesis | data4 = {{#if:|
* {{#if:|{{{thesis1_title}}}} ({{{thesis1_year}}})
* A New Determination of Molecular Dimensions} (1905)