Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character: Difference between revisions

Template page
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.
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
     <default>{{pagename}}</default><format>''{{{name|}}}''</format>
     <default>{{pagename}}</default><format>''{{{name|}}}''</format>
</title>
</title>
<image source="image"/>
<image source="image" name="image"/>
<header>Biographical Information</header>
<header>Biographical Information</header>
<data source="fullname"><label>Full Name</label><format>{{{fullname}}}</format></data>
<data source="fullname"><label>Full Name</label><format>{{{fullname}}}</format></data>
Line 12: Line 12:
<data source="dateofbirth"><label>Date of Birth</label><format>{{{dateofbirth}}}</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>
<data source="dateofdeath"><label>Date of Death</label><format>{{{dateofdeath}}}</format></data>
<header>Physical Description</header>
<header>{{#if:{{{height|}}}{{{weight|}}}{{{hair|}}}{{{eyes|}}}|Physical Description|}}</header>
<data source="height"><label>Height</label><format>{{{height}}}</format></data>
<data source="height"><label>Height</label><format>{{{height}}}</format></data>
<data source="weight"><label>Weight</label><format>{{{weight}}}</format></data>
<data source="weight"><label>Weight</label><format>{{{weight}}}</format></data>
<data source="hair"><label>Hair</label><format>{{{hair}}}</format></data>
<data source="hair"><label>Hair</label><format>{{{hair}}}</format></data>
<data source="eyes"><label>Eyes</label><format>{{{eyes}}}</format></data>
<data source="eyes"><label>Eyes</label><format>{{{eyes}}}</format></data>
<header>Career Information</header>
<header>{{#if:{{{affiliation|}}}{{{rank|}}}{{{posting|}}}{{{position|}}}|Career Information|}}</header>
<data source="affiliation"><label>Affiliation</label><format>{{{affiliation}}}</format></data>
<data source="affiliation"><label>Affiliation</label><format>{{{affiliation}}}</format></data>
<data source="rank"><label>Rank</label><format>{{{rank}}}</format></data>
<data source="rank"><label>Rank</label><format>{{{rank}}}</format></data>
Line 24: Line 24:
<header name="footer">[[Template:Character]]</header>
<header name="footer">[[Template:Character]]</header>
</infobox>
</infobox>
{{#if: {{{templatemode|}}}|
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!-- else -->[[Category:Character]]}}
    <!-- do nothing -->|
    <!-- else -->[[Category:Character]]
}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 34: Line 31:


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.
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>
{{clear}}
==Example==
{{Character
{{Character
| image =  
| image =  
Line 51: 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 to they stand in their group
| 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 61: 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

Latest revision as of 22:31, 7 December 2025


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
}}