Template:Char info: Difference between revisions

From StarFleet Bureau of Information
Line 1: Line 1:
{| style="width: 80%; margin: 0 0 0 10%; background: {{{COLOR1}}}; border: 1px solid #aaa;"
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: {{{COLOR1}}}; border: 1px solid #aaa;"
|-  
|-  
| style="width: 52px; padding: 0px 0px 0px 0.5em; text-align: center;" |  
| style="width: 52px; padding: 0px 0px 0px 0.5em; text-align: center;" |  
Line 5: Line 5:
|}
|}


{| style="width: 80%; margin: 0 0 0 10%; background: {{{COLOR2}}}; border: 1px solid #aaa; border-bottom: 1px solid #aaa;"
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: {{{COLOR2}}}; border: 1px solid #aaa; border-bottom: 1px solid #aaa;"
|-
|-
| style="width: 52px; text-align: center;" |  
| style="width: 52px; text-align: center;" |  

Revision as of 16:13, 10 May 2009

{{{BILLET}}} on the [[{{{SHIP}}}]]
Preceded by:
{{{PREV}}}
[{{{BIOLINK}}} {{{NAME}}}]
{{{STARTD}}} - {{{ENDD}}}
Succeeded by:
{{{NEXT}}}


This is my first template with parameters, so bear with me if something doesn't work properly.

The idea is to use this template at the bottom of characters biofile. The original design for this template is by Andrew Smith, but it has been coded as a parameters template by me. Suggestions and corrections are more than welcome.

The syntax is this:

{{Char_info| PARAMETER1 = value | PARAMETER2 = value | ... | PARAMETERn = value}}
(the blank spaces are important!)

Available parameters as follow:

  • COLOR1 = see note below,
  • COLOR2 = see note below,
  • SHIP = in the form USS XXXX (ie: USS Amberjack),
  • BILLET
  • PREV = rank+name of the previous officer. If non existant, write: Office non existent
  • BIOLINK = link to biofile if available. Link to the main ship page if not available,
  • NAME = rank+name of the current officer,
  • NEXT = rank+name of succeding officer. If non existant, write: Office Pending,
  • STARTD = start year for current billet,
  • ENDD = end year for current billet. Write Present if still pending.

For the upper most bars (the bar above the "title" and the bar below it) use the following codes for division:

#8B0000 = Command Division (red)
#B8860B = Operations Division / Engineering Division (mustard)
#0000CD = Science Division (blue)
#008B8B = Medical Division (sky blue/teal)
#006400 = Marine Division (green)
#ffe062 = Support/Security Division (light mustard)

Enjoy!