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:
<div class="infobox">
{| class="ibtable" align="right" cellpadding="3" cellspacing="0"
{{#if: {{{image|}}}|
    {{!}} 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: {{{placeoforigin|}}}|
{{!}} class="ibleft" {{!}} Place of Origin
{{!}} class="ibright" {{!}} {{{placeoforigin}}}
}}
|-
{{#if: {{{species|}}}|
{{!}} class="ibleft" {{!}} Species
{{!}} class="ibright" {{!}} {{{species}}}
}}
|-
{{#if: {{{gender|}}}|
{{!}} class="ibleft" {{!}} Gender
{{!}} class="ibright" {{!}} {{{gender}}}
}}
|-
{{#if: {{{dateofbirth|}}}|
{{!}} class="ibleft" {{!}} Date of Birth
{{!}} class="ibright" {{!}} {{{dateofbirth}}}
}}
|-
{{#if: {{{dateofdeath|}}}|
{{!}} class="ibleft" {{!}} Date of Death
{{!}} class="ibright" {{!}} {{{dateofdeath}}}
}}
|-
{{#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: {{{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|}}}|
{{!}} class="ibleft" {{!}} Rank
{{!}} class="ibright" {{!}} {{{rank}}}
}}
|-
{{#if: {{{posting|}}}|
{{!}} class="ibleft" {{!}} Posting
{{!}} class="ibright" {{!}}
{{{posting}}}
}}
|-
{{#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>
<includeonly>
<includeonly>
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!--else-->[[Category:Character]]{{DEFAULTSORT:{{{name}}}}}
<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 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.
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 a character to have an excessively long name in full with a more short handed version displayed in the title of the infobox.
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 =  
| age =
| height =  
| height =  
| weight =  
| weight =  
Line 139: Line 67:
| dateofbirth = Big Bang
| dateofbirth = Big Bang
| dateofdeath =  
| dateofdeath =  
| age = Eternal
| height = 1.65m
| height = 1.65m
| weight = Don't you date ask
| 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 =  
| age = Eternal
| height = 1.65m
| height = 1.65m
| weight = Don't you date ask
| 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
}}