Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table style="
<includeonly><table style="
float:right;
float:right;
clear:right;
clear:right;
Line 24: 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;
font-weight:bold;
padding:2px 6px;
">
">
[[File:{{{image}}}|250px]]
{{{subtitle}}}
</td>
</td>
</tr>
</tr>
}}


<!-- OFFICE / TITLE -->
<!-- OPTIONAL IMAGE -->
{{#if:{{{image|}}}|
<tr>
<tr>
<th colspan="2" style="
<td colspan="2" style="
text-align:center;
text-align:center;
background:#dfe1f2;
padding:8px;
font-weight:bold;
font-size:110%;
padding:3px;
">
">
{{{office}}}
[[File:{{{image}}}|{{{image_size|250px}}}]]
</th>
{{#if:{{{caption|}}}|<br><small>{{{caption}}}</small>}}
</td>
</tr>
</tr>
}}
<!-- SECTIONS AND ROWS -->
{{{content|}}}
</table></includeonly><noinclude>
== Infobox person ==


<!-- IN OFFICE -->
A flexible infobox for people.
<tr>
 
<th style="
=== Usage ===
text-align:left;
vertical-align:top;
padding:4px 8px;
white-space:nowrap;
">
In office
</th>
<td style="
vertical-align:top;
padding:4px 8px;
">
{{{term_start}}} – {{{term_end}}}
</td>
</tr>


<!-- PREDECESSOR -->
<pre>
<tr>
{{Infobox person
<th style="
| name =
text-align:left;
| subtitle =
vertical-align:top;
| image =
padding:4px 8px;
| image_size = 250px
white-space:nowrap;
| caption =
">
Preceded by
</th>
<td style="
vertical-align:top;
padding:4px 8px;
">
{{{predecessor}}}
</td>
</tr>


<!-- SUCCESSOR -->
| content =
<tr>
<th style="
text-align:left;
vertical-align:top;
padding:4px 8px;
white-space:nowrap;
">
Succeeded by
</th>
<td style="
vertical-align:top;
padding:4px 8px;
">
{{{successor}}}
</td>
</tr>


<!-- PERSONAL DETAILS -->
{{Infobox section|Section title}}
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-size:110%;
padding:3px;
">
Personal details
</th>
</tr>


<!-- BORN -->
{{Infobox row
<tr>
| label = Label
<th style="
| data = Information
text-align:left;
}}
vertical-align:top;
padding:4px 8px;
white-space:nowrap;
">
Born
</th>
<td style="
vertical-align:top;
padding:4px 8px;
">
{{{born}}}
</td>
</tr>


<!-- OCCUPATION -->
}}
<tr>
</pre>
<th style="
text-align:left;
vertical-align:top;
padding:4px 8px;
white-space:nowrap;
">
Occupation
</th>
<td style="
vertical-align:top;
padding:4px 8px;
">
{{{occupation}}}
</td>
</tr>


<!-- NATIONALITY -->
Add as many Infobox sections and Infobox rows as needed.
<tr>
<th style="
text-align:left;
vertical-align:top;
padding:4px 8px;
white-space:nowrap;
">
Nationality
</th>
<td style="
vertical-align:top;
padding:4px 8px;
">
{{{nationality}}}
</td>
</tr>


</table>
[[Category:Infobox templates]]
</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.