Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><table style="
<table style="
float:right;
float:right;
clear:right;
clear:right;
Line 13: Line 12:
">
">


<!-- ==================== -->
<!-- NAME -->
<!-- NAME -->
<!-- ==================== -->
<tr>
<tr>
<th colspan="2" style="
<th colspan="2" style="
Line 28: Line 24:
</tr>
</tr>


<!-- IMAGE -->
<!-- OPTIONAL SUBTITLE -->
 
{{#if:{{{subtitle|}}}|
<tr>
<tr>
<td colspan="2" style="
<td colspan="2" style="
text-align:center;
text-align:center;
padding:8px;
">
[[File:{{{image|}}}|250px]]
<br>
<small>{{{caption|}}}</small>
</td>
</tr>
<!-- ==================== -->
<!-- PUBLIC OFFICE -->
<!-- ==================== -->
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-weight:bold;
font-size:110%;
padding:2px 6px;
padding:3px;
">
">
{{{office|Public office}}}
{{{subtitle}}}
</th>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
In office
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{term_start|}}} – {{{term_end|}}}
</td>
</td>
</tr>
</tr>
}}


<!-- OPTIONAL IMAGE -->
{{#if:{{{image|}}}|
<tr>
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
<td colspan="2" style="
Deputy
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{deputy|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Vice President
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{vice_president|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Preceded by
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{predecessor|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Succeeded by
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{successor|}}}
</td>
</tr>
 
 
<!-- ==================== -->
<!-- PERSONAL DETAILS -->
<!-- ==================== -->
 
<tr>
<th colspan="2" style="
text-align:center;
text-align:center;
background:#dfe1f2;
padding:8px;
font-weight:bold;
font-size:110%;
padding:3px;
">
">
Personal details
[[File:{{{image}}}|{{{image_size|250px}}}]]
</th>
{{#if:{{{caption|}}}|<br><small>{{{caption}}}</small>}}
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Born
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{birth_name|}}}<br>
{{{born|}}}<br>
{{{birth_place|}}}
</td>
</td>
</tr>
</tr>
}}


<tr>
<!-- SECTIONS AND ROWS -->
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
{{{content|}}}
Died
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{died|}}}<br>
{{{death_place|}}}
</td>
</tr>


<tr>
</table></includeonly><noinclude>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
== Infobox person ==
Resting place
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{resting_place|}}}
</td>
</tr>


<tr>
A flexible infobox for people.
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Nationality
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{nationality|}}}
</td>
</tr>


<tr>
=== Usage ===
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Citizenship
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{citizenship|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Political party
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{party|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Other affiliations
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{other_parties|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Spouse
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{spouse|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Partner
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{partner|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Children
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{children|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Parents
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{parents|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Relatives
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{relatives|}}}
</td>
</tr>
 
 
<!-- ==================== -->
<!-- EDUCATION -->
<!-- ==================== -->
 
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-size:110%;
padding:3px;
">
Education
</th>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Education
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{education|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Alma mater
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{alma_mater|}}}
</td>
</tr>
 
 
<!-- ==================== -->
<!-- CAREER -->
<!-- ==================== -->
 
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-size:110%;
padding:3px;
">
Career
</th>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Occupation
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{occupation|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Profession
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{profession|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Years active
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{years_active|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Known for
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{known_for|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Employer
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{employer|}}}
</td>
</tr>
 
 
<!-- ==================== -->
<!-- MILITARY SERVICE -->
<!-- ==================== -->
 
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-size:110%;
padding:3px;
">
Military service
</th>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Allegiance
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{allegiance|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Branch
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{branch|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Service years
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{service_years|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Rank
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{rank|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Unit
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{unit|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Commands
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{commands|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Battles / wars
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{battles|}}}
</td>
</tr>
 
 
<!-- ==================== -->
<!-- AWARDS -->
<!-- ==================== -->
 
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-size:110%;
padding:3px;
">
Honours and awards
</th>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Awards
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{awards|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Honours
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{honours|}}}
</td>
</tr>
 
 
<!-- ==================== -->
<!-- OTHER INFORMATION -->
<!-- ==================== -->
 
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-size:110%;
padding:3px;
">
Other information
</th>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Religion
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{religion|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Residence
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{residence|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Website
</th>
<td style="vertical-align:top; padding:4px 8px;">
{{{website|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left; vertical-align:top; padding:4px 8px;">
Signature
</th>
<td style="vertical-align:top; padding:4px 8px; text-align:center;">
[[File:{{{signature|}}}|150px]]
</td>
</tr>
 
</table>
</includeonly>
 
<noinclude>
This template creates a Wikipedia-style infobox for people.
 
Example:


<pre>
<pre>
{{Infobox person
{{Infobox person
| name =
| name =
| subtitle =
| image =
| image =
| image_size = 250px
| caption =
| caption =
| office =
 
| term_start =
| content =
| term_end =
 
| deputy =
{{Infobox section|Section title}}
| vice_president =
 
| predecessor =
{{Infobox row
| successor =
| label = Label
| birth_name =
| data = Information
| born =
}}
| birth_place =
 
| died =
| death_place =
| resting_place =
| nationality =
| citizenship =
| party =
| other_parties =
| spouse =
| partner =
| children =
| parents =
| relatives =
| education =
| alma_mater =
| occupation =
| profession =
| years_active =
| known_for =
| employer =
| allegiance =
| branch =
| service_years =
| rank =
| unit =
| commands =
| battles =
| awards =
| honours =
| religion =
| residence =
| website =
| signature =
}}
}}
</pre>
</pre>
Add as many Infobox sections and Infobox rows as needed.
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 02:10, 6 September 2026

Infobox person

A flexible infobox for people.

Usage

{{Infobox person
| name =
| subtitle =
| image =
| image_size = 250px
| caption =

| content =

{{Infobox section|Section title}}

{{Infobox row
| label = Label
| data = Information
}}

}}

Add as many Infobox sections and Infobox rows as needed.