Difference between revisions of "Template:Character"
Template page
m |
m (Bringing the character infobox up to scratch with the new way of doing them. Have removed the Age field as kinda pointless really and just begging to constantly need maintence. DoB and DoD work just fine to capture age if you know the current year.) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Character]] | <infobox theme="bravo"> | ||
<title source="name"> | |||
<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>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>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> | </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. | ||
<pre> | <pre> | ||
{{clear}} | |||
==Example== | |||
{{Character | {{Character | ||
| image = | | image = | ||
Line 117: | Line 46: | ||
| dateofbirth = | | dateofbirth = | ||
| dateofdeath = | | dateofdeath = | ||
| height = | | height = | ||
| weight = | | weight = | ||
Line 139: | Line 67: | ||
| 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 160: | Line 87: | ||
| 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 |
Revision as of 06:24, 31 July 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.
{{clear}} ==Example== {{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 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
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 }}