Template:STOShipBox

From Coreth's Cacophony of Characters
Revision as of 06:25, 17 April 2018 by Coreth (talk | contribs) (Created page with "<includeonly> {| class="chinfo" |- {{#if: {{{image|}}}|{{!}}colspan="2" class="chinfo" {{!}} [[Image:{{{image}}}{{!}}300px{{!}}]] }} |- {{#if: {{{caption|}}}|{{!}}colspan="2"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search



Hi-I'm a caption
T'Pring
Starship Data
Status: Oops-it broke!



Attribution

This template was derived from the STO Geekipedia (currently defunct).

How to use the Ship Infobox

The long and involved process works thusly. If you just want the Box, go directly to the Cheat Sheet.

Trigger the use of the Ship Infobox on your page if you plan to include it. At the top of your edit window, enter:

{{STOShipBox

Below that, you'll want to fill out all the parameters that you can or care to fill out. For this, you'll need the name of the parameter that corresponds to the field you'll want to fill; in most cases, the parameter names are the same as the name of the field, but they differ in some. A complete list can be found below. The format for filling in a parameter is as follows:

| parameter = value
eg.
| name = James T. Kirk

This will replace the {{{name}}} placeholder in the original Character Infobox with 'James T. Kirk'. Each parameter should be put in a new line for ease of parsing and debugging in case something goes wrong.

For easiest readability, you'll want to offer single terms that summarize some or all of your character's applicable information. The main body of the page allows sufficient room to expand on things, the Character Infobox is mostly meant for an at-a-glance summary of the most important character data.

Close the Template. This is done by appending the following at the end of your list:

|}}

And with this, you're set.

List of Parameters

Unless otherwise noted, parameters will simply not appear in the box if the value is left blank (eg. | image = ). This versatility will allow us to add new parameters to the box in the future without removing the existing ones, and letting you pick and choose which ones to fill out.

  • image - Character image. Should not be wider than 300 pixels. If it's too wide (or too small) it will be automatically reduced (or expanded) to the appropriate size (but clicking on the image will display the actual image rather than the adjusted version). If you have no image, don't include this parameter and it will default to a placeholder image instead. It is suggested you upload your image files rather than try to link to them.
  • caption - Text that goes right beneath the image, if you think the image requires further commentary. If not, don't include this parameter and there will be no blank space between picture and name.
  • name - Your ship's name; it is advisable to include the prefix as well (eg. USS, IKS, RRW). This will appear in big bold letters.
  • captain - Who's running the starship.


  • shipclass - Class of the vessel, eg. Constitution class.
  • registry - If applicable, the registry number of the ship; usually only found in Starfleet ships
  • status - Current status of the ship; could be active, retired, destroyed, etc.
  • footnotes - Room for any notes you want available at a glance that aren't covered by the above categories.

The Character Infobox Cheat Sheet

Just copy/paste the below list into your character's Edit box and fill in any categories that you might care to fill in. Leave all other lines blank, but do not delete them (parameters with no value will not be displayed in the final infobox, but blank parameters still appear - very annoying, we're working on it).

{{STOShipBox
| image             = 
| caption           = 
| name              = 
| captain           = 
| shipclass         = 
| registry          = 
| faction           =
| status            = 
| footnotes         = 
|}}

As an example, the Character Infobox on this page for T'Pring uses the following:

{{STOShipBox
| image = Confidentialimage.jpg
| caption = Hi-I'm a caption
| name = T'Pring
| captain = 
| shipclass = 
| registry = 
| faction = 
| status = Oops-it broke!
| footnotes = 
|}}