Jump to content

Template:Infobox person: Difference between revisions

From WikiGenius
Shovon (talk | contribs)
Infobox new version
Tag: Reverted
Shovon (talk | contribs)
mNo edit summary
Tag: Manual revert
 
Line 1: Line 1:
<includeonly>
<infobox>
<div style="float:right; clear:right; margin:0 0 1em 1em; width:280px; border:1px solid #aaa; background:#f9f9f9; padding:0.5em; font-size:90%;">
    <title source="name"><default>{{PAGENAME}}</default></title>
<div style="font-size:110%; font-weight:bold; text-align:center; border-bottom:1px solid #aaa; padding-bottom:0.2em; margin-bottom:0.4em;">{{{name}}}</div>
    <image source="image">
{{#if:{{{image|}}}|<div style="text-align:center; margin-bottom:0.5em;">[[File:{{{image}}}|250px]]</div>}}
        <caption source="caption">
{{#if:{{{caption|}}}|<div style="text-align:center; font-size:90%; margin-bottom:0.5em;">{{{caption}}}</div>}}
            <default>{{{name}}} image</default>
        </caption>
    </image>
    <data source="gender"><label>Gender</label></data>
    <data source="age"><label>Age</label></data>
    <data source="birth_name"><label>Born</label></data>
    <data source="birth_date"><label>Birth date</label></data>
    <data source="birth_place"><label>Birth place</label></data>
    <data source="parents"><label>Parents</label></data>
    <data source="relatives"><label>Relatives</label></data>
    <data source="nationality"><label>Nationality</label></data>
    <data source="other_names"><label>Other names</label></data>
    <data source="occupation"><label>Occupation</label></data>
    <data source="years_active"><label>Years active</label></data>
    <data source="known_for"><label>Known for</label></data>
    <data source="notable_works"><label>Notable work(s)</label></data>
    <data source="home_town"><label>Home town</label></data>
    <data source="website"><label>Website</label></data>


<table style="width:100%; border-spacing:0; font-size:90%;">
    <group label="Attributes">
<tr>
        <data source="height"><label>Height</label></data>
  <td style="border-top:1px solid #aaa; font-weight:bold;">Born</td>
        <data source="weight"><label>Weight</label></data>
  <td style="border-top:1px solid #aaa;">{{{birth_date}}}{{#if:{{{birth_place|}}}|<br/>{{{birth_place}}}}}</td>
        <data source="hair"><label>Hair color</label></data>
</tr>
        <data source="eyes"><label>Eye color</label></data>
<tr>
    </group>
  <td style="border-top:1px solid #aaa; font-weight:bold;">Nationality</td>
</infobox>
  <td style="border-top:1px solid #aaa;">{{{nationality}}}</td>
<noinclude>{{Documentation}}</noinclude>
</tr>
<tr>
  <td style="border-top:1px solid #aaa; font-weight:bold;">Occupation</td>
  <td style="border-top:1px solid #aaa;">{{{occupation}}}</td>
</tr>
{{#if:{{{years_active|}}}|<tr>
  <td style="border-top:1px solid #aaa; font-weight:bold;">Years active</td>
  <td style="border-top:1px solid #aaa;">{{{years_active}}}</td>
</tr>}}
{{#if:{{{known_for|}}}|<tr>
  <td style="border-top:1px solid #aaa; font-weight:bold;">Known for</td>
  <td style="border-top:1px solid #aaa;">{{{known_for}}}</td>
</tr>}}
{{#if:{{{website|}}}|<tr>
  <td style="border-top:1px solid #aaa; font-weight:bold;">Website</td>
  <td style="border-top:1px solid #aaa;">[{{{website}}} {{{website}}}]</td>
</tr>}}
</table>
</div>
</includeonly>
<noinclude>
==Usage==
<pre>
{{Infobox person
| name        = John Doe
| image      = Example.jpg
| caption    = John Doe in 2024
| birth_date  = January 1, 1990
| birth_place = Dhaka, Bangladesh
| nationality = Bangladeshi
| occupation  = Entrepreneur
| years_active= 2010–present
| known_for  = CEO of Example Corp
| website    = https://example.com
}}
</pre>
This infobox appears on the **right side**, with a border and light background. No JavaScript or Lua needed.
</noinclude>

Latest revision as of 19:22, 27 July 2025

Your wiki got a version of Template:Documentation that is only relevant to Templates Wiki! Click here to revert it. For a documentation template you can use on your wiki, see Template:Documentation (copy) on Templates Wiki.
Template information, documentation, and installation instructions.
Expand the below text for usage and other information.

Template Documentation:
Note: The template above might be broken without the parameters; this is normal.
View, edit, or check the history of this documentation. (How does this work?)
Editors can experiment with this template's sandbox and testcases.
Description
A template for people articles.
Syntax
Add {{Infobox person|parameters}} at the top of the page with parameters as shown below.

Usage

{{Infobox person
|name          =
|image         =
|gender        =
|age           =
|birth_name    =
|birth_date    =
|birth_place   =
|Patents       =
|Relatives     =
|nationality   =
|other_names   =
|occupation    =
|years_active  =
|known_for     =
|notable_works =
|home_town     =
|height        =
|weight        =
|hair          =
|eyes          =
|website       =
}}

Preview


Click here to refresh the preview


{{Infobox person
|name          = Some Name
|image         = Placeholder person.png
|caption       = Some Name placeholder
|gender        = Female
|age           = 29
|birth_name    = Some Other Name
|birth_date    = 1 December 1988
|birth_place   = Wikipedia
|death_date    = 4 December 2017
|death_place   = Fandom
|nationality   = Wikian
|other_names   = Some Pseudonym
|occupation    = Wiki writer
|years_active  = 2005 - 2017
|known_for     = Editing templates
|notable_works = Infoboxes
|home_town     = Internet
|height        = 5'7"
|weight        = 160 lbs.
|hair          = Brown
|eyes          = Blue
|website       = www.example.com
}}

Installation Instructions
Export this template, then import to install it.
Use edit summary: Copied from [[w:c:templates:Template:Infobox person]] to properly attribute this template's editors.

The above message will be enough for most cases; if there are additional instructions, you can see them below.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.