Difference between revisions of "Template:Character"
Template page
(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..) |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Character]] | <infobox theme="bravo"> | ||
}} | <title source="name"> | ||
</includeonly><noinclude> | <default>{{pagename}}</default><format>''{{{name|}}}''</format> | ||
</title> | |||
<image source="image"/> | |||
<header>Biographical Information</header> | |||
<data source="fullname"><label>Full Name</label><format>{{{fullname}}}</format></data> | |||
<data source="placeoforigin"><label>Place of Origin</label><format>{{{placeoforigin}}}</format></data> | |||
<data source="species"><label>Species</label><format>{{{species}}}</format></data> | |||
<data source="gender"><label>Gender</label><format>{{{gender}}}</format></data> | |||
<data source="dateofbirth"><label>Date of Birth</label><format>{{{dateofbirth}}}</format></data> | |||
<data source="dateofdeath"><label>Date of Death</label><format>{{{dateofdeath}}}</format></data> | |||
<header>{{#if:{{{height|}}}{{{weight|}}}{{{hair|}}}{{{eyes|}}}|Physical Description|}}</header> | |||
<data source="height"><label>Height</label><format>{{{height}}}</format></data> | |||
<data source="weight"><label>Weight</label><format>{{{weight}}}</format></data> | |||
<data source="hair"><label>Hair</label><format>{{{hair}}}</format></data> | |||
<data source="eyes"><label>Eyes</label><format>{{{eyes}}}</format></data> | |||
<header>{{#if:{{{affiliation|}}}{{{rank|}}}{{{posting|}}}{{{position|}}}|Career Information|}}</header> | |||
<data source="affiliation"><label>Affiliation</label><format>{{{affiliation}}}</format></data> | |||
<data source="rank"><label>Rank</label><format>{{{rank}}}</format></data> | |||
<data source="posting"><label>Posting</label><format>{{{posting}}}</format></data> | |||
<data source="position"><label>Position</label><format>{{{position}}}</format></data> | |||
<header name="footer">[[Template:Character]]</header> | |||
</infobox> | |||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!-- else -->[[Category:Character]]}} | |||
</includeonly> | |||
<noinclude> | |||
==Character== | ==Character== | ||
All fields, if not assigned | All fields, if not assigned, 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 | Fullname exists to allow for the character to have an excessively long name in the field while a more shorthand version is used for the infbox title. | ||
{{clear}} | |||
<pre> | <pre> | ||
{{Character | {{Character | ||
Line 114: | Line 42: | ||
| dateofbirth = | | dateofbirth = | ||
| dateofdeath = | | dateofdeath = | ||
| height = | | height = | ||
| weight = | | weight = | ||
Line 120: | Line 47: | ||
| eyes = | | eyes = | ||
| affiliation = Government or organisation they work for or are part of. Link if you can for beautiful cross-linking. | | affiliation = Government or organisation they work for or are part of. Link if you can for beautiful cross-linking. | ||
| rank = Where | | rank = Where do they stand in their group | ||
| posting = Where are they currently working ie Peace Moon, Starbase Kickass, Subspace Radar Station Alaska | | 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 | | position = What are they doing there ie Commanding Officer, Lord High Inquisitor, Tea-lady | ||
Line 130: | Line 57: | ||
| image = | | image = | ||
| name = Old Lady Higgins | | name = Old Lady Higgins | ||
| fullname = Old Lady Gertrude Higgins | | fullname = Old Lady Gertrude Wilhemina Higgins | ||
| placeoforigin = Starbase Kickass | | placeoforigin = Starbase Kickass | ||
| species = Old Lady | | species = Old Lady | ||
Line 136: | Line 63: | ||
| dateofbirth = Big Bang | | dateofbirth = Big Bang | ||
| dateofdeath = | | dateofdeath = | ||
| height = 1.65m | | height = 1.65m | ||
| weight = Don't you | | weight = Don't you dare ask | ||
| hair = Grey | | hair = Grey | ||
| eyes = Hazel | | eyes = Hazel | ||
Line 157: | Line 83: | ||
| dateofbirth = Big Bang | | dateofbirth = Big Bang | ||
| dateofdeath = | | dateofdeath = | ||
| height = 1.65m | | height = 1.65m | ||
| weight = Don't you | | weight = Don't you dare ask | ||
| hair = Grey | | hair = Grey | ||
| eyes = Hazel | | eyes = Hazel |
Latest revision as of 02:20, 15 November 2024
Character
All fields, if not assigned, 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 the character to have an excessively long name in the field while a more shorthand version is used for the infbox title.
{{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 = | 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 do 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
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 = | height = 1.65m | weight = Don't you dare 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 }}