Difference between revisions of "Template:Character"

Template page
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">
<includeonly>
{| width="315" align="right" cellpadding="3" cellspacing="0" style="border-radius:13px;margin-bottom:0;padding-left:10px;"
<infobox theme="bravo">
{{#if: {{{image|}}}|
<title source="name">
{{!}} colspan="2" bgcolor={{{bgcolor_value|#222222; style="border-top-right-radius: 13px; border-top-left-radius: 13px; background: #f3f3f3 !important; color: #cccccc; font-size:smaller; text-align: center;padding: 10px;"}}} {{!}} {{{image}}} }}
    <default>{{pagename}}</default><format>''{{{name|}}}''</format>
|-
</title>
| colspan="2" style="text-align: center; color: #e5e5ed; font-size:larger; background-color:#304665!important; text-align:center;padding: .3rem 1.25rem;" | '''{{{name}}}'''
<image source="image"/>
|-
<header>Biographical Information</header>
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Basic information'''
<data source="fullname"><label>Full Name</label><format>{{{fullname}}}</format></data>
|-
<data source="placeoforigin"><label>Place of Origin</label><format>{{{placeoforigin}}}</format></data>
{{#if: {{{fullname|}}}|
<data source="species"><label>Species</label><format>{{{species}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Full Name
<data source="gender"><label>Gender</label><format>{{{gender}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
<data source="dateofbirth"><label>Date of Birth</label><format>{{{dateofbirth}}}</format></data>
{{{fullname }}}}}
<data source="dateofdeath"><label>Date of Death</label><format>{{{dateofdeath}}}</format></data>
|-
<header>{{#if:{{{height|}}}{{{weight|}}}{{{hair|}}}{{{eyes|}}}|Physical Description|}}</header>
{{#if: {{{species|}}}|
<data source="height"><label>Height</label><format>{{{height}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Species
<data source="weight"><label>Weight</label><format>{{{weight}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
<data source="hair"><label>Hair</label><format>{{{hair}}}</format></data>
{{{species }}}}}
<data source="eyes"><label>Eyes</label><format>{{{eyes}}}</format></data>
|-
<header>{{#if:{{{affiliation|}}}{{{rank|}}}{{{posting|}}}{{{position|}}}|Career Information|}}</header>
{{#if: {{{gender|}}}|
<data source="affiliation"><label>Affiliation</label><format>{{{affiliation}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Gender
<data source="rank"><label>Rank</label><format>{{{rank}}}</format></data>
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
<data source="posting"><label>Posting</label><format>{{{posting}}}</format></data>
{{{gender}}}}}
<data source="position"><label>Position</label><format>{{{position}}}</format></data>
|-
<header name="footer">[[Template:Character]]</header>
{{#if: {{{dateofbirth|}}}|
</infobox>
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Date of Birth
{{#if: {{{templatemode|}}}|<!-- do nothing -->|<!-- else -->[[Category:Character]]}}
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
</includeonly>
{{{dateofbirth}}}}}
<noinclude>
|-
==Character==
{{#if: {{{age|}}}|
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.
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Age
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{age}}}}}
|-
{{#if: {{{placeoforigin|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Place of Origin
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{placeoforigin}}}}}
|-
| colspan="2" style="text-align: center; color: #e5e5ed; background-color:#2a4667c9; text-align:center; font-size:8pt; padding: 6px" | '''Assignment'''
|-
{{#if: {{{rank|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Rank
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{rank}}}}}
|-
{{#if: {{{posting|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Posting
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{posting}}}}}
|-
{{#if: {{{position|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Position
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{position}}}}}
|-
{{#if: {{{affiliation|}}}|
{{!}} bgcolor={{{bgcolor_value|#222222; style="background: #e0e0e0; padding:8px 10px; color: #696969; font-size:smaller; width:40%;"}}} {{!}} Affiliation
{{!}} bgcolor={{{bgcolor_value|#2B2B2B; style="background: #ececec; padding:8px 10px; color: #696969; font-size:smaller; width:60%;"}}} {{!}}
{{{affiliation}}}}}
|- class="infobox-link" style="border-radius-bottom-right: 13px; border-radius-bottom-left: 13px;"
|colspan="2" style="border-bottom-right-radius: 13px; border-bottom-left-radius: 13px; text-align: center; color: #F67F00; font-size: 8pt; background-color:#2a4667c9; text-align:center;padding: 6px 0;" | [[Template:Character]]
|}</div>
<includeonly>[[Category:Characters]]
{{DEFAULTSORT:{{PAGENAME}}}}</includeonly>


<noinclude>
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.
<br clear=all>
{{clear}}
<pre>
<pre>
{{Planet
{{Character
| name =
| fullname =
| 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 =
| height =
| posting =  
| weight =
| position =  
| hair =
| rank =  
| eyes =
| affiliation =  
| 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
}}
</pre>
{{clear}}
==Example==
{{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
| 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 =
| 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
}}
}}
</pre>
</pre>
[[Category:Infobox Templates|{{PAGENAME}}]]
[[Category:Infobox Templates]]
{{clear}}
</noinclude>
</noinclude>

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