Tolkien Gateway

Template:Seq

(Difference between revisions)
(Fin)
m (Fixed mistake and added <small>)
Line 1: Line 1:
 
<includeonly><tr style="text-align: center;">
 
<includeonly><tr style="text-align: center;">
{{t|1=<td width="30%" {{t|1=rowspan="{{{prow}}}"|1{{{prow|}}}=}}>{{#if:{{{pvac|}}}|'''{{{pvac|}}}'''|Preceded by:}}<br/>{{#if:{{{pvac|}}}|{{{prev}}}|'''{{{prev}}}'''}}</td>|1{{{prev|}}}=}}
+
{{t|1=<td width="30%" {{t|1=rowspan="{{{prow}}}"|1{{{prow|}}}=}}>{{#if:{{{pvac|}}}|'''{{{pvac|}}}'''|Preceded by:}}<br/>{{#if:{{{pvac|}}}|<small>{{{prev}}}</small>|'''{{{prev}}}'''}}</td>|1{{{prev|}}}=}}
 
<td width="40%">{{t|1='''{{{list}}}'''|1{{{list|}}}=}}{{t|1=<br/>{{{dates}}}|1{{{dates|}}}=}}</td>
 
<td width="40%">{{t|1='''{{{list}}}'''|1{{{list|}}}=}}{{t|1=<br/>{{{dates}}}|1{{{dates|}}}=}}</td>
{{t|1=<td width="30%" {{t|1=rowspan="{{{nrow}}}"|1{{{nrow|}}}=}}>{{#if:{{{nvac|}}}|'''{{{nvac|}}}'''|Followed by:}}<br/>{{#if:{{{pvac|}}}|{{{next}}}|'''{{{next}}}'''}}</td>|1{{{next|}}}=}}</tr></includeonly>
+
{{t|1=<td width="30%" {{t|1=rowspan="{{{nrow}}}"|1{{{nrow|}}}=}}>{{#if:{{{nvac|}}}|'''{{{nvac|}}}'''|Followed by:}}<br/>{{#if:{{{nvac|}}}|<small>{{{next}}}</small>|'''{{{next}}}'''}}</td>|1{{{next|}}}=}}</tr></includeonly>
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==

Revision as of 12:06, 2 July 2010


Usage

This template is a more advanced version of Template:Sequence, which this template is designed to eventually replace. This template cannot be used by itself and must be combined with Template:Seq-start and Template:Seq-end (the use of Template:Seq-head is optional). Usage is as follows:

{{seq-start}}
{{seq
| prow=
| pvac=
| prev=
| list=
| dates=
| next=
| nvac=
| nrow=
}}
{{seq-end}}

Short usage:

{{seq-start}}
{{seq
| prev=
| list=
| dates=
| next=
}}
{{seq-end}}

Where:
prow, defines the number of separate uses of {{seq}} you would like prev to span (an example at Isildur where prow=3 for Elendil). If not used, leave blank or omit.
pvac, used for replacing "Preceded by:" with something else, usually "Vacant" (example at Aragorn II). If not used, leave blank or omit.
prev, the previous title holder. (Leave blank, or omit, if you're using prow elsewhere.)
list, the title. If not used, leave blank or omit (not that you would want to).
dates, the dates the title was held. If not used, leave blank or omit.
next, the following title-holder. (Leave blank, or omit, if you're using nrow elsewhere.)
nvac, used for replacing "Followed by:" with something else, usually "Vacant" (example at Isildur). If not used, leave blank or omit.
nrow, as with prow, used for when the next spans multiple titles (example at Aragorn II where nrow=4 for Eldarion). If not used, leave blank or omit.