Template:Series: Difference between revisions

From NSPedia
Created page with "<includeonly> <table style=" float:right; clear:right; width:18em; margin:0 0 1em 1em; border:1px solid #a2a9b1; border-spacing:0; background:#f8f9fa; color:#202122; font-size:88%; line-height:1.5; text-align:center; "> <!-- TOP HEADING --> <tr> <td style=" padding:6px 8px 2px 8px; font-size:90%; "> This article is part of a series about </td> </tr> <!-- SERIES TITLE --> <tr> <th style=" padding:2px 8px 7px 8px; font-size:125%; font-weight:bold; "> {{{title|{{{1|Series..."
 
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<table style="
<table class="vertical-navbox" style="
float:right;
float:right;
clear:right;
clear:right;
Line 10: Line 10:
color:#202122;
color:#202122;
font-size:88%;
font-size:88%;
line-height:1.5;
line-height:1.4;
text-align:center;
text-align:center;
">
">


<!-- TOP HEADING -->
<!-- TITLE BAR -->
<tr>
<tr>
<td style="
<th style="
padding:6px 8px 2px 8px;
background:{{{color|#dfe1f2}}};
font-size:90%;
padding:5px 7px;
font-weight:normal;
">
">
<div style="font-size:90%;">
This article is part of a series about
This article is part of a series about
</td>
</div>
</tr>


<!-- SERIES TITLE -->
<div style="
<tr>
<th style="
padding:2px 8px 7px 8px;
font-size:125%;
font-size:125%;
font-weight:bold;
font-weight:bold;
margin-top:1px;
">
">
{{{title|{{{1|Series}}}}}}
{{{title|{{{1|Series}}}}}}
</div>
</th>
</th>
</tr>
</tr>
Line 39: Line 39:
<tr>
<tr>
<td style="
<td style="
padding:4px 8px 8px 8px;
padding:7px 6px 5px 6px;
">
">
[[File:{{{image}}}|{{{image_size|100px}}}]]
[[File:{{{image}}}|{{{image_size|100px}}}]]
{{#if:{{{caption|}}}|<br><small>{{{caption}}}</small>}}
</td>
</td>
</tr>
</tr>
}}
}}


<!-- SERIES CONTENT -->
<!-- OPTIONAL TOP TEXT -->
{{#if:{{{top|}}}|
<tr>
<tr>
<td style="
<td style="
padding:0;
padding:3px 6px 6px 6px;
font-weight:bold;
">
">
{{{top}}}
</td>
</tr>
}}
<!-- CONTENT -->
<tr>
<td style="padding:0;">
<table style="
<table style="
width:100%;
width:100%;
border-spacing:0;
border-spacing:0;
font-size:100%;
font-size:100%;
text-align:center;
">
">
{{{content|}}}
{{{content|}}}
Line 67: Line 77:
<td style="
<td style="
border-top:1px solid #a2a9b1;
border-top:1px solid #a2a9b1;
padding:5px 8px;
padding:4px 6px;
font-size:90%;
font-size:90%;
">
">
Line 81: Line 91:
== Series ==
== Series ==


Creates a navigation sidebar for articles belonging to a series.
Creates a Wikipedia-style article-series sidebar.


=== Basic usage ===
=== Example ===


<pre>
<pre>
{{Series
{{Series
| title = Example topic
| title = Exampleland
| image =
| color = #dfe1f2
| image = Exampleland.svg
| image_size = 90px
 
| content =
| content =


{{Series section|History}}
{{Series section|History}}
{{Series row|[[Early history]]}}
{{Series row|[[Early history]]}}
{{Series row|[[Modern history]]}}
{{Series row|[[Modern history]]}}


{{Series section|Government}}
{{Series section|Government}}
{{Series row|[[Government of Exampleland]]}}
{{Series row|[[Politics of Exampleland]]}}
{{Series row|[[Elections in Exampleland]]}}


{{Series row|[[Government]]}}
| footer = [[Template:Exampleland series|v]] · [[Template talk:Exampleland series|t]] · [{{fullurl:Template:Exampleland series|action=edit}} e]
{{Series row|[[Politics]]}}
{{Series row|[[Elections]]}}
 
}}
}}
</pre>
</pre>

Revision as of 15:48, 6 September 2026


Series

Creates a Wikipedia-style article-series sidebar.

Example

{{Series
| title = Exampleland
| color = #dfe1f2
| image = Exampleland.svg
| image_size = 90px

| content =

{{Series section|History}}
{{Series row|[[Early history]]}}
{{Series row|[[Modern history]]}}

{{Series section|Government}}
{{Series row|[[Government of Exampleland]]}}
{{Series row|[[Politics of Exampleland]]}}
{{Series row|[[Elections in Exampleland]]}}

| footer = [[Template:Exampleland series|v]] · [[Template talk:Exampleland series|t]] · [{{fullurl:Template:Exampleland series|action=edit}} e]
}}