Difference between revisions of "Template:CHHead"

From Federation Space - Official Wiki
Jump to navigation Jump to search
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|{{-!}}{{!--}} colspan="5" style="{{#ifeq: {{{Type|}}}|fed|color:white;|}}background:{{color | type={{{Type|}}} }};"{{!}}{{{1|}}}
+
<includeonly>{{#if: {{{1|}}}|{{-!}}{{!--}} colspan="5" {{#if: {{{2|}}}|style="background-color:#{{CHHead Color|type={{{2|}}}}};"|style="background-color:#94a4b4;color:black;"}}{{!}}{{{1|}}}
{{-!}}{{!--}} Location {{!!-}} Assignment {{!!-}} Dates {{!!-}} Event {{!!-}} Image|!Location !! Assignment !! Dates !! Event !! Image}}</includeonly>
+
{{-!}}{{!--}} Position {{!!-}} Assignment {{!!-}} Date(s) {{!!-}} colspan="2"{{!}}Event|{{-!}}!Position !! Assignment !! Date(s) !! colspan="2"{{!}}Event}}</includeonly><noinclude>__NOEDITSECTION____NOTOC__
<noinclude>[[Category:Templates]]</noinclude>
+
This template provides the table header of the “Career History” section of all STAR FLEET PERSONNEL COMMAND files; that is, biographies.
 +
 
 +
:''(You might be looking for ''[[Template:CHLine]]''; that is, the template that provides each history line of the “Career History” section of biographies.)''
 +
 
 +
To make use of this table header template, [[Template:{{PAGENAME}}]], the biography must include the following line within its <code>|CHist=</code> section:
 +
 
 +
:<code><nowiki>{{CHHead|Character Name|UFP}}</nowiki></code>
 +
 
 +
Note that the character’s actual name must replace “Character Name.” To avoid display errors because of color, try one of two things: (1) Do not include double square brackets along with the character’s name. (2) Leave “UFP” blank, like this: <code><nowiki>{{CHHead|Character Name|}}</nowiki></code>, for a neutral color.<br />
 +
 
 +
Note that “UFP” here simply determines the header’s color, and should reflect the character’s affiliation—not the character’s species—and the appropriate one of the following should replace it:
 +
 
 +
:See [[Template:CHHead Color]].
 +
 
 +
== First Header ==
 +
Note that the first header should immediately follow the <code>|CHist=</code> item, without additional space between them, as illustrated, below:
 +
 
 +
:<code>|CHist=</code><br />
 +
:<code><nowiki>{{CHHead|Character Name|UFP}}</nowiki></code>
 +
 
 +
== Additional Headers ==
 +
Additional headers, if necessary, should be between “Career History” lines, without additional space between them, as illustrated, below:
 +
 
 +
:<code><nowiki>{{CHLine</nowiki></code><br />
 +
:<code>|Assignment=Science Officer</code><br />
 +
:<code><nowiki>|Location={{USS|Yeager|FSC|28018}}</nowiki></code><br />
 +
:<code>|Stardate=21509.01</code><br />
 +
:<code>|StardateEnd=</code><br />
 +
:<code>|Event=Ensign</code><br />
 +
:<code>|Text=</code><br />
 +
:<code>|Department=Science</code><br />
 +
:<code><nowiki>}}</nowiki></code><br />
 +
:<span style="background-color: yellow"><code><nowiki>{{CHHead|Character's New Name|UFP}}</nowiki></code> This header item is between “Career History” lines.</span><br>
 +
:<code><nowiki>{{CHLine</nowiki></code><br />
 +
:<code>|Assignment=Science Officer</code><br />
 +
:<code><nowiki>|Location={{USS|Yeager|FSC|28018}}</nowiki></code><br />
 +
:<code>|Stardate=21509.18</code><br />
 +
:<code>|StardateEnd=</code><br />
 +
:<code>|Event=Role Player of the Month</code><br />
 +
:<code>|Text=</code><br />
 +
:<code>|Department=Science</code><br />
 +
:<code><nowiki>}}</nowiki></code><br />
 +
 
 +
Compare also under the “[[Template:Biography#Previous and Next Characters|Previous and Next Characters]]” heading on the [[Template:Biography]] page.
 +
 
 +
 
 +
 
 +
[[Category:Bio Templates]]
 +
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 19:31, 25 December 2015

This template provides the table header of the “Career History” section of all STAR FLEET PERSONNEL COMMAND files; that is, biographies.

(You might be looking for Template:CHLine; that is, the template that provides each history line of the “Career History” section of biographies.)

To make use of this table header template, Template:CHHead, the biography must include the following line within its |CHist= section:

{{CHHead|Character Name|UFP}}

Note that the character’s actual name must replace “Character Name.” To avoid display errors because of color, try one of two things: (1) Do not include double square brackets along with the character’s name. (2) Leave “UFP” blank, like this: {{CHHead|Character Name|}}, for a neutral color.

Note that “UFP” here simply determines the header’s color, and should reflect the character’s affiliation—not the character’s species—and the appropriate one of the following should replace it:

See Template:CHHead Color.

First Header

Note that the first header should immediately follow the |CHist= item, without additional space between them, as illustrated, below:

|CHist=
{{CHHead|Character Name|UFP}}

Additional Headers

Additional headers, if necessary, should be between “Career History” lines, without additional space between them, as illustrated, below:

{{CHLine
|Assignment=Science Officer
|Location={{USS|Yeager|FSC|28018}}
|Stardate=21509.01
|StardateEnd=
|Event=Ensign
|Text=
|Department=Science
}}
{{CHHead|Character's New Name|UFP}} This header item is between “Career History” lines.
{{CHLine
|Assignment=Science Officer
|Location={{USS|Yeager|FSC|28018}}
|Stardate=21509.18
|StardateEnd=
|Event=Role Player of the Month
|Text=
|Department=Science
}}

Compare also under the “Previous and Next Characters” heading on the Template:Biography page.