Jump to content

Template:Infobox person: Difference between revisions

From Computerwhz Wiki
m Protected "Template:Infobox person": Template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="wikitable" style="float:right; width:300px; margin:0 0 1em 1em; font-size:90%;"
<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;">
! colspan="2" style="text-align:center; font-size:120%;" | {{{username|{{PAGENAME}}}}}
<tr>
|-
<th colspan="2" style="text-align:center; font-size:125%; font-weight:bold; background:#ccccff;">
{{#if:{{{image|}}}|! colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|220px]]}}
{{{title|{{PAGENAME}}}}}
|-
</th>
{{#if:{{{caption|}}}|! colspan="2" style="text-align:center; font-size:85%;" {{!}} {{{caption}}}}}
</tr>
|-
 
{{#if:{{{real_name|}}}|! Real name {{!}} {{{real_name}}}}}
{{#if:{{{image|}}}|
|-
<tr>
{{#if:{{{born|}}}|! Born {{!}} {{{born}}}}}
<td colspan="2" style="text-align:center;">[[File:{{{image}}}|220px]]</td>
|-
</tr>
{{#if:{{{nationality|}}}|! Nationality {{!}} {{{nationality}}}}}
}}
|-
 
{{#if:{{{occupation|}}}|! Occupation {{!}} {{{occupation}}}}}
{{#if:{{{caption|}}}|
|-
<tr>
{{#if:{{{active_dates|}}}|! Active dates {{!}} {{{active_dates}}}}}
<td colspan="2" style="text-align:center; font-size:90%;">{{{caption}}}</td>
|-
</tr>
{{#if:{{{known_for|}}}|! Known for {{!}} {{{known_for}}}}}
}}
|-
 
{{#if:{{{website|}}}|! Website {{!}} {{{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
| username =
| 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

The title shown at the top of the infobox.

Stringsuggested
Imageimage

Image filename without the File: prefix.

Example
Example.png
Fileoptional
Captioncaption

Caption shown below the image.

Stringoptional
Usernameusername

The person's username or online handle.

Stringsuggested
Real namereal_name

The person's real name, if known or relevant.

Stringoptional
Bornborn

Date or place of birth.

Stringoptional
Nationalitynationality

no description

Stringoptional
Occupationoccupation

no description

Stringoptional
Active datesactive_dates

Dates during which the person was active.

Example
2018–present
Stringoptional
Statusstatus

no description

Example
Active
Stringsuggested
Known forknown_for

no description

Stringoptional
Websitewebsite

no description

URLoptional
Social Mediasocial_media

no description

URLoptional