Template:Infobox person: Difference between revisions
From NSPedia
Created page with "<table class="infobox" style="float:right; width:300px; margin:0 0 1em 1em; border:1px solid #aaa; border-collapse:collapse; background:#fff;"> <tr> <th colspan="2" style="font-size:125%; padding:8px; background:#eee;"> {{{name|{{PAGENAME}}}}} </th> </tr> {{#if:{{{image|}}}| <tr> <td colspan="2" style="text-align:center; padding:8px;"> [[File:{{{image}}}|250px]] </td> </tr> }} {{#if:{{{born|}}}| <tr> <th style="text-align:left; padding:5px;">Born</th> <td style="paddin..." |
No edit summary |
||
| (13 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<table | <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; | |||
"> | |||
<!-- NAME --> | |||
<tr> | <tr> | ||
<th colspan="2" style="font-size:125%; | <th colspan="2" style=" | ||
text-align:center; | |||
font-size:125%; | |||
font-weight:bold; | |||
padding:6px; | |||
"> | |||
{{{name|{{PAGENAME}}}}} | {{{name|{{PAGENAME}}}}} | ||
</th> | </th> | ||
</tr> | </tr> | ||
{{#if:{{{ | <!-- OPTIONAL SUBTITLE --> | ||
{{#if:{{{subtitle|}}}| | |||
<tr> | <tr> | ||
<td colspan="2" style="text-align:center; padding: | <td colspan="2" style=" | ||
text-align:center; | |||
font-weight:bold; | |||
padding:2px 6px; | |||
"> | |||
{{{subtitle}}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if:{{{ | <!-- OPTIONAL IMAGE --> | ||
{{#if:{{{image|}}}| | |||
<tr> | <tr> | ||
< | <td colspan="2" style=" | ||
< | text-align:center; | ||
padding:8px; | |||
"> | |||
[[File:{{{image}}}|{{{image_size|250px}}}]] | |||
{{#if:{{{caption|}}}|<br><small>{{{caption}}}</small>}} | |||
</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 | |||
}} | }} | ||
}} | }} | ||
</ | </pre> | ||
Add as many Infobox sections and Infobox rows as needed. | |||
[[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.
