Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Template:Infobox person -->
<includeonly><table style="
 
<includeonly>
<table style="
float:right;
float:right;
clear:right;
clear:right;
Line 15: Line 12:
">
">


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


<!-- OPTIONAL SUBTITLE -->
{{#if:{{{subtitle|}}}|
<tr>
<tr>
<td colspan="2" style="
<td colspan="2" style="
Line 32: Line 32:
padding:2px 6px;
padding:2px 6px;
">
">
{{{subtitle|}}}
{{{subtitle}}}
</td>
</td>
</tr>
</tr>
}}


<!-- OPTIONAL IMAGE -->
{{#if:{{{image|}}}|
<tr>
<tr>
<td colspan="2" style="
<td colspan="2" style="
Line 41: Line 44:
padding:8px;
padding:8px;
">
">
[[File:{{{image|}}}|{{{image_size|250px}}}]]
[[File:{{{image}}}|{{{image_size|250px}}}]]
<br>
{{#if:{{{caption|}}}|<br><small>{{{caption}}}</small>}}
<small>{{{caption|}}}</small>
</td>
</td>
</tr>
</tr>
}}


<!-- SECTIONS AND ROWS -->
{{{content|}}}
{{{content|}}}


</table>
</table></includeonly><noinclude>
</includeonly>
 
<noinclude>
== Infobox person ==
== Infobox person ==


A flexible infobox.
A flexible infobox for people.


=== Example ===
=== Usage ===


<pre>
<pre>
{{Infobox person
{{Infobox person
| name = John Smith
| name =
| image = John Smith.jpg
| subtitle =
| caption = Smith in 1940
| image =
| image_size = 250px
| caption =


| content =
| content =


{{Infobox section|President of the United States}}
{{Infobox section|Section title}}


{{Infobox row
{{Infobox row
| label = In office
| label = Label
| data = 2 August 1934 – 30 April 1945
| data = Information
}}
}}


{{Infobox row
| label = Vice President
| data = [[Joe Example]]
}}
}}
</pre>


{{Infobox section|Personal details}}
Add as many Infobox sections and Infobox rows as needed.


{{Infobox row
[[Category:Infobox templates]]
| label = Born
| data = 1 January 1890
}}
 
}}
</pre>
</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.