Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
Tag: Reverted
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table style="
<includeonly><table style="
float:right;
float:right;
width:340px;
clear:right;
margin:0 0 1.2em 1.5em;
width:22em;
border:1px solid #b7b7b7;
margin:0 0 1em 1em;
border-collapse:collapse;
border:1px solid #a2a9b1;
background:#fff;
border-spacing:3px;
font-size:95%;
background:#f8f9fa;
line-height:1.45;
color:#202122;
font-size:88%;
line-height:1.5;
">
">


<!-- NAME -->
<tr>
<tr>
<th colspan="2" style="
<th colspan="2" style="
padding:14px 12px;
text-align:center;
background:#f3f3f3;
font-size:125%;
border-bottom:1px solid #c7c7c7;
font-size:130%;
font-weight:bold;
font-weight:bold;
text-align:center;
padding:6px;
color:#000;
">
">
{{{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:16px 12px;
font-weight:bold;
border-bottom:1px solid #ddd;
padding:2px 6px;
">
">
[[File:{{{image}}}|250px]]
{{{subtitle}}}
</td>
</td>
</tr>
</tr>
}}


<!-- OPTIONAL IMAGE -->
{{#if:{{{image|}}}|
<tr>
<tr>
<th style="
<td colspan="2" style="
width:38%;
text-align:center;
padding:7px 10px;
padding:8px;
text-align:left;
vertical-align:top;
font-weight:bold;
border-bottom:1px solid #eee;
">
Born
</th>
<td style="
padding:7px 10px;
vertical-align:top;
border-bottom:1px solid #eee;
">
">
{{{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 style="
</pre>
padding:7px 10px;
text-align:left;
vertical-align:top;
font-weight:bold;
border-bottom:1px solid #eee;
">
Occupation
</th>
<td style="
padding:7px 10px;
vertical-align:top;
border-bottom:1px solid #eee;
">
{{{occupation}}}
</td>
</tr>


<tr>
Add as many Infobox sections and Infobox rows as needed.
<th style="
padding:7px 10px;
text-align:left;
vertical-align:top;
font-weight:bold;
">
Nationality
</th>
<td style="
padding:7px 10px;
vertical-align:top;
">
{{{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.