Template:Ship Stats: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>{{#if: {{{image|}}} | [[File:{{#setmainimage:{{{image}}}}}|thumb]] }}{{#if: {{{owner|}}} | ; Owner : {{{owner}}}}}{{#if: {{{co|}}} | ; Commanding Officer : {{{co}}}}}{{#if: {{{xo|}}} | ; Executive Officer : {{{xo}}}}}{{#if: {{{oo|}}} | ; Operations Officer : {{{oo}}}}}{{#if: {{{science|}}} | ; Science Officer : {{{science}}}}}{{#if: {{{sec|}}} | ; Security Chief : {{{sec}}}}}{{#if: {{{engineer|}}} | ; Chief Engineer : {{{engineer}}}}}{{#if: {{{cmo|}}} | ; Chief Medical Officer : {{{cmo}}}}}{{#if: {{{quote|}}} | ; Dedication Plaque : {{{quote}}}}}{{#if: {{{auxtype|}}} | {{#if: {{{auxname|}}} | ; {{{auxtype}}} : {{{auxname}}} }} }}{{#if: {{{discord|}}} | ; Server Link : {{{discord}}}}}
<onlyinclude>{{#if: {{{image|}}} | [[File:{{#setmainimage:{{{image}}}}}|thumb]] }}{{#if: {{{owner|}}} | ; Owner : {{{owner}}}}}{{#if: {{{co|}}} | ; Commanding Officer : {{{co}}}}}{{#if: {{{xo|}}} | ; Executive Officer : {{{xo}}}}}{{#if: {{{oo|}}} | ; Operations Officer : {{{oo}}}}}{{#if: {{{science|}}} | ; Science Officer : {{{science}}}}}{{#if: {{{sec|}}} | ; Security Chief : {{{sec}}}}}{{#if: {{{engineer|}}} | ; Chief Engineer : {{{engineer}}}}}{{#if: {{{cmo|}}} | ; Chief Medical Officer : {{{cmo}}}}}{{#if: {{{quote|}}} | ; Dedication Plaque : {{{quote}}}}}{{#if: {{{auxtype|}}} | {{#if: {{{auxname|}}} | ; {{{auxtype}}} : {{{auxname}}} }} }}{{#if: {{{discord|}}} | ; Server Link : {{{discord}}}}}
{{#if: {{{name|}}} | The {{{name}}} is a | She is a }} {{#ifexist: {{{class}}} | [[{{{class}}}]] | {{{class}}} }}.</onlyinclude>
{{#if: {{{name|}}} | The {{{name}}} is a | She is a }} {{#ifexist: {{{class}}} | [[{{{class}}}]] | {{{class}}} }}.</onlyinclude>
<noinclude>== Usage ==
<noinclude>The parameter of ''class'' is required.  The value of ''class'' will automatically be linked to the appropriate page if a page of that name exists.
The parameter of ''class'' is required.  The value of ''class'' will automatically be linked to the appropriate page if a page of that name exists.


=== Customizing Text ===
== Customizing Text ==
This template is designed to be used for any kind of vessel or vehicle as well as space stations or other facilities where the layout makes sense to use.  As a suggestion, if either of the following don't make sense for what you're doing:
This template is designed to be used for any kind of vessel or vehicle as well as space stations or other facilities where the layout makes sense to use.  As a suggestion, if either of the following don't make sense for what you're doing:
  She is a...
  She is a...
Line 15: Line 14:
  The station Janus is a...
  The station Janus is a...


=== Other Suggestions ===
== Other Suggestions ==
While it is not required to have either a ''co'' or ''owner'' set, it is recommended to set at least one of them in most cases.
While it is not required to have either a ''co'' or ''owner'' set, it is recommended to set at least one of them in most cases.


=== Parameters ===
== Parameters Example ==
<pre>
<pre>
{{Ship Stats
{{Ship Stats
Line 39: Line 38:
</pre>
</pre>


=== Example ===
=== How it Looks ===
{{Ship Stats
{{Ship Stats
|image=iss-image.jpeg
|image=iss-image.jpeg

Revision as of 17:01, 27 November 2017

She is a {{{class}}}. The parameter of class is required. The value of class will automatically be linked to the appropriate page if a page of that name exists.

Customizing Text

This template is designed to be used for any kind of vessel or vehicle as well as space stations or other facilities where the layout makes sense to use. As a suggestion, if either of the following don't make sense for what you're doing:

She is a...
The something is a...

Consider adjusting the name parameter so it makes more sense. An example is that of a space station, where it doesn't make sense for the text to say either of the above, so using:

|name=station Janus

Forces the template to say:

The station Janus is a...

Other Suggestions

While it is not required to have either a co or owner set, it is recommended to set at least one of them in most cases.

Parameters Example

{{Ship Stats
|image=iss-image.jpeg
|owner=Big Deal Guy
|co=Someone
|xo=Someone Else
|oo=Third Someone Else
|science=Science Dude
|sec=Security Dude
|engineer=Engineering Dude
|cmo=Doctor Dude
|quote="Once more unto the breech, once more." - William Shakespeare
|discord=Discord Server Invite Link
|name=Lollipop
|class=Gum-Ball Class Starship
|auxtype=Yellow Submarine
|auxname=Gummy
}}

How it Looks

Owner
Big Deal Guy
Commanding Officer
Someone
Executive Officer
Someone Else
Operations Officer
Third Someone Else
Science Officer
Science Dude
Security Chief
Security Dude
Chief Engineer
Engineering Dude
Chief Medical Officer
Doctor Dude
Dedication Plaque
"Once more unto the breech, once more." - William Shakespeare
Yellow Submarine
Gummy
Server Link
Discord Server Invite Link

The Lollipop is a Gum-Ball Class Starship.