Template:Character Infobox: Difference between revisions

From Star Trek: Theurgy Wiki

(Added position to template)
No edit summary
Line 1: Line 1:
<style>
tr.charline { spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525 }
td.charline { border-top: 1px solid #999; border-bottom: 1px solid #999; }
</style>
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#252525; border-collapse:collapse; border:1px solid #999999; line-height:1.5;">
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#252525; border-collapse:collapse; border:1px solid #999999; line-height:1.5;">
<tr><td colspan="2"><table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#252525; border-collapse:collapse;">
<tr><td colspan="2"><table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#252525; border-collapse:collapse;">
Line 4: Line 10:


<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Character Information'''</th></tr>
<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Character Information'''</th></tr>
{{#if: {{{name|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Name</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{name}}}</td></tr>|}}
{{#if: {{{name|}}} |<tr class="charline"><td class="charline">Name</td><td  class="charline">{{{name}}}</td></tr>|}}
{{#if: {{{rank|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Rank</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{rank}}}</td></tr>|}}
{{#if: {{{rank|}}} |<tr class="charline"><td class="charline">Rank</td><td  class="charline">{{{rank}}}</td></tr>|}}
{{#if: {{{position|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Position</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{position}}}</td></tr>|}}
{{#if: {{{position|}}} |<tr class="charline"><td class="charline">Position</td><td  class="charline">{{{position}}}</td></tr>|}}
{{#if: {{{callsign|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Callsign</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{callsign}}}</td></tr>|}}
{{#if: {{{callsign|}}} |<tr class="charline"><td class="charline">Callsign</td><td  class="charline">{{{callsign}}}</td></tr>|}}
{{#if: {{{species|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Species</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{species}}}</td></tr>|}}
{{#if: {{{species|}}} |<tr class="charline"><td class="charline">Species</td><td  class="charline">{{{species}}}</td></tr>|}}
{{#if: {{{age|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Age</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{age}}}</td></tr>|}}
{{#if: {{{age|}}} |<tr class="charline"><td class="charline">Age</td><td  class="charline">{{{age}}}</td></tr>|}}
{{#if: {{{gender|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Gender</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{gender}}}</td></tr>|}}
{{#if: {{{gender|}}} |<tr class="charline"><td class="charline">Gender</td><td  class="charline">{{{gender}}}</td></tr>|}}
{{#if: {{{birthplace|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Birthplace</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{birthplace}}}</td></tr>|}}
{{#if: {{{birthplace|}}} |<tr class="charline"><td class="charline">Birthplace</td><td  class="charline">{{{birthplace}}}</td></tr>|}}
{{#if: {{{height|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Height</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{height}}}</td></tr>|}}
{{#if: {{{height|}}} |<tr class="charline"><td class="charline">Height</td><td  class="charline">{{{height}}}</td></tr>|}}
{{#if: {{{weight|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Weight</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{weight}}}</td></tr>|}}
{{#if: {{{weight|}}} |<tr class="charline"><td class="charline">Weight</td><td  class="charline">{{{weight}}}</td></tr>|}}
{{#if: {{{hair|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Hair</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{hair}}}</td></tr>|}}
{{#if: {{{hair|}}} |<tr class="charline"><td class="charline">Hair</td><td  class="charline">{{{hair}}}</td></tr>|}}
{{#if: {{{eyes|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">Eye&nbsp;color</td><td  style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{eyes|}}}</td></tr>|}}
{{#if: {{{eyes|}}} |<tr class="charline"><td class="charline">Eye&nbsp;color</td><td  class="charline">{{{eyes|}}}</td></tr>|}}


<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Interests'''</th></tr>
<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Interests'''</th></tr>
{{#if: {{{interests|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td colspan="2" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{interests}}}</td></tr>|}}
{{#if: {{{interests|}}} |<tr class="charline"><td colspan="2" class="charline">{{{interests}}}</td></tr>|}}


<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Education'''</th></tr>
<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Education'''</th></tr>
{{#if: {{{education|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td colspan="2" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{education}}}</td></tr>|}}
{{#if: {{{education|}}} |<tr class="charline"><td colspan="2" class="charline">{{{education}}}</td></tr>|}}


<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Service Record'''</th></tr>
<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Service Record'''</th></tr>
{{#if: {{{servicerecord|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td colspan="2" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{servicerecord}}}</td></tr>|}}
{{#if: {{{servicerecord|}}} |<tr class="charline"><td colspan="2" class="charline">{{{servicerecord}}}</td></tr>|}}


<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Decorations'''</th></tr>
<tr><th colspan="2" style="text-align:left; font-weight:normal; color:{{#switch:{{lc:{{{dept}}}}}|command=white|tactical conn=black|medical|counseling=white|security|engineering|operations=black|science=white|civilian=black|#default=white}}; background:{{#switch:{{lc:{{{dept}}}}}|command=#BA0000|engineering|operations|security=#e69500|tactical conn=White|medical|science|counseling=#1b9891|civilian=#BBB|#default=#BBB}};">'''Decorations'''</th></tr>
{{#if: {{{decorations|}}} |<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525"><td colspan="2" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">{{{decorations}}}</td></tr>|}}
{{#if: {{{decorations|}}} |<tr class="charline"><td colspan="2" class="charline">{{{decorations}}}</td></tr>|}}
</table></td></tr></table>
</table></td></tr></table>
<!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. -->
<!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. -->

Revision as of 16:18, 3 June 2016

<style>

tr.charline { spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: #252525 } td.charline { border-top: 1px solid #999; border-bottom: 1px solid #999; }

</style>










[[File:{{{image}}}|300px]]
Character Information
Interests
Education
Service Record
Decorations

Usage instructions

Paste the following code into the top of an article, filling all known fields:

{{Character Infobox
|dept=
|name=
|callsign=
|image=
|rank=
|position=
|species=
|age=
|gender=
|birthplace=
|height=
|weight=
|eyes=
|hair=
|interests=
|education=
|servicerecord=
|decorations=
}}

Display parameters

Dept: Command, Security, Tactical Conn, Medical, Counseling, Engineering, Ops, Science, Civilian

Gender: Male, Female, Hermophrodite, Neuter

Height: Xft Yin

Weight: XXXlbs