Template:Seq-head: Difference between revisions

From Tolkien Gateway
m (Changed to class)
m (Changed arnorian colour)
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><tr><td colspan="3" {{t|1=class="{{#switch:{{{race}}} | dwarf = seqwhite| edain | evil | halfelf | hobbit | men | nandor | noldor | orc | royalty | sindar | teleri | vanyar | numenorean = seqcream | gondorian | rohirrim | valar = seqblack | maiar | #default }}"|1{{{race|}}}=}} 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 = seqcream | dwarf = seqcream | edain = seqcream | evil = seqcream | halfelf = seqcream | hobbit = seqcream | men = seqcream | nandor = seqcream | noldor = seqcream | orc = seqcream | royalty = seqcream | sindar = seqcream | teleri = seqcream | vanyar = seqcream | numenorean = seqwhite | gondorian = seqwhite | rohirrim = seqwhite | valar = seqwhite | maiar = seqwhite }}"|1{{{race|}}}=}} style="{{#switch:{{{race}}} | arnorian = background: #5F9EA0; color: white !important; | dwarf = background: #996515; 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: #006600; color: white !important; | maiar = background: #5D8AA8; color: #FFFDD0 !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: #FFFDD0 !important; | vanyar = background: #DAA520; color: white !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 12:
</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: #5F9EA0; color: black;" | arnorian
|-
| style="background: #996515; color: white;" | dwarf
|-
|-
| style="background: #712F26; color: white;" | edain
| style="background: #712F26; color: white;" | edain
Line 27: Line 31:
| style="background: #440D60; color: white;" | halfelf
| style="background: #440D60; color: white;" | halfelf
|-
|-
| style="background: #736326; color: white;" | hobbit
| style="background: #006600; color: white;" | hobbit
|-
|-
| style="background: #5D8AA8; color: black;" | maiar
| style="background: #5D8AA8; color: #FFFDD0;" | maiar
|-
|-
| style="background: #736326; color: white;" | men
| style="background: #736326; color: white;" | men
Line 49: Line 53:
| style="background: #0099CC; color: white;" | teleri
| style="background: #0099CC; color: white;" | teleri
|-
|-
| style="background: #9A03B5; color: black" | valar
| style="background: #9A03B5; color: #FFFDD0;" | valar
|-
|-
| style="background: #DAA520; color: white;" | vanyar
| style="background: #DAA520; color: white;" | vanyar
Line 55: Line 59:
| 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:20, 23 December 2013

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
dwarf
edain
evil
gondorian
halfelf
hobbit
maiar
men
nandor
noldor
numenorean
orc
rohirrim
royalty
sindar
teleri
valar
vanyar
#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.