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>{| class="infobox" cellpadding=0 cellspacing=0 width=290px 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:{{#setmainimage:{{{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: {{{quote|}}} {{{owner|}}} {{{co|}}} {{{xo|}}} {{{oo|}}} {{{science|}}} {{{|}}} {{{sec|}}} {{{engineer|}}} {{{cmo|}}} {{{discord|}}} {{{class|}}} {{{auxtype|}}} {{{auxname|}}}|{{!}} 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: {{{quote|}}} {{{owner|}}} {{{co|}}} {{{xo|}}} {{{oo|}}} {{{science|}}} {{{|}}} {{{sec|}}} {{{engineer|}}} {{{cmo|}}} {{{discord|}}} {{{class|}}} {{{auxtype|}}} {{{auxname|}}}|{{!}}-{{!}}}}="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:{{{owner|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Owner:''' {{!!}} {{{owner}}} }}
|
{{#if:{{{co|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Captain:''' {{!!}} {{{co}}} }}
|
{{#if:{{{xo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Exec:''' {{!!}} {{{xo}}} }}
|
{{#if:{{{oo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Operations:''' {{!!}} {{{oo}}} }}
|
{{#if:{{{science|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Science:''' {{!!}} {{{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:''' {{!!}} {{{cmo}}} }}
|
{{#if:{{{quote|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Quote:''' {{!!}} {{{quote}}} }}
|
{{#if:{{{auxname|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''{{{auxtype|Auxilary}}}:''' {{!!}} {{{auxname}}} }}
|
{{#if:{{{discord|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Discord Server:''' {{!!}} {{{discord}}} }}
}}
|}
|}</onlyinclude>
<noinclude>
<br style="clear: both;" />
----
<noinclude>
<pre>
<pre>
{{Ship Stats
{{character box
|image=iss-image.jpeg
|mainbg= Templates background color.
|owner=Big Deal Guy
|mainborder= Templates border color.
|co=Someone
|titletext= Template title color.
|xo=Someone Else
|titlebg= Title/header bg color.
|oo=Third Someone Else
|titleborder= Title/header border color.
|science=Science Dude
|imagebg= Image section background color.
|sec=Security Dude
|headertext= Set color of inner headers text.
|engineer=Engineering Dude
|headerbg= Set color of inner headers background.
|cmo=Doctor Dude
|line= Horizontal line(s) color.
|quote="Once more unto the breech, once more." - William Shakespeare
|nicknumbg= Character Fullname and Player Name Background Color.
|discord=Discord Server Invite Link
|esbg= Set color of even rows.
|name=Lollipop
|osbg= Set color of odd rows.
|class=Gum-Ball Class Starship
|auxtype=Yellow Submarine
|auxname=Gummy
}}
}}
</pre>
</pre>
 
* '''Note: '''The color customization should be set using ''hexadecimal'' format ONLY! If you need help, talk with one of the Wiki editors.
=== How it Looks ===
{{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
}}
</noinclude>

Revision as of 17:43, 27 November 2017

Ship Stats
Ship Stats
Information



{{character box
|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.