Template:Infobox person: Difference between revisions

From NSPedia
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly><table style="
<table style="
float:right;
float:right;
clear:right;
clear:right;
Line 25: Line 24:
</tr>
</tr>


<!-- SUBTITLE - ONLY APPEARS IF USED -->
<!-- OPTIONAL SUBTITLE -->
{{#if:{{{subtitle|}}}|
{{#if:{{{subtitle|}}}|
<tr>
<tr>
Line 38: Line 37:
}}
}}


<!-- IMAGE - ONLY APPEARS IF USED -->
<!-- OPTIONAL IMAGE -->
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
<tr>
<tr>
Line 51: Line 50:
}}
}}


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


</table>
</table></includeonly><noinclude>
</includeonly>
 
<noinclude>
 
== Infobox person ==
== Infobox person ==


A flexible Wikipedia-style infobox.
A flexible infobox for people.


Unlike numbered label/data templates, this version allows an unlimited
=== Usage ===
number of rows and sections.
 
=== Example ===


<pre>
<pre>
{{Infobox person
{{Infobox person
| name = John Smith
| name =
| image = John Smith.jpg
| subtitle =
| caption = Smith in 1940
| image =
| image_size = 250px
| caption =


| content =
| content =


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


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


{{Infobox row
| label = Vice President
| data = [[Joe Example]]
}}
{{Infobox row
| label = Preceded by
| data = [[Cool Guy]]
}}
}}
</pre>


{{Infobox row
Add as many Infobox sections and Infobox rows as needed.
| label = Succeeded by
| data = [[Less Than Cool Guy]]
}}
 
{{Infobox section|Personal details}}
 
{{Infobox row
| label = Born
| data = 1 January 1890
}}
 
}}
</pre>


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

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