Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
No edit summary
Line 1: Line 1:
<!-- Template:Infobox person -->
<!-- NAME -->
 
<includeonly>
<table style="
float:right;
clear:right;
width:22em;
margin:0 0 1em 1em;
border:1px solid #a2a9b1;
border-spacing:3px;
background:#f8f9fa;
color:#202122;
font-size:88%;
line-height:1.5;
">
 
<tr>
<tr>
<th colspan="2" style="
<th colspan="2" style="
Line 26: Line 11:
</tr>
</tr>


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


<!-- IMAGE - ONLY APPEARS IF USED -->
{{#if:{{{image|}}}|
<tr>
<tr>
<td colspan="2" style="
<td colspan="2" style="
Line 41: Line 31:
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>
}}


<!-- CUSTOM CONTENT -->
{{{content|}}}
{{{content|}}}
</table>
</includeonly>
<noinclude>
== Infobox person ==
A flexible infobox.
=== Example ===
<pre>
{{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
}}
}}
</pre>
</noinclude>

Revision as of 03:06, 6 September 2026

Infobox person