Template:Infobox person: Difference between revisions
Appearance
Computerwhz (talk | contribs) Infobox person |
Computerwhz (talk | contribs) No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<table class="infobox" style="float:right; clear:right; width:22em; margin:0 0 1em 1em; border:1px solid #a2a9b1; border-spacing:3px; background:#f8f9fa; color:#202122; font-size:88%; line-height:1.5;"> | |||
<tr> | |||
<th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background:#ccccff;"> | |||
{{#if:{{{image|}}}| | {{{title|{{PAGENAME}}}}} | ||
</th> | |||
{{#if:{{{caption|}}}| | </tr> | ||
{{#if:{{{real_name|}}}| | {{#if:{{{image|}}}| | ||
<tr> | |||
{{#if:{{{born|}}}| | <td colspan="2" style="text-align:center;">[[File:{{{image}}}|220px]]</td> | ||
</tr> | |||
{{#if:{{{nationality|}}}| | }} | ||
{{#if:{{{occupation|}}}| | {{#if:{{{caption|}}}| | ||
<tr> | |||
{{#if:{{{active_dates|}}}| | <td colspan="2" style="text-align:center; font-size:90%;">{{{caption}}}</td> | ||
</tr> | |||
{{#if:{{{known_for|}}}| | }} | ||
{{#if:{{{website|}}}| | {{#if:{{{username|}}}| | ||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Username</th> | |||
<td>{{{username}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{real_name|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Real name</th> | |||
<td>{{{real_name}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{born|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Born</th> | |||
<td>{{{born}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{nationality|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Nationality</th> | |||
<td>{{{nationality}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{occupation|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Occupation</th> | |||
<td>{{{occupation}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{active_dates|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Active dates</th> | |||
<td>{{{active_dates}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{status|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Status</th> | |||
<td>{{{status}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{known_for|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Known for</th> | |||
<td>{{{known_for}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{website|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Website</th> | |||
<td> | |||
{{{website}}} | |||
</td> | |||
</tr> | |||
}} | |||
{{#if:{{{social_media|}}}| | |||
<tr> | |||
<th scope="row" style="text-align:left; white-space:nowrap;">Social Media</th> | |||
<td> | |||
{{{social_media}}} | |||
</td> | |||
</tr> | |||
}} | |||
</table> | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Infobox person | {{Infobox person | ||
| | | title = | ||
| image = | | image = | ||
| caption = | | caption = | ||
| username = | |||
| real_name = | | real_name = | ||
| born = | | born = | ||
| Line 33: | Line 108: | ||
| occupation = | | occupation = | ||
| active_dates = | | active_dates = | ||
| status = | |||
| known_for = | | known_for = | ||
| website = | | website = | ||
| social_media = | |||
}} | }} | ||
</pre> | </pre> | ||
<templatedata> | |||
{ | |||
"description": "An infobox for a person, creator, user, or online identity.", | |||
"params": { | |||
"title": { | |||
"label": "Title", | |||
"description": "The title shown at the top of the infobox.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Image filename without the File: prefix.", | |||
"example": "Example.png", | |||
"type": "wiki-file-name" | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"description": "Caption shown below the image.", | |||
"type": "string" | |||
}, | |||
"username": { | |||
"label": "Username", | |||
"description": "The person's username or online handle.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"real_name": { | |||
"label": "Real name", | |||
"description": "The person's real name, if known or relevant.", | |||
"type": "string" | |||
}, | |||
"born": { | |||
"label": "Born", | |||
"description": "Date or place of birth.", | |||
"type": "string" | |||
}, | |||
"nationality": { | |||
"label": "Nationality", | |||
"type": "string" | |||
}, | |||
"occupation": { | |||
"label": "Occupation", | |||
"type": "string" | |||
}, | |||
"active_dates": { | |||
"label": "Active dates", | |||
"description": "Dates during which the person was active.", | |||
"example": "2018–present", | |||
"type": "string" | |||
}, | |||
"status": { | |||
"label": "Status", | |||
"example": "Active", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"known_for": { | |||
"label": "Known for", | |||
"type": "string" | |||
}, | |||
"website": { | |||
"label": "Website", | |||
"type": "url" | |||
}, | |||
"social_media": { | |||
"label": "Social Media", | |||
"type": "url" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 20:12, 1 June 2026
Usage
{{Infobox person
| title =
| image =
| caption =
| username =
| real_name =
| born =
| nationality =
| occupation =
| active_dates =
| status =
| known_for =
| website =
| social_media =
}}
An infobox for a person, creator, user, or online identity.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | The title shown at the top of the infobox. | String | suggested |
| Image | image | Image filename without the File: prefix.
| File | optional |
| Caption | caption | Caption shown below the image. | String | optional |
| Username | username | The person's username or online handle. | String | suggested |
| Real name | real_name | The person's real name, if known or relevant. | String | optional |
| Born | born | Date or place of birth. | String | optional |
| Nationality | nationality | no description | String | optional |
| Occupation | occupation | no description | String | optional |
| Active dates | active_dates | Dates during which the person was active.
| String | optional |
| Status | status | no description
| String | suggested |
| Known for | known_for | no description | String | optional |
| Website | website | no description | URL | optional |
| Social Media | social_media | no description | URL | optional |