Test: Difference between revisions

From NSPedia
No edit summary
No edit summary
Line 1: Line 1:
<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>
<th colspan="2" style="
text-align:center;
font-size:125%;
font-weight:bold;
padding:6px;
">
{{{name|{{PAGENAME}}}}}
</th>
</tr>
<!-- SUBTITLE -->
{{#if:{{{subtitle|}}}|
<tr>
<td colspan="2" style="
text-align:center;
font-weight:bold;
padding:2px 6px;
">
{{{subtitle}}}
</td>
</tr>
}}
<!-- IMAGE -->
{{#if:{{{image|}}}|
<tr>
<td colspan="2" style="
text-align:center;
padding:8px;
">
[[File:{{{image}}}|{{{image_size|250px}}}]]
{{#if:{{{caption|}}}|
<br><small>{{{caption}}}</small>
}}
</td>
</tr>
}}
<!-- ALL CUSTOM SECTIONS AND ROWS -->
{{{content|}}}
</table>
</includeonly>
<noinclude>
== Infobox person ==
A flexible Wikipedia-style infobox.
Unlike numbered label/data templates, this version allows an unlimited
number of rows and sections.
=== Example ===
<pre>
{{Infobox person
{{Infobox person
| name = John Smith
| name = John Smith
Line 36: Line 108:


}}
}}
</pre>
</noinclude>

Revision as of 02:56, 6 September 2026



Infobox person

A flexible Wikipedia-style infobox.

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

Example

{{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 row
| label = Preceded by
| data = [[Cool Guy]]
}}

{{Infobox row
| label = Succeeded by
| data = [[Less Than Cool Guy]]
}}

{{Infobox section|Personal details}}

{{Infobox row
| label = Born
| data = 1 January 1890
}}

}}