Template:Series bar: Difference between revisions

From Shifti
Jump to navigation Jump to search
mNo edit summary
adding an optional "first" field, as requested
Line 2: Line 2:
|- style="text-align:center;"  
|- style="text-align:center;"  
|width="30%" |<span style="font-size:x-small;">Preceded&nbsp;by:</span><br/>'''{{{previous|None}}}'''
|width="30%" |<span style="font-size:x-small;">Preceded&nbsp;by:</span><br/>'''{{{previous|None}}}'''
|width="40%" |'''{{{series|This story is part of a series}}}'''
|width="40%" |'''{{{series|This story is part of a series}}}'''{{#if:{{{first|}}}|<br/><span style="font-size:small;">(First: {{{first}}})</span>}}
|width="30%" |<span style="font-size:x-small;">Succeeded&nbsp;by:</span><br/>'''{{{next|None}}}'''
|width="30%" |<span style="font-size:x-small;">Succeeded&nbsp;by:</span><br/>'''{{{next|None}}}'''
|}<noinclude>
|}<noinclude>
Line 28: Line 28:


<pre>
<pre>
{{series bar| next= [[[[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]}}
{{series bar| next= [[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]}}
</pre>
</pre>



Revision as of 18:52, 24 January 2008

Preceded by:
None
This story is part of a series{{#if:|
(First: {{{first}}})}}
Succeeded by:
None

This template is meant to provide a standard, tidy way of linking together stories that form a series that's meant to be read in a particular order. It takes three parameters, all optional: series, previous, and next. "series" is very freeform; it's the text that's inserted in the middle of the template (defaults to "This story is part of a series"). "previous" and "next" are meant to be links to the previous and next stories. For example, the following template call:

{{series bar
|previous= [[User:Joe Bloe/Cheesy Menace|Cheesy Menace]]
|series= The Magic Cheese Saga
|next= [[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]
}}

results in:

Preceded by:
Cheesy Menace
The Magic Cheese Saga Succeeded by:
Electric Boogaloo

Omitting parameters results in their defaults being used. For example, the following template call:

{{series bar| next= [[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]}}

Results in:

Preceded by:
None
This story is part of a series Succeeded by:
Electric Boogaloo