Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
No edit summary
Line 1: Line 1:
<!-- Template:Infobox person -->
<includeonly>
<includeonly>
<table style="
<table style="
Line 13: Line 15:
">
">


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


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


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


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


Line 60: Line 53:


<noinclude>
<noinclude>
== Infobox person ==
== Infobox person ==


A flexible Wikipedia-style infobox.
A flexible infobox.
 
Unlike numbered label/data templates, this version allows an unlimited
number of rows and sections.


=== Example ===
=== Example ===
Line 88: Line 77:
| label = Vice President
| label = Vice President
| data = [[Joe Example]]
| data = [[Joe Example]]
}}
{{Infobox row
| label = Preceded by
| data = [[Cool Guy]]
}}
{{Infobox row
| label = Succeeded by
| data = [[Less Than Cool Guy]]
}}
}}


Line 109: Line 88:
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 03:01, 6 September 2026



Infobox person

A flexible infobox.

Example

{{Infobox person
| name = John Smith
| image = John Smith.jpg
| caption = Smith in 1940

| content =

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

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

{{Infobox row
| label = Vice President
| data = [[Joe Example]]
}}

{{Infobox section|Personal details}}

{{Infobox row
| label = Born
| data = 1 January 1890
}}

}}