Difference between revisions of "Template:Character"
Template page
m (code formatting and removing duplication of code) |
(Updating the template to the new standard, redesigning the headers, relabelling Assignment header to Career Information to allow for non-Starfleet characters (ie Starfleet, political, business etc etc). Supplying an example of how the infobox works. Category values. Done so that Character and Individual templates can be reduced down to just one template and template has same look as the rest..) |
||
Line 1: | Line 1: | ||
<div class="infobox"> | <div class="infobox"> | ||
{| | {| class="ibtable" align="right" cellpadding="3" cellspacing="0" | ||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
{{!}} colspan="2" | {{!}} class="ibimage" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} {{{image}}} | ||
{{!}}- | |||
{{!}} class="ibname" colspan="2" {{!}} '''{{{name}}}'''| | |||
{{!}} class="ibname" colspan="2" style="border-top-right-radius: 13px; border-top-left-radius: 13px;" width="315px" {{!}} '''{{{name}}}''' | |||
}} | }} | ||
|- | |- | ||
| | | class="ibheader" colspan="2" | '''Biographical Information''' | ||
|- | |- | ||
| | {{#if: {{{fullname|}}}| | ||
{{!}} class="ibleft" {{!}} Full Name | |||
{{!}} class="ibright" {{!}} {{{fullname}}} | |||
}} | |||
|- | |- | ||
{{#if: {{{ | {{#if: {{{placeoforigin|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Place of Origin | ||
{{!}} | {{!}} class="ibright" {{!}} {{{placeoforigin}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{species|}}}| | {{#if: {{{species|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Species | ||
{{!}} | {{!}} class="ibright" {{!}} {{{species}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{gender|}}}| | {{#if: {{{gender|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Gender | ||
{{!}} | {{!}} class="ibright" {{!}} {{{gender}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{dateofbirth|}}}| | {{#if: {{{dateofbirth|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Date of Birth | ||
{{!}} | {{!}} class="ibright" {{!}} {{{dateofbirth}}} | ||
}} | |||
|- | |||
{{#if: {{{dateofdeath|}}}| | |||
{{!}} class="ibleft" {{!}} Date of Death | |||
{{!}} class="ibright" {{!}} {{{dateofdeath}}} | |||
}} | }} | ||
|- | |- | ||
{{#if: {{{age|}}}| | {{#if: {{{age|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Age | ||
{{!}} | {{!}} class="ibright" {{!}} {{{age}}} | ||
}} | |||
|- | |||
{{#if: {{{height|}}}{{{weight|}}}{{{hair|}}}{{{eyes|}}}| | |||
{{!}} class="ibheader" colspan="2" {{!}} '''Physical Description''' | |||
}} | |||
|- | |||
{{#if: {{{height|}}}| | |||
{{!}} class="ibleft" {{!}} Height | |||
{{!}} class="ibright" {{!}} {{{height}}} | |||
}} | |||
|- | |||
{{#if: {{{weight|}}}| | |||
{{!}} class="ibleft" {{!}} Weight | |||
{{!}} class="ibright" {{!}} {{{weight}}} | |||
}} | }} | ||
|- | |- | ||
{{#if: {{{ | {{#if: {{{hair|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Hair | ||
{{!}} | {{!}} class="ibright" {{!}} {{{hair}}} | ||
}} | |||
|- | |||
{{#if: {{{eyes|}}}| | |||
{{!}} class="ibleft" {{!}} Eyes | |||
{{!}} class="ibright" {{!}} {{{eyes}}} | |||
}} | |||
|- | |||
{{#if: {{{affiliation|}}}{{{rank|}}}{{{posting|}}}{{{position|}}}| | |||
{{!}} class="ibheader" colspan="2" {{!}} '''Career Information''' | |||
}} | }} | ||
|- | |- | ||
| | {{#if: {{{affiliation|}}}| | ||
{{!}} class="ibleft" {{!}} Affiliation | |||
{{!}} class="ibright" {{!}} {{{affiliation}}} | |||
}} | |||
|- | |- | ||
{{#if: {{{rank|}}}| | {{#if: {{{rank|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Rank | ||
{{!}} | {{!}} class="ibright" {{!}} {{{rank}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{posting|}}}| | {{#if: {{{posting|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Posting | ||
{{!}} | {{!}} class="ibright" {{!}} {{{posting}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{position|}}}| | {{#if: {{{position|}}}| | ||
{{!}} | {{!}} class="ibleft" {{!}} Position | ||
{{!}} | {{!}} class="ibright" {{!}} {{{position}}} | ||
}} | }} | ||
|- | |- | ||
| class="ibheader" colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px;" | [[Template:Character]] | |||
| | |||
|} | |} | ||
</div> | </div> | ||
<includeonly>[[Category: | <includeonly> | ||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Character]]{{DEFAULTSORT:{{{name}}}}} | |||
}} | |||
</includeonly><noinclude> | |||
==Character== | |||
All fields, if not assigned values, will not render in the infobox. Physical Description and Career Information headers will not render without at least one of the appropriate fields having information. | |||
Fullname exists to allow for a character to have an excessively long name in full with a more short handed version displayed in the title of the infobox. | |||
<pre> | <pre> | ||
{{Character | {{Character | ||
| image = | | image = | ||
| species = | | name = First and last name ideally | ||
| fullname = Go buck crazy, show all those middle names and lordly titles | |||
| placeoforigin = | |||
| species = | |||
| gender = | | gender = | ||
| dateofbirth = | | dateofbirth = | ||
| age = | | dateofdeath = | ||
| placeoforigin = | | age = | ||
| posting = | | height = | ||
| position = | | weight = | ||
| rank = | | hair = | ||
| | | eyes = | ||
| affiliation = Government or organisation they work for or are part of. Link if you can for beautiful cross-linking. | |||
| rank = Where to they stand in their group | |||
| posting = Where are they currently working ie Peace Moon, Starbase Kickass, Subspace Radar Station Alaska | |||
| position = What are they doing there ie Commanding Officer, Lord High Inquisitor, Tea-lady | |||
}} | |||
</pre> | |||
{{clear}} | |||
==Example== | |||
{{Character | |||
| image = | |||
| name = Old Lady Higgins | |||
| fullname = Old Lady Gertrude Higgins | |||
| placeoforigin = Starbase Kickass | |||
| species = Old Lady | |||
| gender = Female | |||
| dateofbirth = Big Bang | |||
| dateofdeath = | |||
| age = Eternal | |||
| height = 1.65m | |||
| weight = Don't you date ask | |||
| hair = Grey | |||
| eyes = Hazel | |||
| affiliation = She's a strong independent woman | |||
| rank = Grandma to all | |||
| posting = Starbase Kickass' only knitting shop | |||
| position = Not too old to give you a good smacking sonny | |||
| templatemode = nocats | |||
}} | |||
The following code generates the infobox to the right. | |||
<pre>{{Character | |||
| image = | |||
| name = Old Lady Higgins | |||
| fullname = Old Lady Gertrude Wilhemina Higgins | |||
| placeoforigin = Starbase Kickass | |||
| species = Old Lady | |||
| gender = Female | |||
| dateofbirth = Big Bang | |||
| dateofdeath = | |||
| age = Eternal | |||
| height = 1.65m | |||
| weight = Don't you date ask | |||
| hair = Grey | |||
| eyes = Hazel | |||
| affiliation = She's a strong independent woman | |||
| rank = Grandma to all | |||
| posting = Starbase Kickass' only knitting shop | |||
| position = Not too old to give you a good smacking sonny | |||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox Templates | [[Category:Infobox Templates]] | ||
{{clear}} | |||
</noinclude> | </noinclude> |
Revision as of 08:46, 16 July 2022
{{{name}}} | |
Biographical Information | |
Template:Character |
Character
All fields, if not assigned values, will not render in the infobox. Physical Description and Career Information headers will not render without at least one of the appropriate fields having information.
Fullname exists to allow for a character to have an excessively long name in full with a more short handed version displayed in the title of the infobox.
{{Character | image = | name = First and last name ideally | fullname = Go buck crazy, show all those middle names and lordly titles | placeoforigin = | species = | gender = | dateofbirth = | dateofdeath = | age = | height = | weight = | hair = | eyes = | affiliation = Government or organisation they work for or are part of. Link if you can for beautiful cross-linking. | rank = Where to they stand in their group | posting = Where are they currently working ie Peace Moon, Starbase Kickass, Subspace Radar Station Alaska | position = What are they doing there ie Commanding Officer, Lord High Inquisitor, Tea-lady }}
Example
Old Lady Higgins | |
Biographical Information | |
Full Name | Old Lady Gertrude Higgins |
Place of Origin | Starbase Kickass |
Species | Old Lady |
Gender | Female |
Date of Birth | Big Bang |
Age | Eternal |
Physical Description | |
Height | 1.65m |
Weight | Don't you date ask |
Hair | Grey |
Eyes | Hazel |
Career Information | |
Affiliation | She's a strong independent woman |
Rank | Grandma to all |
Posting | Starbase Kickass' only knitting shop |
Position | Not too old to give you a good smacking sonny |
Template:Character |
The following code generates the infobox to the right.
{{Character | image = | name = Old Lady Higgins | fullname = Old Lady Gertrude Wilhemina Higgins | placeoforigin = Starbase Kickass | species = Old Lady | gender = Female | dateofbirth = Big Bang | dateofdeath = | age = Eternal | height = 1.65m | weight = Don't you date ask | hair = Grey | eyes = Hazel | affiliation = She's a strong independent woman | rank = Grandma to all | posting = Starbase Kickass' only knitting shop | position = Not too old to give you a good smacking sonny }}