Template:Ship Sidebar: Difference between revisions

From LCARS
(New Template! Ship sidebar <3)
 
m (Added instructions and examples)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>{{Ship Sidebar
|image      = USS Defiant (NX-74205), quarter view.jpg
|img-alt    = USS Joshua Norton
|registry  = NCC-74819-A
|class      = Defiant Class
|height    = 25.5m
|length    = 119.5m
|decks      = 4
|crew      = 32
|launch    = Sept 15th 2415
|retired    =
|dedication = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"It is human nature to yearn to be what we were never intended for. It is singular, but it is so." -Mark Twain
}}Provided below is the template for the ship sidebar, with an example of what it should look like. Please include this on ship pages, and fill in the parameters as much as you can. Anything you do not wish to share or does not apply, feel free to remove from the code for you page. If you add information later, it does not matter what order the variables are in.
<pre>{{Ship Sidebar
|image      = picture of ship.jpg
|img-alt    = ship name
|registry  = ship registry number
|class      = ship class
|height    = height of ship
|length    = length of ship
|decks      = number of decks
|crew      = number of crew
|launch    = date of launch
|retired    = date of retirement/destruction
|dedication = quote from dedication plaque
}}</pre>
The code for the provided sample looks like this:
<pre>{{Ship Sidebar
|image      = USS Defiant (NX-74205), quarter view.jpg
|img-alt    = USS Joshua Norton
|registry  = NCC-74819-A
|class      = Defiant Class
|height    = 25.5m
|length    = 119.5m
|decks      = 4
|crew      = 32
|launch    = Sept 15th 2415
|retired    =
|dedication = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"It is human nature to yearn to be what we were never intended for. It is singular, but it is so." -Mark Twain
}}</pre>
[[Category:Templates|Sidebar, Ship]]</noinclude>
<includeonly>{| class="sidebar"
<includeonly>{| class="sidebar"
|-
|-
Line 27: Line 73:
{{!}} {{{retired}}}   
{{!}} {{{retired}}}   
{{!}}- }}
{{!}}- }}
{{#if:{{{dedication|}}}| {{!}} {{{dedication}}}
{{#if:{{{dedication|}}}| {{!}} colspan="2" {{{!}} {{{dedication}}}
}}
}}
|}</includeonly>
|}</includeonly>

Latest revision as of 21:18, 1 February 2018


Provided below is the template for the ship sidebar, with an example of what it should look like. Please include this on ship pages, and fill in the parameters as much as you can. Anything you do not wish to share or does not apply, feel free to remove from the code for you page. If you add information later, it does not matter what order the variables are in.

{{Ship Sidebar
|image      = picture of ship.jpg
|img-alt    = ship name
|registry   = ship registry number
|class      = ship class
|height     = height of ship
|length     = length of ship
|decks      = number of decks
|crew       = number of crew
|launch     = date of launch
|retired    = date of retirement/destruction
|dedication = quote from dedication plaque
}}

The code for the provided sample looks like this:

{{Ship Sidebar
|image      = USS Defiant (NX-74205), quarter view.jpg
|img-alt    = USS Joshua Norton
|registry   = NCC-74819-A
|class      = Defiant Class
|height     = 25.5m
|length     = 119.5m
|decks      = 4
|crew       = 32
|launch     = Sept 15th 2415
|retired    =
|dedication =      "It is human nature to yearn to be what we were never intended for. It is singular, but it is so." -Mark Twain
}}