Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
No edit summary
 
(9 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 12: Line 12:
">
">


<!-- NAME -->
<tr>
<tr>
<th colspan="2" style="
<th colspan="2" style="
Line 18: Line 19:
font-weight:bold;
font-weight:bold;
padding:6px;
padding:6px;
background:#eaecf0;
">
">
{{{name|{{PAGENAME}}}}}
{{{name|{{PAGENAME}}}}}
Line 24: Line 24:
</tr>
</tr>


<!-- 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>
}}


<!-- OPTIONAL IMAGE -->
{{#if:{{{image|}}}|
<tr>
<tr>
<th scope="row" style="
<td colspan="2" style="
text-align:left;
text-align:center;
vertical-align:top;
padding:8px;
white-space:nowrap;
padding:4px 8px;
font-weight:bold;
">
Born
</th>
<td style="
vertical-align:top;
padding:4px 8px;
">
">
{{{born}}}
[[File:{{{image}}}|{{{image_size|250px}}}]]
{{#if:{{{caption|}}}|<br><small>{{{caption}}}</small>}}
</td>
</td>
</tr>
</tr>
}}
<!-- SECTIONS AND ROWS -->
{{{content|}}}
</table></includeonly><noinclude>
== Infobox person ==
A flexible infobox for people.
=== Usage ===
<pre>
{{Infobox person
| name =
| subtitle =
| image =
| image_size = 250px
| caption =
| content =
{{Infobox section|Section title}}
{{Infobox row
| label = Label
| data = Information
}}


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


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


</table>
[[Category:Infobox templates]]
</noinclude>

Latest revision as of 03: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.