Template:LCARS-Navbar: Difference between revisions
No edit summary |
(Adding ability to include a "StaticAge" for characters who are either from another time or are otherwise not aging (e.g. deceased).) |
||
(17 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| | <includeonly>{| style="align: right; float: right; clear: right; border: 0px; margin: 0 0 1em 1em; padding:0; width:240px;" cellspacing="0" | ||
|style="{{BackgroundColor|{{{Color3|{{{Color|}}}}}}}};border-radius: 14px 14px 0 0;border-spacing: 0px;border-color:{{Color|{{{Color|}}}}}" align="center" |{{#switch:{{{NotCrew}}}|Yes=|{{#switch:{{{Station}}}|Yes=<span style="color:white">'''Crew of''' [[{{{Ship}}}|<span style="color:white">'''''{{{Ship}}}'''''</span>]]|yes=<span style="color:white">'''Crew of''' [[{{{Ship}}}|<span style="color:white">'''''{{{Ship}}}'''''</span>]]|#default=<span style="color:white">'''Crew of the''' [[USS {{{Ship}}}|<span style="color:white">'''USS''' '''''{{{Ship}}}'''''</span>]]</span>}}}} | |style="{{BackgroundColor|{{{Color3|{{{Color|}}}}}}}};border-radius: 14px 14px 0 0;border-spacing: 0px;border-color:{{Color|{{{Color|}}}}}" align="center" |{{#switch:{{{NotCrew}}}|Yes=<span style="color:white"> </span>|{{#switch:{{{Station}}}|Yes=<span style="color:white">'''Crew of''' [[{{{Ship}}}|<span style="color:white">'''''{{{Ship}}}'''''</span>]]|yes=<span style="color:white">'''Crew of''' [[{{{Ship}}}|<span style="color:white">'''''{{{Ship}}}'''''</span>]]|#default=<span style="color:white">'''Crew of the''' [[USS {{{Ship}}}|<span style="color:white">'''USS''' '''''{{{Ship}}}'''''</span>]]</span>}}}} | ||
|- | |- | ||
| style="font-size: 90%;{{BackgroundColor|{{{Color|}}}}};" | | | style="font-size: 90%;{{BackgroundColor|{{{Color|}}}}};" | | ||
Line 8: | Line 8: | ||
|- | |- | ||
| style="font-size:90%;color:white;{{BackgroundColor|{{{Color2|{{{Color|}}}}}}}};border-radius: 0 0 14px 14px;" align="left" class="whitelinks"| | | style="font-size:90%;color:white;{{BackgroundColor|{{{Color2|{{{Color|}}}}}}}};border-radius: 0 0 14px 14px;" align="left" class="whitelinks"| | ||
{{Pips2Collar|{{{Rank}}}|{{{Color|}}}|{{{Style| | {{Pips2Collar|{{{Rank}}}|{{{Color|}}}|{{{Style|}}}}} | ||
{{#switch:{{{Serial}}}|None=|#default=<div style="color:white; margin:0; padding:0; text-align:center; font-size:1.2em; font-family:monospace;"><b><i>[[StarFleet Serial Number Register|{{{Serial}}}]]</i></b></div>}} | {{#switch:{{{Serial}}}|None=|#default=<div style="color:white; margin:0; padding:0; text-align:center; font-size:1.2em; font-family:monospace;"><b><i>[[StarFleet Serial Number Register|{{{Serial}}}]]</i></b></div>}} | ||
{{#if:{{{Pronunciation|}}}|* '''Pronunciation:''' {{{Pronunciation}}}|}} | |||
* '''Rank:''' {{{Rank}}} | * '''Rank:''' {{{Rank}}} | ||
* {{#switch:{{{Station}}}|Yes='''Station:''' [[{{{Ship}}}]]|yes='''Station:''' [['''''{{{Ship}}}''''']]|#default='''Ship:''' {{USS|{{{Ship}}}}}}} | {{#switch:{{{NotCrew}}}|Yes=*{{{Location}}}|{{#switch:{{{Station}}}|Yes=*'''Station:''' [[{{{Ship}}}]]|yes='''Station:''' [['''''{{{Ship}}}''''']]|#default=*'''Ship:''' {{USS|{{{Ship}}}}}}}}} | ||
* '''Position:''' {{{Post}}} | * '''Position:''' {{{Post}}} | ||
* '''Species:''' {{{Species}}} | * '''Species:''' {{{Species}}} | ||
* '''Gender:''' {{{Gender}}} | * '''Gender:''' {{{Gender}}} | ||
* '''Age:''' {{age|{{{BirthYear}}}|{{{BirthMonth}}}|{{{BirthDate}}}}} | {{#if:{{{Pronouns|}}}|* '''Pronouns:''' {{{Pronouns}}}|}} | ||
* '''Age:''' {{#if:{{{StaticAge|}}}|{{{StaticAge}}}|{{age|{{{BirthYear}}}|{{{BirthMonth}}}|{{{BirthDate}}}}}}} | |||
* '''DoB:''' {{{BirthYear}}}{{{BirthMonth}}}.{{{BirthDate}}} | * '''DoB:''' {{{BirthYear}}}{{{BirthMonth}}}.{{{BirthDate}}} | ||
* '''Birthplace:''' {{{BirthPlace}}} | * '''Birthplace:''' {{{BirthPlace}}} | ||
Line 33: | Line 35: | ||
|Gender = Female | |Gender = Female | ||
|Serial = AX - 100 - 256 | |Serial = AX - 100 - 256 | ||
|StaticAge = | |||
|BirthMonth = 17 | |BirthMonth = 17 | ||
|BirthDate = 03 | |BirthDate = 03 | ||
Line 60: | Line 63: | ||
|Gender = | |Gender = | ||
|Serial = | |Serial = | ||
|StaticAge = | |||
|BirthMonth = | |BirthMonth = | ||
|BirthDate = | |BirthDate = | ||
Line 69: | Line 73: | ||
===Image=== | ===Image=== | ||
If you have an image for your character, add the file name for it such as EnsignSmith.jpg in the ''Image'' | If you have an image for your character, add the file name for it such as EnsignSmith.jpg in the ''Image'' field. | ||
<font color=red>'''Do NOT put <nowiki>[[ or ]]</nowiki> or File: in the name. The template will automatically resize your image to fit the sidebar.'''</font> | <font color=red>'''Do NOT put <nowiki>[[ or ]]</nowiki> or File: in the name. The template will automatically resize your image to fit the sidebar.'''</font> | ||
Line 90: | Line 94: | ||
|Gender = Male | |Gender = Male | ||
|Serial = ZP - 314 - 159 | |Serial = ZP - 314 - 159 | ||
|StaticAge = | |||
|BirthMonth = 04 | |BirthMonth = 04 | ||
|BirthDate = 30 | |BirthDate = 30 | ||
Line 113: | Line 118: | ||
|Gender = Male | |Gender = Male | ||
|Serial = ZP - 314 - 159 | |Serial = ZP - 314 - 159 | ||
|StaticAge = | |||
|BirthMonth = 04 | |BirthMonth = 04 | ||
|BirthDate = 30 | |BirthDate = 30 | ||
Line 139: | Line 145: | ||
|Gender = Female | |Gender = Female | ||
|Serial = AX - 100 - 256 | |Serial = AX - 100 - 256 | ||
|StaticAge = | |||
|BirthMonth = 17 | |BirthMonth = 17 | ||
|BirthDate = 03 | |BirthDate = 03 | ||
Line 162: | Line 169: | ||
|Gender = Female | |Gender = Female | ||
|Serial = AX - 100 - 256 | |Serial = AX - 100 - 256 | ||
|StaticAge = | |||
|BirthMonth = 17 | |BirthMonth = 17 | ||
|BirthDate = 03 | |BirthDate = 03 | ||
Line 186: | Line 194: | ||
|Gender = Female | |Gender = Female | ||
|Serial = KA - 112 - 042 | |Serial = KA - 112 - 042 | ||
|StaticAge = | |||
|BirthMonth = 10 | |BirthMonth = 10 | ||
|BirthDate = 29 | |BirthDate = 29 | ||
Line 210: | Line 219: | ||
|Gender = Female | |Gender = Female | ||
|Serial = KA - 112 - 042 | |Serial = KA - 112 - 042 | ||
|StaticAge = | |||
|BirthMonth = 10 | |BirthMonth = 10 | ||
|BirthDate = 29 | |BirthDate = 29 | ||
Line 238: | Line 248: | ||
|Gender = Female | |Gender = Female | ||
|Serial = GN-413-527 | |Serial = GN-413-527 | ||
|StaticAge = | |||
|BirthMonth = 05 | |BirthMonth = 05 | ||
|BirthDate = 18 | |BirthDate = 18 | ||
Line 253: | Line 264: | ||
|Featured Nominee|1 | |Featured Nominee|1 | ||
}} | }} | ||
|Image = | |Image = Ceciri 2.0.jpg | ||
}} | }} | ||
Line 269: | Line 280: | ||
|Gender = Female | |Gender = Female | ||
|Serial = GN-413-527 | |Serial = GN-413-527 | ||
|StaticAge = | |||
|BirthMonth = 05 | |BirthMonth = 05 | ||
|BirthDate = 18 | |BirthDate = 18 | ||
Line 284: | Line 296: | ||
|Featured Nominee|1 | |Featured Nominee|1 | ||
}} | }} | ||
|Image = | |Image = Ceciri 2.0.jpg | ||
}} | }} | ||
</pre> | </pre> | ||
Line 290: | Line 302: | ||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Sidebar templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 23:44, 21 November 2024
Usage instructions
Paste the following code into the top of an article and then take out Seff's info and put in your own character's information. Valid colors are Red, Gold, Blue, Teal, Violet, Black, Silver, Green. Not all ranks are available in all colors. Use full rank names (except for Lieutenant JG and Lt. Commander, and Lt. Colonel). Pipstyle can be changed from Default to DS9 to Slanted or Alt or RetroSlanted. Other styles may work too, but are not tested. For date of birth, add a leading zero for single digit months and dates. The sidebar will automatically calculate your character's age as well. {{LCARS-Navbar |Image = |FirstName = |LastName = |Ship = |UserName = |Rank = |Style = |Post = |Color = |Species = |Gender = |Serial = |StaticAge = |BirthMonth = |BirthDate = |BirthYear = |BirthPlace = |Extra = |}} ImageIf you have an image for your character, add the file name for it such as EnsignSmith.jpg in the Image field. Do NOT put [[ or ]] or File: in the name. The template will automatically resize your image to fit the sidebar. If you don't have an image for your character, just omit the field and a placeholder will show up instead. You can use the "EXTRA" field if you want to add something else to the bottom of your sidebar such as another image, a badge such as the Featured Bio Contest winner badge or links to subpages such as an academy transcript or a medical record. If you don't want to add anything, just leave it blank as well.
NEW: Alternate Crew Message
Serve on a station? Now you can use the LCARS-Navbar as well! Simply add the {{LCARS-Navbar |FirstName = James |Ship = Deep Space 285 |Station = Yes |UserName = JamesTPau |Rank = Lt. Commander |Style = RetroSlanted |Post = Unassigned |Color = Silver |Species = [[Terran]] / [[Vulcan]] |Gender = Male |Serial = ZP - 314 - 159 |StaticAge = |BirthMonth = 04 |BirthDate = 30 |BirthYear = 2367 |BirthPlace = [[Shi'Kahr]], [[Vulcan]] |Image = JamesTPau.jpg |Extra = }}
Bonus ExamplesColours
This template allows you to specify multiple colours for different sections of the sidebar! Like the main colour, valid colors are Red, Gold, Blue, Teal, Violet, Black, Silver, Green. {{LCARS-Navbar |FirstName = Seff |Ship = Constitution-B |UserName = Aigle Phos |Rank = Lt. Commander |Style = STO |Post = Tactical Officer |Color = Gold |Color2 = Blue |Color3 = Red |Species = [[Zaldan]] |Gender = Female |Serial = AX - 100 - 256 |StaticAge = |BirthMonth = 17 |BirthDate = 03 |BirthYear = 2352 |BirthPlace = Zaldan Colony, Ricktor Prime |Image = Seff.png |Extra = }}
Using Template:Ribbons Rack to display ribbons
{{LCARS-Navbar |Image = Aigle Phos.png |FirstName = Aigle |LastName = Phos |Ship = Doyle-A |UserName = JamesTPau |Rank = Lieutenant JG |Style = RetroSlanted |Post = Science Officer |Color = Blue |Species = [[Laudean]] |Gender = Female |Serial = KA - 112 - 042 |StaticAge = |BirthMonth = 10 |BirthDate = 29 |BirthYear = 2351 |BirthPlace = Great City, Damodara, [[Duronis II|Til'ahn]] |Extra = {{Ribbons Rack |Starfleet Academy Graduate Ribbon|1 }} }}
Including links to Academy Transcript and Medical RecordNB: The new lines are to make it easier to read, you do not want them in the actual code. For Extra, it needs to be just one line (so remove the linebreaks when copying and pasting.)
{{LCARS-Navbar |FirstName = Ceciri |LastName = Hakashri |Ship = Doyle-A |UserName = Ceciri |Rank = Lt Commander |Style = RetroSlanted |Post = Chief HCO |Color = Red |Species = [[Cygnian]] |Gender = Female |Serial = GN-413-527 |StaticAge = |BirthMonth = 05 |BirthDate = 18 |BirthYear = 2363 |BirthPlace = Cygnet XIV |Extra =<center>[[Ceciri Hakashri/AcademyDiploma|Academy Transcript]] • [[Ceciri Hakashri/Medical Record|Medical History]] <br> [[Ceciri Hakashri|Main Page]] • [[Ceciri Hakashri/Navbar|Edit this nav]] • [[Ceciri Hakashri/ID|ID]]</center> {{Ribbons Rack |Color=Blue |Purple Heart|2 |Good Conduct Ribbon|1 |Starfleet Academy Graduate Ribbon|1 |Legion of Merit|1 |Defense of Temporal Flow Ribbon|1 |Prometheus Ribbon|1 |Featured Nominee|1 }} |Image = Ceciri 2.0.jpg }} |