No edit summary |
m (Minor typo correction) |
||
(36 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{| class="infobox" cellpadding=0 cellspacing=0 width= | <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}}};" | ||
|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}}}}}''' | |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}}}}}''' | ||
|- | |- | ||
|style="padding: 2px;"| | |style="padding: 2px;"| | ||
|- | |- | ||
|align="center" colspan="2" style="background-color: {{{imagebg|#ffffff}}}; padding: 2px;"|[[File | |align="center" colspan="2" style="background-color: {{{imagebg|#ffffff}}}; padding: 2px;"|[[File:{{{image|Nobiopic.png}}}|{{{scale|300px}}}]] | ||
|- | |- | ||
{{#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|}}} }} | {{#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|}}} }} | ||
|- class{{{name|{{PAGENAME}}}}}="hiddenStructure" | |- 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> | | 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> | ||
|- | |- | ||
|style="padding: 2px;"| | |style="padding: 2px;"| | ||
|-class{{#if: {{{quote|}}} {{{owner|}}} {{{co|}}} {{{xo|}}} {{{oo|}}} {{{science|}}} {{{|}}} {{{sec|}}} {{{engineer|}}} {{{cmo|}}} {{{discord|}}} {{{class|}}} {{{auxtype|}}} {{{auxname|}}}|{{!}}-{{!}}}}="hiddenStructure" | |-class{{#if: {{{type|}}} {{{aff|}}} {{{quote|}}} {{{owner|}}} {{{co|}}} {{{xo|}}} {{{oo|}}} {{{science|}}} {{{|}}} {{{sec|}}} {{{engineer|}}} {{{cmo|}}} {{{pilot|}}} {{{xia|}}} {{{ai|}}} {{{discord|}}} {{{status|}}} {{{class|}}} {{{auxtype|}}} {{{auxname|}}} {{{auxtype|}}}|{{!}}-{{!}}}}="hiddenStructure" | ||
| | | | ||
{|class= "collapsible" cellspacing="0" width="100%" align="center" style="tpadding: 0; background-color:#d9d9d9;" | {|class= "collapsible" cellspacing="0" width="100%" align="center" style="tpadding: 0; background-color:#d9d9d9;" | ||
Line 21: | Line 21: | ||
| | | | ||
{{#if:{{{class|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Class:''' {{!!}} {{#ifexist: {{{class}}} | [[{{{class}}}]] | {{{class}}} }} }} | {{#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:{{{owner|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Owner:''' {{!!}} {{{owner}}} }} | ||
| | | | ||
{{#if:{{{co|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} ''' | {{#if:{{{co|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Commanding Officer:''' {{!!}} {{{co}}} }} | ||
| | | | ||
{{#if:{{{xo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} ''' | {{#if:{{{xo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Executive Officer:''' {{!!}} {{{xo}}} }} | ||
| | | | ||
{{#if:{{{oo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Operations:''' {{!!}} {{{oo}}} }} | {{#if:{{{oo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Operations Officer:''' {{!!}} {{{oo}}} }} | ||
| | | | ||
{{#if:{{{science|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Science:''' {{!!}} {{{science}}} }} | {{#if:{{{science|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Science Officer:''' {{!!}} {{{science}}} }} | ||
| | | | ||
{{#if:{{{sec|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Security Chief:''' {{!!}} {{{sec}}} }} | {{#if:{{{sec|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Security Chief:''' {{!!}} {{{sec}}} }} | ||
Line 36: | Line 40: | ||
{{#if:{{{engineer|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Chief Engineer:''' {{!!}} {{{engineer}}} }} | {{#if:{{{engineer|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Chief Engineer:''' {{!!}} {{{engineer}}} }} | ||
| | | | ||
{{#if:{{{cmo|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Chief Medical:''' {{!!}} {{{cmo}}} }} | {{#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:{{{quote|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Quote:''' {{!!}} {{{quote}}} }} | ||
| | | | ||
{{#if:{{{auxname|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''{{{auxtype|Auxilary}}}:''' {{!!}} {{{auxname}}} }} | {{#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:{{{discord|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Discord Server:''' {{!!}} {{{discord}}} }} | ||
| | |||
{{#if:{{{status|}}}| {{!}} width=47% style="padding: 3px 4px;"{{!}} '''Status:''' {{!!}} {{{status}}} }} | |||
}} | }} | ||
|} | |} | ||
|}</onlyinclude> | |}{{#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> | <noinclude> | ||
<br style="clear: both;" /> | <br style="clear: both;" /> | ||
---- | ---- | ||
<noinclude> | <noinclude> | ||
== Code Example == | |||
<pre> | |||
{{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 | |||
}} | |||
</pre> | |||
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> | <pre> | ||
|mainbg= Templates background color. | |mainbg= Templates background color. | ||
|mainborder= Templates border color. | |mainborder= Templates border color. | ||
Line 64: | Line 116: | ||
|esbg= Set color of even rows. | |esbg= Set color of even rows. | ||
|osbg= Set color of odd rows. | |osbg= Set color of odd rows. | ||
</pre> | </pre> | ||
* '''Note: '''The color customization should be set using ''hexadecimal'' format ONLY! If you need help, talk with one of the Wiki editors. | * '''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= | |image=Ship-no-image.png | ||
|owner=Big Deal Guy | |owner=Big Deal Guy | ||
|co=Someone | |co=Someone | ||
Line 77: | 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 | |||
}} | }} |
Latest revision as of 03:11, 3 May 2024
Ship Stats | ||||||
Ship Stats | ||||||
|
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 | ||||||||||||||||||||||||||||||||||||||||||
|