No edit summary |
m (Minor typo correction) |
||
(47 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{#if: {{{ | <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: {{{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: {{{ | |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}}}}}''' | ||
{{#if: {{{ | |- | ||
<noinclude>== | |style="padding: 2px;"| | ||
|- | |||
|align="center" colspan="2" style="background-color: {{{imagebg|#ffffff}}}; padding: 2px;"|[[File:{{{image|Nobiopic.png}}}|{{{scale|300px}}}]] | |||
|- | |||
{{#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" | |||
| 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;"| | |||
|-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;" | |||
! colspan="6" style="text-align:center; color:{{{headertext|black}}}; border:1px solid {{{line|#ffffff}}}; background:{{{headerbg|#A9A9A9}}}; font-size:13px; padding: 4px"|'''{{{infoheader|Information}}}''' | |||
|- | |||
{{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= | |image=Ship-no-image.png | ||
|owner=Big Deal Guy | |owner=Big Deal Guy | ||
|co=Someone | |co=Someone | ||
Line 16: | 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= | |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> | ||
=== Example | 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= | |image=Ship-no-image.png | ||
|owner=Big Deal Guy | |owner=Big Deal Guy | ||
|co=Someone | |co=Someone | ||
Line 36: | 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= | |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 | ||||||||||||||||||||||||||||||||||||||||||
|