Template:ShipBox: Difference between revisions

From Shiptest Wiki
Jump to navigationJump to search
m (Adds template data)
mNo edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 3: Line 3:
<templatedata>
<templatedata>
{
{
    "description": "A sidebar for showing ship info.",
"description": "A sidebar for showing ship info.",
    "params": {
"params": {
        "name": {
"name": {
            "label": "Name",
"label": "Name",
            "description": "Name of the ship to show at the top of the box.",
"description": "Name of the ship to show at the top of the box.",
             "type": "string"
"type": "line",
"required": true
},
"shortname": {
"label": "Short Name",
"description": "The shortened name of the ship, usually lacking spaces.",
"type": "line",
"required": true
},
"color": {
"label": "Box Color",
"description": "The hex code for the color of the box's accents.",
"type": "line"
},
"manufacturer": {
"label": "Ship Manufacturer",
"type": "line",
"suggested": true
},
"faction": {
"label": "Ship Faction",
"type": "line",
"suggested": true
},
"crew": {
"label": "Crew Size",
"description": "Amount of crew members by default, specified in the JSON file.",
"type": "number",
"suggested": true
},
"propulsion": {
"label": "Propulsion Type",
"description": "The propulsion type(s).",
"type": "line",
"suggested": true
},
        "buyable":{
            "label": "Buyable",
             "description": "Is the ship buyable. Add extra information if it has odd requirements.",
"type": "line",
"suggested": true
         },
         },
        "shortname": {
"traits": {
            "label": "Short Name",
"label": "Extra Traits",
            "description": "The shortened name of the ship, usually lacking spaces.",
"description": "Any extra traits to show. Leave first line blank.",
            "type": "string"
"example": "\n* Trait 1\n* Trait 2\n* Etcetera",
        },
"type": "string",
        "color": {
"suggested": true
            "label": "Box Color",
}
            "description": "The hex code for the color of the box's accents.",
 
            "type": "string"
 
        },
}
        "manufacturer": {
            "label": "Ship Manufacturer",
            "type": "string"
        },
        "faction": {
            "label": "Ship Faction",
            "type": "string"
        },
        "size": {
            "label": "Ship Size",
            "description": "The approximate size of the ship. No need to be specific.",
            "type": "string"
        }
    }
}
}
</templatedata>
</templatedata>
Line 46: Line 72:
  | manufacturer = Unknown
  | manufacturer = Unknown
  | faction      = Independent
  | faction      = Independent
| size        = Medium
  | crew        = 9
  | crew        = 9
  | propulsion  = Plasma Engines
  | propulsion  = Plasma Engines
| buyable      = Yes
  | traits      =  
  | traits      =  
* Full medical bay
* Full medical bay
Line 60: Line 86:
  | manufacturer = Unknown
  | manufacturer = Unknown
  | faction      = Independent
  | faction      = Independent
| size        = Medium
  | crew        = 9
  | crew        = 9
  | propulsion  = Plasma Engines
  | propulsion  = Plasma Engines
| buyable      = Yes
  | traits      =  
  | traits      =  
* Full medical bay
* Full medical bay
Line 69: Line 95:


</noinclude>
</noinclude>
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 0 0 0.5em 0; padding: 1px; width: 22em; margin-left: 1.4em; margin-bottom: 0.5em; float: right;">
 
<includeonly>
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 0 0 0.5em 0; padding: 1px; max-width: 100%; width: 22em; margin-left: 1.4em; margin-bottom: 0.5em; float: right;">
<div style="background: #{{{color|88cc99}}}; border-radius: .2em; color: #FFF; padding: .4em .4em .4em; font-size: 1.2em;"><center>'''{{{name}}}'''</center></div>
<div style="background: #{{{color|88cc99}}}; border-radius: .2em; color: #FFF; padding: .4em .4em .4em; font-size: 1.2em;"><center>'''{{{name}}}'''</center></div>
<div style="background: white;">
<div>
<div style="padding: 0.2em 0 0.2em 0;">
<div style="padding: 0.2em 0 0.2em 0;">
<center>{{ExternalImage|100%|https://cdn.shiptest.net/renders/initial/padded/{{{shortname}}}.png}}</center>
<center>{{ExternalImage|width=100%|url=https://cdn.shiptest.net/renders/initial/padded/{{{shortname}}}.png}}</center>
</div>
</div>
<div style="background: #{{{color|88cc99}}}; border-radius: .2em; color: #FFF;"><center>'''Basic Information'''</center></div>
<div style="background: #{{{color|88cc99}}}; border-radius: .2em; color: #FFF;"><center>'''Basic Information'''</center></div>
Line 86: Line 114:
|'''Faction:'''
|'''Faction:'''
| {{{faction|Independent}}}
| {{{faction|Independent}}}
|-
|'''Size:'''
| {{{size|Unknown}}}
|-
|-
|'''Crew Size:'''
|'''Crew Size:'''
Line 95: Line 120:
|'''Propulsion:'''
|'''Propulsion:'''
| {{{propulsion|Unspecified}}}
| {{{propulsion|Unspecified}}}
|-
|'''Buyable:'''
| {{{buyable|Unspecified}}}
|}
|}
<hr>
<hr>
{{{traits|No traits.}}}
{{{traits|No traits.}}}
</div></div></div>
</div></div></div>
</includeonly>
<noinclude>[[category:templates]]</noinclude>

Latest revision as of 22:03, 9 November 2023


A sidebar for showing ship info.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

Name of the ship to show at the top of the box.

Linerequired
Short Nameshortname

The shortened name of the ship, usually lacking spaces.

Linerequired
Box Colorcolor

The hex code for the color of the box's accents.

Lineoptional
Ship Manufacturermanufacturer

no description

Linesuggested
Ship Factionfaction

no description

Linesuggested
Crew Sizecrew

Amount of crew members by default, specified in the JSON file.

Numbersuggested
Propulsion Typepropulsion

The propulsion type(s).

Linesuggested
Buyablebuyable

Is the ship buyable. Add extra information if it has odd requirements.

Linesuggested
Extra Traitstraits

Any extra traits to show. Leave first line blank.

Example
  • Trait 1
  • Trait 2
  • Etcetera
Stringsuggested

Example usage of the template:

{{ShipBox
 | name         = Box-class Hospital Ship
 | shortname    = Box-class
 | color        = 88cc99
 | manufacturer = Unknown
 | faction      = Independent
 | crew         = 9
 | propulsion   = Plasma Engines
 | buyable      = Yes
 | traits       = 
* Full medical bay
* Little weaponry
}}


Box-class Hospital Ship
Box-class.png
Basic Information
Short Name: Box-class
Manufacturer: Unknown
Faction: Independent
Crew Size: 9
Propulsion: Plasma Engines
Buyable: Yes

  • Full medical bay
  • Little weaponry