Template:Infobox scientist: Difference between revisions
From WikiMD's Wellness Encyclopedia
No edit summary |
No edit summary |
||
| Line 22: | Line 22: | ||
<table style="width: 100%; border-spacing: 0; margin: 0; padding: 0; text-align: left;"> | <table style="width: 100%; border-spacing: 0; margin: 0; padding: 0; text-align: left;"> | ||
{{#if: {{{birth_name|}}} | <tr><th style="padding: 5px; text-align: left;">birth name</th><td style="padding: 5px;">{{{birth_name}}}</td></tr> }} | {{#if: {{{birth_name|}}} | <tr><th style="padding: 5px; text-align: left;">birth name</th><td style="padding: 5px;">{{{birth_name}}}</td></tr> }} | ||
{{#if: {{{birth_date|}}} | <tr><th style="padding: 5px; text-align: left;"> | {{#if: {{{birth_date|}}} | <tr><th style="padding: 5px; text-align: left;">birth date</th><td style="padding: 5px;">{{{birth_date}}}</td></tr> }} | ||
{{#if: {{{birth_place|}}} | <tr><th style="padding: 5px; text-align: left;">birth place</th><td style="padding: 5px;">{{{birth_place}}}</td></tr> }} | {{#if: {{{birth_place|}}} | <tr><th style="padding: 5px; text-align: left;">birth place</th><td style="padding: 5px;">{{{birth_place}}}</td></tr> }} | ||
{{#if: {{{death_date|}}} | <tr><th style="padding: 5px; text-align: left;">died</th><td style="padding: 5px;">{{{death_date}}}</td></tr> }} | {{#if: {{{death_date|}}} | <tr><th style="padding: 5px; text-align: left;">died</th><td style="padding: 5px;">{{{death_date}}}</td></tr> }} | ||
Revision as of 19:38, 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.