Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
No edit summary
 
(6 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 25: Line 24:
</tr>
</tr>


<!-- IMAGE -->
<!-- OPTIONAL SUBTITLE -->
{{#if:{{{subtitle|}}}|
<tr>
<tr>
<td colspan="2" style="text-align:center;padding:8px;">
<td colspan="2" style="
[[File:{{{image|}}}|250px]]
<br>
<small>{{{caption|}}}</small>
</td>
</tr>
 
 
<!-- OFFICE -->
<tr>
<th colspan="2" style="
text-align:center;
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;">
{{{term_label|In office}}}
</th>
<td style="vertical-align:top;padding:4px 8px;">
{{{term_start|}}} – {{{term_end|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{vice_label|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;">
{{{deputy_label|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;">
{{{predecessor_label|Preceded by}}}
</th>
<td style="vertical-align:top;padding:4px 8px;">
{{{predecessor|}}}
</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="
{{{successor_label|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_section_label|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_label|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_label|Died}}}
</th>
<td style="vertical-align:top;padding:4px 8px;">
{{{died|}}}<br>
{{{death_place|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{resting_place_label|Resting place}}}
</th>
<td style="vertical-align:top;padding:4px 8px;">
{{{resting_place|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{nationality_label|Nationality}}}
</th>
<td style="vertical-align:top;padding:4px 8px;">
{{{nationality|}}}
</td>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{citizenship_label|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;">
{{{party_label|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_parties_label|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_label|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_label|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_label|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_label|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_label|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_section_label|Education}}}
</th>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{education_label|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_label|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_section_label|Career}}}
</th>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{occupation_label|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_label|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_label|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_label|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_label|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_section_label|Military service}}}
</th>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{allegiance_label|Allegiance}}}
</th>
<td style="vertical-align:top;padding:4px 8px;">
{{{allegiance|}}}
</td>
</tr>


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


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


<tr>
=== Usage ===
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{rank_label|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_label|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_label|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_label|Battles / wars}}}
</th>
<td style="vertical-align:top;padding:4px 8px;">
{{{battles|}}}
</td>
</tr>
 
 
<!-- HONOURS -->
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-size:110%;
padding:3px;
">
{{{honours_section_label|Honours and awards}}}
</th>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{awards_label|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_label|Honours}}}
</th>
<td style="vertical-align:top;padding:4px 8px;">
{{{honours|}}}
</td>
</tr>
 
 
<!-- OTHER -->
<tr>
<th colspan="2" style="
text-align:center;
background:#dfe1f2;
font-weight:bold;
font-size:110%;
padding:3px;
">
{{{other_section_label|Other information}}}
</th>
</tr>
 
<tr>
<th style="text-align:left;vertical-align:top;padding:4px 8px;">
{{{religion_label|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_label|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_label|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_label|Signature}}}
</th>
<td style="vertical-align:top;padding:4px 8px;text-align:center;">
[[File:{{{signature|}}}|150px]]
</td>
</tr>
 
</table>
</includeonly>
 
<noinclude>
 
== How to use ==
 
Copy this into an article:


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


| office =
| content =
| term_label =
| term_start =
| term_end =


| vice_label =
{{Infobox section|Section title}}
| vice_president =


| deputy_label =
{{Infobox row
| deputy =
| label = Label
 
| data = Information
| predecessor_label =
}}
| predecessor =
 
| successor_label =
| successor =
 
| personal_section_label = Personal details
 
| born_label =
| birth_name =
| born =
| birth_place =
 
| died_label =
| died =
| death_place =
 
| resting_place_label =
| resting_place =
 
| nationality_label =
| nationality =
 
| citizenship_label =
| citizenship =
 
| party_label =
| party =
 
| other_parties_label =
| other_parties =
 
| spouse_label =
| spouse =
 
| partner_label =
| partner =
 
| children_label =
| children =
 
| parents_label =
| parents =
 
| relatives_label =
| relatives =


| education_section_label = Education
| education_label =
| education =
| alma_mater_label =
| alma_mater =
| career_section_label = Career
| occupation_label =
| occupation =
| profession_label =
| profession =
| years_active_label =
| years_active =
| known_for_label =
| known_for =
| employer_label =
| employer =
| military_section_label = Military service
| allegiance_label =
| allegiance =
| branch_label =
| branch =
| service_years_label =
| service_years =
| rank_label =
| rank =
| unit_label =
| unit =
| commands_label =
| commands =
| battles_label =
| battles =
| honours_section_label = Honours and awards
| awards_label =
| awards =
| honours_label =
| honours =
| other_section_label = Other information
| religion_label =
| religion =
| residence_label =
| residence =
| website_label =
| website =
| signature_label =
| 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.