Tolkien Gateway

Template:Seq

(Difference between revisions)
m (Fixed mistake and added <small>)
(Clarified usage)
Line 2: Line 2:
 
{{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|}}}=}}
 
{{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:{{{nvac|}}}|<small>{{{next}}}</small>|'''{{{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>__NOTOC__'''Please read everything, and make sure you understand fully before you use this template.'''
<noinclude>
+
 
==Usage==
 
==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:
+
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]] (see [[Template:Seq-head]], for documentation on the optional header). This template can be repeated '''multiple''' times within <nowiki>{{seq-start}}</nowiki> and <nowiki>{{seq-end}}</nowiki>, (see examples below); this is how to use it:
 
<pre>
 
<pre>
{{seq-start}}
 
 
{{seq
 
{{seq
 
| prow=
 
| prow=
Line 18: Line 16:
 
| nrow=
 
| nrow=
 
}}
 
}}
{{seq-end}}</pre>
+
</pre>
Short usage:
+
Or, with the '''required''' <nowiki>{{seq-start}}</nowiki> and <nowiki>{{seq-end}}</nowiki>:
 
<pre>
 
<pre>
 
{{seq-start}}
 
{{seq-start}}
 
{{seq
 
{{seq
 +
| prow=
 +
| pvac=
 
| prev=
 
| prev=
 
| list=
 
| list=
 
| dates=
 
| dates=
 
| next=
 
| next=
 +
| nvac=
 +
| nrow=
 
}}
 
}}
 
{{seq-end}}</pre>
 
{{seq-end}}</pre>
Line 38: Line 40:
 
'''nvac''', used for replacing "Followed by:" with something else, usually "Vacant" (example at [[Isildur]]). If not used, leave blank or omit.<br/>
 
'''nvac''', used for replacing "Followed by:" with something else, usually "Vacant" (example at [[Isildur]]). If not used, leave blank or omit.<br/>
 
'''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.
 
'''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.
 +
 +
==Examples==
 +
===Example 1: [[Aragorn II|Aragorn]]===
 +
<pre>{{seq-start}}
 +
{{seq-head
 +
| race=gondorian
 +
| house=[[House of Telcontar]]<small><br/>Cadet branch of [[House of Isildur]]</small>
 +
| born=[[March 1]], {{TA|2931}}
 +
| died={{FoA|120}}
 +
}}
 +
{{seq
 +
| prev=[[Arathorn II]]
 +
| list=[[Chieftains of the Dúnedain|Chieftain of the Dúnedain]]
 +
| dates={{TA|2933}} – T.A. 3019
 +
| next=Position abolished
 +
| nvac=None
 +
}}
 +
{{seq
 +
| prev=[[Gandalf]]
 +
| list=Leader of the [[Fellowship of the Ring]]
 +
| dates=[[January 15]] - [[February 16]], {{TA|3019}}
 +
| next=Position abolished
 +
| nvac=None
 +
}}
 +
{{seq
 +
| pvac=Vacant
 +
| prev=Last held by:<br/>'''[[Eärnur]]''', 971 years earlier
 +
| list=[[Kings of Gondor|King of Gondor]]
 +
| dates=T.A. 3019 – Fo.A. 120
 +
| next=[[Eldarion]]
 +
| nrow=4
 +
}}
 +
{{seq
 +
| pvac=Vacant
 +
| prev=Last held by:<br/>'''[[Arvedui]]''', 1,046 years earlier
 +
| list=[[Kings of Arnor|King of Arnor]]
 +
| dates=T.A. 3019 – Fo.A. 120
 +
}}
 +
{{seq
 +
| pvac=Vacant
 +
| prev=Last held by:<br/>'''[[Isildur]]''', 3,017 years earlier
 +
| list=[[High King of the Dúnedain|High King]] of the [[Reunited Kingdom]]
 +
| dates=T.A. 3019 – Fo.A. 120
 +
}}
 +
{{seq
 +
| pvac=None
 +
| prev=New title
 +
| list=[[House of Telcontar]]
 +
| dates=T.A. 3019 – Fo.A. 120
 +
}}
 +
{{seq-end}}</pre>
 +
{{seq-start}}
 +
{{seq-head
 +
| race=gondorian
 +
| house=[[House of Telcontar]]<small><br/>Cadet branch of [[House of Isildur]]</small>
 +
| born=[[March 1]], {{TA|2931}}
 +
| died={{FoA|120}}
 +
}}
 +
{{seq
 +
| prev=[[Arathorn II]]
 +
| list=[[Chieftains of the Dúnedain|Chieftain of the Dúnedain]]
 +
| dates={{TA|2933}} – T.A. 3019
 +
| next=Position abolished
 +
| nvac=None
 +
}}
 +
{{seq
 +
| prev=[[Gandalf]]
 +
| list=Leader of the [[Fellowship of the Ring]]
 +
| dates=[[January 15]] - [[February 16]], {{TA|3019}}
 +
| next=Position abolished
 +
| nvac=None
 +
}}
 +
{{seq
 +
| pvac=Vacant
 +
| prev=Last held by:<br/>'''[[Eärnur]]''', 971 years earlier
 +
| list=[[Kings of Gondor|King of Gondor]]
 +
| dates=T.A. 3019 – Fo.A. 120
 +
| next=[[Eldarion]]
 +
| nrow=4
 +
}}
 +
{{seq
 +
| pvac=Vacant
 +
| prev=Last held by:<br/>'''[[Arvedui]]''', 1,046 years earlier
 +
| list=[[Kings of Arnor|King of Arnor]]
 +
| dates=T.A. 3019 – Fo.A. 120
 +
}}
 +
{{seq
 +
| pvac=Vacant
 +
| prev=Last held by:<br/>'''[[Isildur]]''', 3,017 years earlier
 +
| list=[[High King of the Dúnedain|High King]] of the [[Reunited Kingdom]]
 +
| dates=T.A. 3019 – Fo.A. 120
 +
}}
 +
{{seq
 +
| pvac=None
 +
| prev=New title
 +
| list=[[House of Telcontar]]
 +
| dates=T.A. 3019 – Fo.A. 120
 +
}}
 +
{{seq-end}}
 +
===Example 2: [[Gandalf]]===
 +
<pre>{{seq-start}}
 +
{{seq-head
 +
| race=maiar
 +
| house=
 +
| born=
 +
| died=
 +
}}
 +
{{seq
 +
| pvac=None
 +
| prev=New position
 +
| list=Leader of the [[Fellowship of the Ring]]
 +
| dates=[[December 25|Dec. 25]], {{TA|3018}} - [[January 15|Jan. 15]], {{TA|3019}}
 +
| next=[[Aragorn II|Aragorn]]
 +
}}
 +
{{seq-end}}</pre>
 +
{{seq-start}}
 +
{{seq-head
 +
| race=maiar
 +
| house=
 +
| born=
 +
| died=
 +
}}
 +
{{seq
 +
| pvac=None
 +
| prev=New position
 +
| list=Leader of the [[Fellowship of the Ring]]
 +
| dates=[[December 25]], {{TA|3018}} - [[January 15]], {{TA|3019}}
 +
| next=[[Aragorn II|Aragorn]]
 +
}}
 +
{{seq-end}}
 +
'''N.B.''' This is part of a very complex template: if you need help with using this template, please contact [[User:Mith|Mith]] on [[User talk:Mith|his talkpage]]; if you want to edit this template please outline the changes you wish to make on [[Template talk:Seq|this template's talkpage]].
 
[[Category:Navigation templates|Seq]]</noinclude>
 
[[Category:Navigation templates|Seq]]</noinclude>

Revision as of 20:06, 2 July 2010

Please read everything, and make sure you understand fully before you use this template.

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 (see Template:Seq-head, for documentation on the optional header). This template can be repeated multiple times within {{seq-start}} and {{seq-end}}, (see examples below); this is how to use it:

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

Or, with the required {{seq-start}} and {{seq-end}}:

{{seq-start}}
{{seq
| prow=
| pvac=
| prev=
| list=
| dates=
| next=
| nvac=
| nrow=
}}
{{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.

Examples

Example 1: Aragorn

{{seq-start}}
{{seq-head
| race=gondorian
| house=[[House of Telcontar]]<small><br/>Cadet branch of [[House of Isildur]]</small>
| born=[[March 1]], {{TA|2931}}
| died={{FoA|120}}
}}
{{seq
| prev=[[Arathorn II]]
| list=[[Chieftains of the Dúnedain|Chieftain of the Dúnedain]]
| dates={{TA|2933}} – T.A. 3019
| next=Position abolished
| nvac=None
}}
{{seq
| prev=[[Gandalf]]
| list=Leader of the [[Fellowship of the Ring]]
| dates=[[January 15]] - [[February 16]], {{TA|3019}}
| next=Position abolished
| nvac=None
}}
{{seq
| pvac=Vacant
| prev=Last held by:<br/>'''[[Eärnur]]''', 971 years earlier
| list=[[Kings of Gondor|King of Gondor]]
| dates=T.A. 3019 – Fo.A. 120
| next=[[Eldarion]]
| nrow=4
}}
{{seq
| pvac=Vacant
| prev=Last held by:<br/>'''[[Arvedui]]''', 1,046 years earlier
| list=[[Kings of Arnor|King of Arnor]]
| dates=T.A. 3019 – Fo.A. 120
}}
{{seq
| pvac=Vacant
| prev=Last held by:<br/>'''[[Isildur]]''', 3,017 years earlier
| list=[[High King of the Dúnedain|High King]] of the [[Reunited Kingdom]]
| dates=T.A. 3019 – Fo.A. 120
}}
{{seq
| pvac=None
| prev=New title
| list=[[House of Telcontar]]
| dates=T.A. 3019 – Fo.A. 120
}}
{{seq-end}}
Seq
House of Telcontar
Cadet branch of House of Isildur
Born: March 1, T.A. 2931 Died: Fo.A. 120
Preceded by:
Arathorn II
Chieftain of the Dúnedain
T.A. 2933 – T.A. 3019
None
Position abolished
Preceded by:
Gandalf
Leader of the Fellowship of the Ring
January 15 - February 16, T.A. 3019
None
Position abolished
Vacant
Last held by:
Eärnur, 971 years earlier
King of Gondor
T.A. 3019 – Fo.A. 120
Followed by:
Eldarion
Vacant
Last held by:
Arvedui, 1,046 years earlier
King of Arnor
T.A. 3019 – Fo.A. 120
Vacant
Last held by:
Isildur, 3,017 years earlier
High King of the Reunited Kingdom
T.A. 3019 – Fo.A. 120
None
New title
House of Telcontar
T.A. 3019 – Fo.A. 120

Example 2: Gandalf

{{seq-start}}
{{seq-head
| race=maiar
| house=
| born=
| died=
}}
{{seq
| pvac=None
| prev=New position
| list=Leader of the [[Fellowship of the Ring]]
| dates=[[December 25|Dec. 25]], {{TA|3018}} - [[January 15|Jan. 15]], {{TA|3019}}
| next=[[Aragorn II|Aragorn]]
}}
{{seq-end}}
Seq
None
New position
Leader of the Fellowship of the Ring
December 25, T.A. 3018 - January 15, T.A. 3019
Followed by:
Aragorn

N.B. This is part of a very complex template: if you need help with using this template, please contact Mith on his talkpage; if you want to edit this template please outline the changes you wish to make on this template's talkpage.