Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox person: Difference between revisions

Template page
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<table role="presentation" style="
<div style="float:right; clear:right; margin:0.5em 0 1em 1em; width:320px; border:1px solid rgba(255,255,255,0.15); border-radius:12px; background:rgba(255,255,255,0.02); padding:0.8em;">
  float:right; clear:right;
   <div style="text-align:center; font-size:120%; font-weight:700; margin-bottom:0.6em;">
  margin:0.5em 0 1em 1em;
    {{{name|{{PAGENAME}}}}}
  width:320px;
   </div>
  border:1px solid rgba(255,255,255,0.15);
  border-radius:12px;
  background:rgba(255,255,255,0.02);
  border-collapse:separate;
   border-spacing:0;
  overflow:hidden;
  font-size:95%;
  line-height:1.35;
">
   <tbody>


    <!-- Title (Wikipedia-style header row, inside the box) -->
  <div style="text-align:center; margin-bottom:0.8em;">
     <tr>
     [[File:{{{image|NoLogo.svg}}}|{{{image_size|220px}}}|alt={{{image_alt|Portrait}}}]]
      <th colspan="2" style="
    <div style="font-size:90%; opacity:0.85; margin-top:0.3em;">{{{image_caption|}}}</div>
        padding:0.6em 0.7em;
  </div>
        text-align:center;
        font-size:120%;
        font-weight:700;
      ">
        {{{name|{{PAGENAME}}}}}
      </th>
    </tr>


    <!-- Image + caption (must be inside tbody) -->
  {| style="width:100%; border-collapse:collapse; font-size:95%;"
    {{#if:{{{image|}}}|
  |-
    <tr>
  | style="padding:0.25em 0; opacity:0.85; width:45%;" | '''Birth Name'''
      <td colspan="2" style="padding:0.4em 0.7em 0.7em; text-align:center;">
  | style="padding:0.25em 0;" | {{{birth_name|Unknown}}}
        <div style="display:inline-block; text-align:center; max-width:100%; margin:0 auto;">
  |-
          <div>[[File:{{{image}}}|{{{image_size|220px}}}|alt={{{image_alt|Portrait}}}]]</div>
  | style="padding:0.25em 0; opacity:0.85;" | '''Other Names'''
          {{#if:{{{image_caption|}}}|
  | style="padding:0.25em 0;" | {{{other_names|None listed}}}
            <div style="margin-top:0.35em; font-size:90%; opacity:0.85; text-align:center;">
  |-
              {{{image_caption}}}
  | style="padding:0.25em 0; opacity:0.85;" | '''Pronouns'''
            </div>
  | style="padding:0.25em 0;" | {{{pronouns|Unknown}}}
          }}
  |-
        </div>
  | style="padding:0.25em 0; opacity:0.85;" | '''Born'''
      </td>
  | style="padding:0.25em 0;" | {{{born|Unknown}}}
    </tr>
  |-
    }}
  | style="padding:0.25em 0; opacity:0.85;" | '''Nationality'''
 
  | style="padding:0.25em 0;" | {{{nationality|Unknown}}}
    <!-- Rows -->
  |-
    {{#if:{{{birth_name|}}}|
  | style="padding:0.25em 0; opacity:0.85;" | '''Residence'''
    <tr>
  | style="padding:0.25em 0;" | {{{residence|Unknown}}}
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Birth name</th>
  |-
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{birth_name}}}</td>
  | style="padding:0.25em 0; opacity:0.85;" | '''Education'''
    </tr>
  | style="padding:0.25em 0;" | {{{education|Unknown}}}
    }}
  |-
 
  | style="padding:0.25em 0; opacity:0.85;" | '''Alma Mater'''
    {{#if:{{{other_names|}}}|
  | style="padding:0.25em 0;" | {{{alma_mater|Unknown}}}
    <tr>
  |-
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Other names</th>
  | style="padding:0.25em 0; opacity:0.85;" | '''Occupation'''
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{other_names}}}</td>
  | style="padding:0.25em 0;" | {{{occupation|Unknown}}}
    </tr>
  |-
    }}
  | style="padding:0.25em 0; opacity:0.85;" | '''Years Active'''
  | style="padding:0.25em 0;" | {{{years_active|Unknown}}}
  |-
  | style="padding:0.25em 0; opacity:0.85;" | '''Known For'''
  | style="padding:0.25em 0;" | {{{known_for|Unknown}}}
  |-
  | style="padding:0.25em 0; opacity:0.85;" | '''Notable Works'''
  | style="padding:0.25em 0;" | {{{notable_works|None listed}}}
  |-
  | style="padding:0.25em 0; opacity:0.85;" | '''Genre'''
  | style="padding:0.25em 0;" | {{{genre|Unknown}}}
  |-
  | style="padding:0.25em 0; opacity:0.85;" | '''Affiliations'''
  | style="padding:0.25em 0;" | {{{affiliations|Unknown}}}
  |-
  | style="padding:0.25em 0; opacity:0.85;" | '''Website'''
  | style="padding:0.25em 0;" | {{{website|None}}}
  |-
  | style="padding:0.25em 0; opacity:0.85;" | '''Notes'''
  | style="padding:0.25em 0;" | {{{notes|}}}
  |}
</div>
</includeonly><noinclude>
{{Documentation}}


    {{#if:{{{pronouns|}}}|
    <tr>
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Pronouns</th>
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{pronouns}}}</td>
    </tr>
    }}
    {{#if:{{{born|}}}|
    <tr>
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Born</th>
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{born}}}</td>
    </tr>
    }}
    {{#if:{{{nationality|}}}|
    <tr>
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Nationality</th>
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{nationality}}}</td>
    </tr>
    }}
    {{#if:{{{occupation|}}}|
    <tr>
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Occupation</th>
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{occupation}}}</td>
    </tr>
    }}
    {{#if:{{{known_for|}}}|
    <tr>
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Known for</th>
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{known_for}}}</td>
    </tr>
    }}
    {{#if:{{{notable_works|}}}|
    <tr>
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Notable works</th>
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{notable_works}}}</td>
    </tr>
    }}
    {{#if:{{{website|}}}|
    <tr>
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Website</th>
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{website}}}</td>
    </tr>
    }}
    {{#if:{{{notes|}}}|
    <tr>
      <th scope="row" style="width:35%; padding:0.45em 0.6em; text-align:left; vertical-align:top; font-weight:600; opacity:0.85; white-space:nowrap;">Notes</th>
      <td style="padding:0.45em 0.6em; vertical-align:top; overflow-wrap:anywhere;">{{{notes}}}</td>
    </tr>
    }}
  </tbody>
</table>
</includeonly><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
{{Infobox person
{{Infobox Person
| name =
| name =
| image =
| image =
Line 130: Line 77:
| born =
| born =
| nationality =
| nationality =
| residence =
| education =
| alma_mater =
| occupation =
| occupation =
| years_active =
| known_for =
| known_for =
| notable_works =
| notable_works =
| genre =
| affiliations =
| website =
| website =
| notes =
| notes =
}}
}}
</pre>
</pre>
== Parameters ==
* '''image''' should be the file name only (example: <code>Portrait.png</code>)
* '''other_names''' can be a comma/semicolon-separated list
* '''website''' can be plain text or a link (example: <code>[https://example.com example.com]</code>)
</noinclude>
</noinclude>

Latest revision as of 04:24, 1 February 2026

Template:Documentation

Usage

{{Infobox Person
| name =
| image =
| image_size = 220px
| image_alt =
| image_caption =
| birth_name =
| other_names =
| pronouns =
| born =
| nationality =
| residence =
| education =
| alma_mater =
| occupation =
| years_active =
| known_for =
| notable_works =
| genre =
| affiliations =
| website =
| notes =
}}

Parameters

  • image should be the file name only (example: Portrait.png)
  • other_names can be a comma/semicolon-separated list
  • website can be plain text or a link (example: example.com)