Template:Ship Stats: Difference between revisions

Template page
No edit summary
m (Minor typo correction)
 
(38 intermediate revisions by the same user not shown)
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>{| class="infobox" cellpadding=0 cellspacing=0 width=320px style="-moz-border-radius:5px; border-radius:5px; border-spacing: 0; font-family: arial, sans-serif; padding: 6px; margin: {{#switch:{{{align|}}}|left=0 1em 1em 0|center=1em 1em 1em 1em|0 0 1em 1em}}; font-size: 11px; line-height: normal; background-color:{{{mainbg|#ffffff}}}; border:2px solid {{{mainborder|#ffffff}}}; float:{{{align|right}}}; color:{{{text|black}}};"
{{#if: {{{name|}}} | The {{{name}}} is a | She is a }} {{#ifexist: {{{class}}} | [[{{{class}}}]] | {{{class}}} }}.</onlyinclude>
|colspan="2" bgcolor="{{{titlebg|#e6e6e6}}}" style="-moz-border-radius-topleft:3px; -moz-border-radius-topright:3px; padding:12px; color:{{{titletext|black}}}; font-family:arial; font-size: 18.2px; text-align:center;" {{!}} '''{{{name|{{PAGENAME}}}}}'''
<noinclude>== 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:
|style="padding: 2px;"|
She is a...
|-
The something is a...
|align="center" colspan="2" style="background-color: {{{imagebg|#ffffff}}}; padding: 2px;"|[[File:{{{image|Nobiopic.png}}}|{{{scale|300px}}}]]
 
|-
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:
{{#if: {{{{type|}}} {{aff|}}} {{{quote|}}} {{{owner|}}} {{{co|}}} {{{xo|}}} {{{oo|}}} {{{science|}}} {{{|}}} {{{sec|}}} {{{engineer|}}} {{{cmo|}}} {{{pilot|}}} {{{xia|}}} {{{ai|}}} {{{discord|}}} {{{status|}}} {{{class|}}} {{{auxtype|}}} {{{auxname|}}} {{{auxtype|}}}|{{!}} colspan="2" style="border-bottom:2px solid {{{line|#ffffff}}}; text-align:center; padding: 2px;"{{!}}{{{caption|}}} }}
|name=station Janus
|- class{{{name|{{PAGENAME}}}}}="hiddenStructure"
 
| colspan="2" style="border-bottom:2px solid {{{line|#ffffff}}}; color:{{{nametext|black}}}; background-color: {{{nicknumbg|#ffffff}}}; font-size: 13.5px; text-align:center; padding: 2px;"|<b><i>{{{fullname|{{PAGENAME}}}}}</i></b>
Forces the template to say:
|-
The station Janus is a...
|style="padding: 2px;"|
 
|-class{{#if: {{{type|}}} {{{aff|}}} {{{quote|}}} {{{owner|}}} {{{co|}}} {{{xo|}}} {{{oo|}}} {{{science|}}} {{{|}}} {{{sec|}}} {{{engineer|}}} {{{cmo|}}} {{{pilot|}}} {{{xia|}}} {{{ai|}}} {{{discord|}}} {{{status|}}} {{{class|}}} {{{auxtype|}}} {{{auxname|}}} {{{auxtype|}}}|{{!}}-{{!}}}}="hiddenStructure"
== Other Suggestions ==
|
* 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.
{|class= "collapsible" cellspacing="0" width="100%" align="center" style="tpadding: 0; background-color:#d9d9d9;"
* 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.
! colspan="6" style="text-align:center; color:{{{headertext|black}}}; border:1px solid {{{line|#ffffff}}}; background:{{{headerbg|#A9A9A9}}}; font-size:13px; padding: 4px"|'''{{{infoheader|Information}}}'''
 
|-
== Parameters Example ==
{{Alternating rows table section
|es=background:{{{esbg|#d9d9d9}}};
|os=background:{{{osbg|#bfbfbf}}};
|
{{#if:{{{class|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Class:''' {{!!}} {{#ifexist: {{{class}}} | [[{{{class}}}]] | {{{class}}} }} }}
|
{{#if:{{{type|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Type:''' {{!!}} {{#ifexist: {{{type}}} | [[{{{type}}}]] | {{{type}}} }} }}
|
{{#if:{{{aff|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Affiliation:''' {{!!}} {{#ifexist: {{{aff}}} | [[{{{aff}}}]] | {{{aff}}} }} }}
|
{{#if:{{{owner|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Owner:''' {{!!}} {{{owner}}} }}
|
{{#if:{{{co|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Commanding Officer:''' {{!!}} {{{co}}} }}
|
{{#if:{{{xo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Executive Officer:''' {{!!}} {{{xo}}} }}
|
{{#if:{{{oo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Operations Officer:''' {{!!}} {{{oo}}} }}
|
{{#if:{{{science|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Science Officer:''' {{!!}} {{{science}}} }}
|
{{#if:{{{sec|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Security Chief:''' {{!!}} {{{sec}}} }}
|
{{#if:{{{engineer|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Chief Engineer:''' {{!!}} {{{engineer}}} }}
|
{{#if:{{{cmo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Chief Medical Officer:''' {{!!}} {{{cmo}}} }}
|
{{#if:{{{pilot|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Pilot:''' {{!!}} {{{pilot}}} }}
|
{{#if:{{{xia|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''[[Xia]]:''' {{!!}} {{{xia}}} }}
|
{{#if:{{{ai|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''[[MSAI]]:''' {{!!}} {{{ai}}} }}
|
{{#if:{{{quote|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Quote:''' {{!!}} {{{quote}}} }}
|
{{#if:{{{auxname|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''{{{auxtype|Auxilary}}}:''' {{!!}} {{{auxname}}} }}
|
{{#if:{{{auxpilot|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''{{{auxname|Auxilary}}} Pilot:''' {{!!}} {{{auxpilot}}} }}
|
{{#if:{{{discord|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Discord Server:''' {{!!}} {{{discord}}} }}
|
{{#if:{{{status|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Status:''' {{!!}} {{{status}}} }}
}}
|}
|}{{#ifeq: {{{status|Active}}} | Active | {{#ifexist: Category:{{{aff}}} Vessels and Facilities | [[Category:{{{aff}}} Vessels and Facilities]]}}}}{{#ifeq: {{{status}}} | Unassigned | {{#ifexist: Category:Unassigned {{{aff}}} Vessels and Facilities | [[Category:Unassigned {{{aff}}} Vessels and Facilities]]}}}}{{#ifeq: {{{status}}} | Destroyed | [[Category:Missing or Destroyed]]|}}{{#ifeq: {{{status}}} | Missing | [[Category:Missing or Destroyed]]|}}{{#ifeq: {{{status}}} | Unknown | [[Category:Missing or Destroyed]]|}}
</onlyinclude>
<noinclude>
<br style="clear: both;" />
----
<noinclude>
== Code Example ==
<pre>
<pre>
{{Ship Stats
{{Ship Stats
|image=iss-image.jpeg
|image=Ship-no-image.png
|owner=Big Deal Guy
|owner=Big Deal Guy
|co=Someone
|co=Someone
Line 28: Line 77:
|engineer=Engineering Dude
|engineer=Engineering Dude
|cmo=Doctor Dude
|cmo=Doctor Dude
|pilot=Your Most Excellent Pilot
|xia=Your Awesome XIA
|ai=That Amazing AI
|quote="Once more unto the breech, once more." - William Shakespeare
|quote="Once more unto the breech, once more." - William Shakespeare
|discord=Discord Server Invite Link
|discord=Discord Server Invite Link
|name=Lollipop
|name=Lollipop
|class=Gum-Ball Class Starship
|class=Gum-Ball Class Starship
|type=Jawbreaker Sub-Type
|auxtype=Yellow Submarine
|auxtype=Yellow Submarine
|auxname=Gummy
|auxname=Gummy
|auxpilot=Sweet Pilot Person
|aff=Government
|status=Active, Missing, Destroyed, Unknown, Unassigned
}}
}}
</pre>
</pre>


=== How it Looks ===
The status property tells the template what category to place a ship in and should take one of the values listed:
* Active
* Missing
* Destroyed
* Unknown
* Unassigned
 
Active and unassigned allow a ship to be easily found when a new captain or pilot character needs a ship.
 
== Other Options ==
<pre>
|mainbg= Templates background color.
|mainborder= Templates border color.
|titletext= Template title color.
|titlebg= Title/header bg color.
|titleborder= Title/header border color.
|imagebg= Image section background color.
|headertext= Set color of inner headers text.
|headerbg= Set color of inner headers background.
|line= Horizontal line(s) color.
|nicknumbg= Character Fullname and Player Name Background Color.
|esbg= Set color of even rows.
|osbg= Set color of odd rows.
</pre>
 
* '''Note: '''The color customization should be set using ''hexadecimal'' format ONLY! If you need help, talk with one of the Wiki editors.
 
== In-Use Example ==
{{Ship Stats
{{Ship Stats
|image=iss-image.jpeg
|image=Ship-no-image.png
|owner=Big Deal Guy
|owner=Big Deal Guy
|co=Someone
|co=Someone
Line 48: Line 131:
|engineer=Engineering Dude
|engineer=Engineering Dude
|cmo=Doctor Dude
|cmo=Doctor Dude
|pilot=Your Most Excellent Pilot
|xia=Your Awesome XIA
|ai=That Amazing AI
|quote="Once more unto the breech, once more." - William Shakespeare
|quote="Once more unto the breech, once more." - William Shakespeare
|discord=Discord Server Invite Link
|discord=Discord Server Invite Link
|name=Lollipop
|name=Lollipop
|class=Gum-Ball Class Starship
|class=Gum-Ball Class Starship
|type=Jawbreaker Sub-Type
|auxtype=Yellow Submarine
|auxtype=Yellow Submarine
|auxname=Gummy
|auxname=Gummy
|auxpilot=Sweet Pilot Person
|aff=Government
}}
}}
</noinclude>

Latest revision as of 03:11, 3 May 2024

Ship Stats
Ship Stats
Information




Code Example

{{Ship Stats
|image=Ship-no-image.png
|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
|pilot=Your Most Excellent Pilot
|xia=Your Awesome XIA
|ai=That Amazing AI
|quote="Once more unto the breech, once more." - William Shakespeare
|discord=Discord Server Invite Link
|name=Lollipop
|class=Gum-Ball Class Starship
|type=Jawbreaker Sub-Type
|auxtype=Yellow Submarine
|auxname=Gummy
|auxpilot=Sweet Pilot Person
|aff=Government
|status=Active, Missing, Destroyed, Unknown, Unassigned
}}

The status property tells the template what category to place a ship in and should take one of the values listed:

  • Active
  • Missing
  • Destroyed
  • Unknown
  • Unassigned

Active and unassigned allow a ship to be easily found when a new captain or pilot character needs a ship.

Other Options

|mainbg= Templates background color.
|mainborder= Templates border color.
|titletext= Template title color.
|titlebg= Title/header bg color.
|titleborder= Title/header border color.
|imagebg= Image section background color.
|headertext= Set color of inner headers text.
|headerbg= Set color of inner headers background.
|line= Horizontal line(s) color.
|nicknumbg= Character Fullname and Player Name Background Color.
|esbg= Set color of even rows.
|osbg= Set color of odd rows.
  • Note: The color customization should be set using hexadecimal format ONLY! If you need help, talk with one of the Wiki editors.

In-Use Example

Lollipop
Ship Stats
Information
Class: Gum-Ball Class Starship
Type: Jawbreaker Sub-Type
Affiliation: Government
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
Pilot: Your Most Excellent Pilot
Xia: Your Awesome XIA
MSAI: That Amazing AI
Quote: "Once more unto the breech, once more." - William Shakespeare
Yellow Submarine: Gummy
Gummy Pilot: Sweet Pilot Person
Discord Server: Discord Server Invite Link