Template:Char info: Difference between revisions

From StarFleet Bureau of Information
mNo edit summary
mNo edit summary
 
(41 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-top: 10px solid {{{COLOR1}}};"
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-top: 10px solid {{{COLOR1}}}; border-bottom: 0;"
|-  
|-  
| style="width: 52px; padding: 0px 0px 0px 0.5em; text-align: center;" |  
| style="width: 52px; padding: 0px 0px 0px 0.5em; text-align: center;" |  
| style="padding: 0.00em 0.00em; text-align: center;" | '''{{{BILLET}}} on the USS ''{{{SHIP}}}'''''
| style="padding: 0.00em 0.00em; text-align: center;" | '''{{{BILLET}}}''' of the '''''{{{SHIP}}}'''''
|}
|}


Line 8: Line 8:
|-
|-
| style="width: 52px; text-align: center;" |  
| style="width: 52px; text-align: center;" |  
| style="text-align: center;" | '''Preceded by:''' <br/> {{{PREC}}} <br/>  
| style="text-align: center;" | '''Preceded by:''' <br/> {{{PREV}}} <br/>  
|}
|}


Line 14: Line 14:
|-
|-
| style="width: 52px; text-align: center;" |  
| style="width: 52px; text-align: center;" |  
| style="text-align: center;" | '''[[{{{BIOLINK}}} | {{{NAME}}}]]''' <br/> Time period held ({{{STARTD}}} - {{{ENDD}}}) <br/>  
| style="text-align: center;" | '''{{{NAME}}}''' <br/> '''{{{STARTD}}}''' - '''{{{ENDD}}}''' <br/>  
|}
|}


Line 22: Line 22:
| style="text-align: center;" | '''Succeeded by:''' <br/> {{{NEXT}}} <br/>  
| style="text-align: center;" | '''Succeeded by:''' <br/> {{{NEXT}}} <br/>  
|}
|}
<noinclude>
This is my first template with parameters, so bear with [[Federico Colnago|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|Andrew Smith]], but it has been coded as a parameters template by me. Suggestions and corrections are more than welcome.
The syntax is this:
&#123;&#123;Char_info| PARAMETER1 = value  | PARAMETER2 = value  | ... | PARAMETERn = value&#125;&#125;<br />
Available parameters as follow:
* '''COLOR1''' = see note below,
* '''COLOR2''' = see note below,
* '''SHIP''' = ship's name. '''MUST BE FORMATTED AS A LINK''',
* '''BILLET'''
* '''PREV''' = rank+name of the previous officer. If non existant, write: ''Office nonexistent''
* '''NAME''' = rank+name of the current officer. '''MUST BE FORMATTED AS LINK''',
* '''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:
&#35;8b0000 = Command Division (red)<br />
&#35;b8860b = Operations Division / Engineering Division (mustard)<br />
&#35;0000cd = Science Division (blue) <br />
&#35;008b8b = Medical Division (sky blue/teal) <br />
&#35;006400 = Marine Division (green)<br />
&#35;ffe062 = Support/Security Division (light mustard)<br />
&#35;555555 = Flight Operation Division (grey)<br />
&#35;000000 = Non officer/Maquis/Other (black)<br />
Enjoy!
</noinclude>

Latest revision as of 15:38, 14 May 2009

{{{BILLET}}} of the {{{SHIP}}}
Preceded by:
{{{PREV}}}
{{{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}}

Available parameters as follow:

  • COLOR1 = see note below,
  • COLOR2 = see note below,
  • SHIP = ship's name. MUST BE FORMATTED AS A LINK,
  • BILLET
  • PREV = rank+name of the previous officer. If non existant, write: Office nonexistent
  • NAME = rank+name of the current officer. MUST BE FORMATTED AS LINK,
  • 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)
#555555 = Flight Operation Division (grey)
#000000 = Non officer/Maquis/Other (black)

Enjoy!