Template:Seq: Difference between revisions
m (Tweaked widths a bit) |
m (Ok a bti much) |
||
Line 1: | Line 1: | ||
<includeonly><tr style="text-align: center;"> | <includeonly><tr style="text-align: center;"> | ||
{{t|1=<td width=" | {{t|1=<td width="27.5%" {{t|1=rowspan="{{{prow}}}"|1{{{prow|}}}=}}>{{#if:{{{pvac|}}}|'''{{{pvac|}}}'''|Preceded by:}}<br/>{{#if:{{{pvac|}}}|<small>{{{prev|}}}</small>|'''{{{prev}}}'''}}</td>|1{{{prev|}}}{{{pvac|}}}=}} | ||
<td width=" | <td width="45%">{{t|1='''{{{list}}}'''|1{{{list|}}}=}}{{t|1=<br/>{{{dates}}}|1{{{dates|}}}=}}</td> | ||
{{t|1=<td width=" | {{t|1=<td width="27.5%" {{t|1=rowspan="{{{nrow}}}"|1{{{nrow|}}}=}}>{{#if:{{{nvac|}}}|'''{{{nvac|}}}'''|Followed by:}}<br/>{{#if:{{{nvac|}}}|<small>{{{next|}}}</small>|'''{{{next}}}'''}}</td>|1{{{next|}}}{{{nvac|}}}=}}</tr></includeonly><noinclude>__NOTOC__'''Please read everything, and make sure you understand fully before you use this template.''' | ||
==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]] (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: | 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: |
Revision as of 17:29, 1 January 2012
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). 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 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/>Continuation of the senior branch of the [[House of Isildur]]</small> | born=[[1 March]], {{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=[[15 January]] - [[22 August]], {{TA|3019}} | next=Position abolished | nvac=None }} {{seq | pvac=Vacant | prev=Last held by:<br/>'''[[Eärnur]]''', 969 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/>'''[[Eärendur]]''', 2,158 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=Head of the [[House of Telcontar]] | dates=T.A. 3019 – Fo.A. 120 }} {{seq-end}}
Seq House of Telcontar Continuation of the senior branch of the House of Isildur | ||
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 15 January - 22 August, T.A. 3019 |
None Position abolished |
Vacant Last held by: Eärnur, 969 years earlier |
King of Gondor T.A. 3019 – Fo.A. 120 |
Followed by: Eldarion |
Vacant Last held by: Eärendur, 2,158 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 |
Head of the 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=[[25 December|25 Dec.]], {{TA|3018}} - [[15 January|15 Jan.]], {{TA|3019}} | next=[[Aragorn]] }} {{seq-end}}
Seq
| ||
None New position |
Leader of the Fellowship of the Ring 25 Dec., T.A. 3018 - 15 Jan., 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.