Template:Infobox scientist: Difference between revisions
From WikiMD's Wellness Encyclopedia
CSV import Tag: Reverted |
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%;"> | |||
{{ | <!-- Title --> | ||
| | <div style="background-color: #f8f9fa; text-align: center; font-weight: bold; font-size: 110%;"> | ||
{{{name|Unnamed person}}} | |||
| image_size | </div> | ||
| | |||
<!-- 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 | |||
| | <!-- Caption --> | ||
| | {{#if: {{{caption|}}} | | ||
| | <div style="text-align: center; font-size: 90%;"> | ||
| | {{{caption}}} | ||
| | </div>}} | ||
| | |||
| awards | <!-- 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> | <noinclude> | ||
== Usage == | == Usage == | ||
This template | This template provides an infobox for people (biographies) without requiring Lua. | ||
== | === Example === | ||
<syntaxhighlight lang="mediawiki"> | |||
{{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 | |||
}} | |||
</syntaxhighlight> | |||
== | === 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`). | ||
</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`).