Template:Series bar: Difference between revisions

From Shifti
Jump to navigation Jump to search
adding an optional "first" field, as requested
adding "first" to the documentation
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}}}'''{{#if:{{{first|}}}|<br/><span style="font-size:small;">(First: {{{first}}})</span>}}
|width="40%" |'''{{{series|This story is part of a series}}}'''{{#if:{{{first|}}}|<br/><span style="font-size:x-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 39: Line 39:
|width="30%" |<span style="font-size:x-small;">Succeeded&nbsp;by:</span><br/>'''[[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]'''
|width="30%" |<span style="font-size:x-small;">Succeeded&nbsp;by:</span><br/>'''[[User:Joe Bloe/Magic Cheese 2: Electric Boogaloo|Electric Boogaloo]]'''
|}
|}
There's also an optional "first" parameter you can use to insert a link for jumping back to the first story in the series, in case readers jump in in the middle. Alternately, you can provide a link in the "series" parameter for this purpose.
<pre>
{{series bar
|series= [[User:Joe Bloe/The Magic Cheese|The Magic Cheese Saga]]
|first= [[User:Joe Bloe/The Magic Cheese|The Magic Cheese]]
}}
</pre>
results in:
{| style="margin:0.5em auto; border: 1px #aaa; border-style: solid none;"
|- style="text-align:center;"
|width="30%" |<span style="font-size:x-small;">Preceded&nbsp;by:</span><br/>'''None'''
|width="40%" |'''[[User:Joe Bloe/The Magic Cheese|The Magic Cheese Saga]]'''<br/><span style="font-size:x-small;">(First: {[[User:Joe Bloe/The Magic Cheese|The Magic Cheese]])</span>
|width="30%" |<span style="font-size:x-small;">Succeeded&nbsp;by:</span><br/>'''None'''
|}
</noinclude>
</noinclude>

Revision as of 18:58, 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

There's also an optional "first" parameter you can use to insert a link for jumping back to the first story in the series, in case readers jump in in the middle. Alternately, you can provide a link in the "series" parameter for this purpose.


{{series bar
|series= [[User:Joe Bloe/The Magic Cheese|The Magic Cheese Saga]]
|first= [[User:Joe Bloe/The Magic Cheese|The Magic Cheese]]
}}

results in:

Preceded by:
None
The Magic Cheese Saga
(First: {The Magic Cheese)
Succeeded by:
None