Template:Seq-head: Difference between revisions

From Tolkien Gateway
m (Added various !important and removed texting)
m (Fixed Northmen)
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><tr><td colspan="3" style="{{#switch:{{{race}}} | dwarf = background: #734A12; color: white !important; | edain = background: #712F26; color: white !important; | evil = background: black; color: white !important; | gondorian = background: #393939; color: #FFFDD0 !important; | halfelf = background: #440D60; color: white !important; | hobbit = background: #736326; color: white !important; | maiar = background: #5D8AA8; color: black !important; | men = background: #736326; color: white !important; | nandor = background: #355E3B; color: white !important; | noldor = background: #900020; color: white !important; | numenorean = background: #007BA7; color: #FFFDD0 !important; | orc = background: #736326; color: white !important; | rohirrim = background: #80461B; color: #FFFDD0 !important; | royalty = background: #993D00; color: white !important; | sindar = background: #949494; color: white !important; | teleri = background: #0099CC; color: white !important; | valar = background: #9A03B5; color: black !important; | vanyar = background: #DAA520; color: white !important; | #default = background: #FFD700; color: black !important;}} text-align:center;">'''{{PAGENAME}}'''{{t|1=<br/>{{{house}}}|1{{{house}}}=}}
<includeonly><tr><td colspan="3" {{t|1=class="{{#switch:{{{race}}} | arnorian = seqwhite | dragon = seqwhite | dwarf = seqcream | eagle = seqcream | edain = seqcream | ent = seqcream | evil = seqcream | halfelf = seqcream | hobbit = seqcream | men = seqcream | nandor = seqcream | noldor = seqcream | orc = seqcream | royalty = seqcream | sindar = seqcream | teleri = seqcream | vanyar = seqgrey | numenorean = seqwhite | gondorian = seqwhite | rohirrim = seqwhite | elves = seqwhite | northmen = seqcream | valar = seqwhite | maiar = seqwhite }}"|1{{{race|}}}=}} style="{{#switch:{{{race}}} | arnorian = background: #5D8AA8; color: #FFFDD0 !important; | dragon = background: #990000; color: white !important; | dwarf = background: #996515; color: white !important; | eagle = background: #1F1200; color: white !important; | edain = background: #712F26; color: white !important; | ent = background: #263D14; color: white !important; | evil = background: black; color: white !important; | gondorian = background: #393939; color: #FFFDD0 !important; | halfelf = background: #900020; color: white !important; | hobbit = background: #006600; color: white !important; | maiar = background: #9A03B5; color: #FFFDD0 !important; | men = background: #993D00; color: white !important; | nandor = background: #355E3B; color: white !important; | noldor = background: #090A67; color: white !important; | numenorean = background: #007BA7; color: #FFFDD0 !important; | orc = background: #736326; color: white !important; | rohirrim = background: #80461B; color: #FFFDD0 !important; | sindar = background: #949494; color: white !important; | teleri = background: #0099CC; color: white  
!important; | elves = background: #1365A8; color: white !important; | northmen = background: #C38500; color: white
!important; | valar = background: #440D60; color: #FFFDD0 !important; | vanyar = background: #FFCC00; color: black !important; | #default = background: #FFD700; color: black !important;}} text-align:center;">'''{{{name|{{#explode:{{PAGENAME}}| (|0}}}}}'''{{t|1=<br/>{{{house}}}|1{{{house|}}}=}}
<div {{t|1=style="margin-top:8px;"|1{{{born|}}}=}} {{t|1=style="margin-top:8px;"|1{{{died|}}}=}}>{{t|1=<span" style="font-size: 90%; color: inherit !important; margin: 1.5em;">'''Born:''' {{{born}}}</span>|1{{{born|}}}=}} {{t|1=<span style="font-size: 90%; color: inherit !important; margin: 1.5em;">'''Died:''' {{{died}}}</span>|1{{{died|}}}=}}</div></td></tr></includeonly><noinclude>==Usage==
<div {{t|1=style="margin-top:8px;"|1{{{born|}}}=}} {{t|1=style="margin-top:8px;"|1{{{died|}}}=}}>{{t|1=<span" style="font-size: 90%; color: inherit !important; margin: 1.5em;">'''Born:''' {{{born}}}</span>|1{{{born|}}}=}} {{t|1=<span style="font-size: 90%; color: inherit !important; margin: 1.5em;">'''Died:''' {{{died}}}</span>|1{{{died|}}}=}}</div></td></tr></includeonly><noinclude>==Usage==
This is an optional header to a series of sequences, and, if used, should be placed between <nowiki>{{seq-start}}</nowiki> and the first <nowiki>{{seq}}</nowiki> (see [[Template:Seq]] on how to use those). The usage of seq-head is as follows:
This is an '''optional''' header which is used '''once''' in a series of sequences. If used, it should be placed '''after''' <nowiki>{{seq-start}}</nowiki>, and '''before''' the first <nowiki>{{seq}}</nowiki> (see [[Template:Seq]] on how to use those). The usage of seq-head is as follows:
<pre>
<pre>
{{seq-head
{{seq-head
| name=
| race=
| race=
| house=
| house=
Line 11: Line 14:
</pre>
</pre>
Where:<br/>
Where:<br/>
'''race''' defines the race of the individual to display a pre-defined colour scheme to match the character's infobox. (The options are below, with #default displaying if none set).<br/>
'''name''', is the name of the character. If left plank <nowiki>{{PAGENAME}}</nowiki> will be used.<br/>
'''house''', is the dynastic house. Can be left blank.<br/>
'''race''', select from the options below to display a pre-defined colour scheme to match the character's infobox. If omitted or left blank #default below will be displayed.<br/>
'''born''', date of birth. Can be left blank.<br/>
'''house''', is the dynastic house. Can be left blank or omitted.<br/>
'''died''', date of death. Can be left blank.
'''born''', date of birth. Can be left blank or omitted.<br/>
'''died''', date of death. Can be left blank or omitted.
{|  
{|  
|-
|-
| style="background: #734A12; color: white;" | dwarf
| style="background: #5D8AA8; color: #FFFDD0;" | arnorian
|-
| style="background: #990000; color: white;" | dragon
|-
| style="background: #996515; color: white;" | dwarf
|-
| style="background: #1F1200; color: white;" | eagle
|-
|-
| style="background: #712F26; color: white;" | edain
| style="background: #712F26; color: white;" | edain
|-
| style="background: #263D14; color: white;" | ent
|-
|-
| style="background: black; color: white;"| evil
| style="background: black; color: white;"| evil
Line 25: Line 37:
| style="background: #393939; color: #FFFDD0;" | gondorian
| style="background: #393939; color: #FFFDD0;" | gondorian
|-
|-
| style="background: #440D60; color: white;" | halfelf
| style="background: #900020; color: white;" | halfelf
|-
|-
| style="background: #736326; color: white;" | hobbit
| style="background: #006600; color: white;" | hobbit
|-
|-
| style="background: #5D8AA8; color: black;" | maiar
| style="background: #9A03B5; color: #FFFDD0;" | maiar
|-
|-
| style="background: #736326; color: white;" | men
| style="background: #993D00; color: white;" | men
|-
|-
| style="background: #355E3B; color: white;" | nandor
| style="background: #355E3B; color: white;" | nandor
|-
|-
| style="background: #900020; color: white;" | noldor
| style="background: #090A67; color: white;" | noldor
|-
| style="background: #C38500; color: white;" | northmen
|-
|-
| style="background: #007BA7; color: #FFFDD0;" | numenorean
| style="background: #007BA7; color: #FFFDD0;" | numenorean
Line 42: Line 56:
|-
|-
| style="background: #80461B; color: #FFFDD0;" | rohirrim
| style="background: #80461B; color: #FFFDD0;" | rohirrim
|-
| style="background: #993D00; color: white;" | royalty
|-
|-
| style="background: #949494; color: white;" | sindar
| style="background: #949494; color: white;" | sindar
Line 49: Line 61:
| style="background: #0099CC; color: white;" | teleri
| style="background: #0099CC; color: white;" | teleri
|-
|-
| style="background: #9A03B5; color: black" | valar
| style="background: #440D60; color: #FFFDD0;" | valar
|-
| style="background: #FFCC00; color: black;" | vanyar
|-
|-
| style="background: #DAA520; color: white;" | vanyar
| style="background: #1365A8; color: white;" | elves
|-
|-
| style="background: #FFD700; color: black" | #default
| style="background: #FFD700; color: black" | #default
|}
|}
'''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-head|this template's talkpage]].
[[Category: Navigation templates|Seq-head]]</noinclude>
[[Category: Navigation templates|Seq-head]]</noinclude>

Revision as of 16:11, 23 September 2015

Usage

This is an optional header which is used once in a series of sequences. If used, it should be placed after {{seq-start}}, and before the first {{seq}} (see Template:Seq on how to use those). The usage of seq-head is as follows:

{{seq-head
| name=
| race=
| house=
| born=
| died=
}}

Where:
name, is the name of the character. If left plank {{PAGENAME}} will be used.
race, select from the options below to display a pre-defined colour scheme to match the character's infobox. If omitted or left blank #default below will be displayed.
house, is the dynastic house. Can be left blank or omitted.
born, date of birth. Can be left blank or omitted.
died, date of death. Can be left blank or omitted.

arnorian
dragon
dwarf
eagle
edain
ent
evil
gondorian
halfelf
hobbit
maiar
men
nandor
noldor
northmen
numenorean
orc
rohirrim
sindar
teleri
valar
vanyar
elves
#default

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.