Template:Character Infobox: Difference between revisions
From Star Trek: Theurgy Wiki
SummerDawn (talk | contribs) (Added position to template) |
SummerDawn (talk | contribs) 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 | {{#if: {{{name|}}} |<tr class="charline"><td class="charline">Name</td><td class="charline">{{{name}}}</td></tr>|}} | ||
{{#if: {{{rank|}}} |<tr | {{#if: {{{rank|}}} |<tr class="charline"><td class="charline">Rank</td><td class="charline">{{{rank}}}</td></tr>|}} | ||
{{#if: {{{position|}}} |<tr | {{#if: {{{position|}}} |<tr class="charline"><td class="charline">Position</td><td class="charline">{{{position}}}</td></tr>|}} | ||
{{#if: {{{callsign|}}} |<tr | {{#if: {{{callsign|}}} |<tr class="charline"><td class="charline">Callsign</td><td class="charline">{{{callsign}}}</td></tr>|}} | ||
{{#if: {{{species|}}} |<tr | {{#if: {{{species|}}} |<tr class="charline"><td class="charline">Species</td><td class="charline">{{{species}}}</td></tr>|}} | ||
{{#if: {{{age|}}} |<tr | {{#if: {{{age|}}} |<tr class="charline"><td class="charline">Age</td><td class="charline">{{{age}}}</td></tr>|}} | ||
{{#if: {{{gender|}}} |<tr | {{#if: {{{gender|}}} |<tr class="charline"><td class="charline">Gender</td><td class="charline">{{{gender}}}</td></tr>|}} | ||
{{#if: {{{birthplace|}}} |<tr | {{#if: {{{birthplace|}}} |<tr class="charline"><td class="charline">Birthplace</td><td class="charline">{{{birthplace}}}</td></tr>|}} | ||
{{#if: {{{height|}}} |<tr | {{#if: {{{height|}}} |<tr class="charline"><td class="charline">Height</td><td class="charline">{{{height}}}</td></tr>|}} | ||
{{#if: {{{weight|}}} |<tr | {{#if: {{{weight|}}} |<tr class="charline"><td class="charline">Weight</td><td class="charline">{{{weight}}}</td></tr>|}} | ||
{{#if: {{{hair|}}} |<tr | {{#if: {{{hair|}}} |<tr class="charline"><td class="charline">Hair</td><td class="charline">{{{hair}}}</td></tr>|}} | ||
{{#if: {{{eyes|}}} |<tr | {{#if: {{{eyes|}}} |<tr class="charline"><td class="charline">Eye 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 | {{#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 | {{#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 | {{#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 | {{#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>
|
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