Template:ShipCharSum: Difference between revisions
Jump to navigation
Jump to search
(→Example: renaming example officer) |
(trying complicated nickname ifs and switch) |
||
Line 9: | Line 9: | ||
{|width=600 align=center style="background:#{{DefBGColor|{{{Color}}}}}; color:{{#switch: {{{Color|}}}| Orange=navy|Gold=navy|White=navy|{{{Color}}}=lightgray}}; border-radius: 10px 10px 10px 10px;" | {|width=600 align=center style="background:#{{DefBGColor|{{{Color}}}}}; color:{{#switch: {{{Color|}}}| Orange=navy|Gold=navy|White=navy|{{{Color}}}=lightgray}}; border-radius: 10px 10px 10px 10px;" | ||
|width=5| | |width=5| | ||
|{{TileCenter|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}|{{{Color}}}|{{{CurrentPost}}}|{{#if: {{{Image|}}}|{{{Image}}}|}}|10}} | |{{TileCenter|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}|{{{Color}}}|{{{CurrentPost}}}|{{#if: {{{Image|}}}|{{{Image}}}|}}|10{{#if: {{{Nickname|}}}|{{!}}NICKNAME={{{Nickname}}}|}}}} | ||
|width=5| | |width=5| | ||
| | | | ||
* '''{{{{#switch: {{{ | * '''[[{{nraw|{{{FirstName}}}|{{#if: {{{LastName|}}}|{{{LastName}}}|}}}}|{{#if: {{{Nickname|}}}|<font{{#switch: {{{Color1|}}}|Orange=>|Gold=>|White=>|{{{Color1}}}=color{{=}}white>}}{{{Nickname}}}|{{{FirstName}}}{{#if: {{{LastName|}}}|{{{LastName}}}|}}}}]]''': {{#if: {{{StartDate|}}}|{{{StartDate}}}|Past}} to {{#if: {{{EndDate|}}}|{{{EndDate}}}|Present}} | ||
**'''{{#if: {{{PrevPost|}}}|<font>{{{PrevPost}}}, </font>|}}{{{CurrentPost}}}''' | **'''{{#if: {{{PrevPost|}}}|<font>{{{PrevPost}}}, </font>|}}{{{CurrentPost}}}''' | ||
{{{Summary}}} | {{{Summary}}} | ||
Line 18: | Line 18: | ||
|}{{#if: {{{FirstName1|}}}|{{(!}}width=600 align=center style="background:#{{DefBGColor|{{{Color1}}}}}; color:{{#switch: {{{Color1|}}}|Orange=navy|Gold=navy|White=navy|{{{Color1}}}=lightgray}}; border-radius: 10px 10px 10px 10px;" | |}{{#if: {{{FirstName1|}}}|{{(!}}width=600 align=center style="background:#{{DefBGColor|{{{Color1}}}}}; color:{{#switch: {{{Color1|}}}|Orange=navy|Gold=navy|White=navy|{{{Color1}}}=lightgray}}; border-radius: 10px 10px 10px 10px;" | ||
{{!}}width=5{{!}} | {{!}}width=5{{!}} | ||
{{!}}{{TileCenter|{{{FirstName1}}}|{{#if: {{{LastName1|}}}|{{{LastName1}}}|}}|{{{Color1}}}|{{{CurrentPost1}}}|{{#if: {{{Image1|}}}|{{{Image1}}}|}}|10}} | {{!}}{{TileCenter|{{{FirstName1}}}|{{#if: {{{LastName1|}}}|{{{LastName1}}}|}}|{{{Color1}}}|{{{CurrentPost1}}}|{{#if: {{{Image1|}}}|{{{Image1}}}|}}|10{{#if: {{{NickName1|}}}|{{!}}NICKNAME={{{NickName}}}|}}}} | ||
{{!}}width=5{{!}} | {{!}}width=5{{!}} | ||
{{!}} | {{!}} | ||
Line 27: | Line 27: | ||
{{!)}}|}}{{#if: {{{FirstName2|}}}|{{(!}}width=600 align=center style="background:#{{DefBGColor|{{{Color2}}}}}; color:{{#switch: {{{Color2|}}}|Orange=navy|Gold=navy|White=navy|{{{Color2}}}=lightgray}}; border-radius: 10px 10px 10px 10px;" | {{!)}}|}}{{#if: {{{FirstName2|}}}|{{(!}}width=600 align=center style="background:#{{DefBGColor|{{{Color2}}}}}; color:{{#switch: {{{Color2|}}}|Orange=navy|Gold=navy|White=navy|{{{Color2}}}=lightgray}}; border-radius: 10px 10px 10px 10px;" | ||
{{!}}width=5{{!}} | {{!}}width=5{{!}} | ||
{{!}}{{TileCenter|{{{FirstName2}}}|{{#if: {{{LastName2|}}}|{{{LastName2}}}|}}|{{{Color2}}}|{{{CurrentPost2}}}|{{#if: {{{Image2|}}}|{{{Image2}}}|}}|10}} | {{!}}{{TileCenter|{{{FirstName2}}}|{{#if: {{{LastName2|}}}|{{{LastName2}}}|}}|{{{Color2}}}|{{{CurrentPost2}}}|{{#if: {{{Image2|}}}|{{{Image2}}}|}}|10{{#if: {{{NickName2|}}}|{{!}}NICKNAME={{{NickName}}}|}}}} | ||
{{!}}width=5{{!}} | {{!}}width=5{{!}} | ||
{{!}} | {{!}} |
Revision as of 18:57, 18 August 2014
Directions
To use as the intro blurb on your character page (or for any other reason), just type the following:
{{ShipCharSum |Ship = |ShipNick = (optional - if you'd like the title to hide the "-C" or whatever letter from your ship's name) |ShipClass = |ShipReg = |CO1-First = |CO1-Last = |CO2-First = (optional, in case you've served under two COs on the same ship) |CO2-Last = (optional, see above) |CO3-First = (optional, in case you've served under three COs on the same ship) |CO3-Last = (optional, see above) |Color = |FirstName = |LastName = |CurrentPost = |Image = (file name of your character pic) |PrevPost = (optional, any or all posts you've previously served on aboard this ship) |StartDate = (Real time date, or Stardate, whichever you prefer) |EndDate = (ditto) |Summary = (the summary description of your character) }}
Example
|