Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ShipInfobox: Difference between revisions

Template page
formatting test
finished formatting
Line 1: Line 1:
<div style="width: 22em; font-size: 90%; border: 1px solid #aaa; background-color: #101318; padding: 0.5em; float: right; clear: right; margin: 0 0 1em 1em;">
<div style="width: 22em; font-size: 90%; border: 1px solid #aaa; background-color: #101318; padding: 0.5em; float: right; clear: right; margin: 0 0 1em 1em;">
<table style="width: 100%; border-collapse: collapse;">
<table style="width: 100%; border-collapse: collapse;">
<!--Title Section-->
   <tr>
   <tr>
     <th colspan="2" style="text-align: left; font-size: 210%; padding: 0.2em;">
     <th colspan="2" style="text-align: center;">
       <span style="font-size: 200%;">{{{Title|{{PAGENAME}}}}}</span>
       <span style="font-size: 200%;">The {{PAGENAME}}</span>
     </th>
     </th>
   </tr>
   </tr>
  {{#if: {{{Icon|}}}|
    <tr>
      <td colspan="2" style="text-align: center;">
        [[File:{{{Icon}}}]]
      </td>
    </tr>
  |}}
   <tr>
   <tr>
     <td colspan="2" style="text-align: center;">
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Description</span></b></td>
      [[File:{{{image|}}}]]
    <td style="padding: 0.2em 0.4em;">{{{Description|}}}</td>
     </td>
  </tr>
 
  <tr>
    <td colspan="2">&nbsp;</td> <!-- This creates an empty row between sections-->
  </tr>
 
<!--Weapons Section-->
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold; font-size: 170%;">Weapons</span></b></td>
    </th>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Max Turrets</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{MaxTurrets|}}}</td>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Spinal Barrels</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{SpinalBarrels|}}}</td>
  </tr>
 
  <tr>
     <td colspan="2">&nbsp;</td>
  </tr>
 
<!--Health Section-->
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold; font-size: 170%;">Health</span></b></td>
    </th>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Max Hull</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{MaxHull|}}}</td>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Max Shield</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{MaxShield|}}}</td>
  </tr>
  <tr>
     <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Shield Regen</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{ShieldRegen|}}}</td>
   </tr>
   </tr>
   <tr>
   <tr>
     <td style="padding: 0.2em 0.4em;"><b>Description</b></td>
    <td colspan="2">&nbsp;</td>
     <td style="padding: 0.2em 0.4em;">{{{Description|}}}</td>
  </tr>
 
<!--Maneuverability Section-->
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold; font-size: 170%;">Maneuverability</span></b></td>
    </th>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Max Speed</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{MaxSpeed|}}}</td>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Acceleration</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{Acceleration|}}}</td>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Turn Speed</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{TurnSpeed|}}}</td>
  </tr>
 
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
 
<!--Utility Section-->
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold; font-size: 170%;">Utility</span></b></td>
    </th>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Max Energy</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{MaxEnergy|}}}</td>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Energy Regen</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{EnergyRegen|}}}</td>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Max Cargo</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{MaxCargo|}}}</td>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Warp Strength</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{WarpStrength|}}}</td>
  </tr>
  <tr>
     <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Scan Degree</span></b></td>
    <td style="padding: 0.2em 0.4em;">{{{ScanDegree|}}}</td>
  </tr>
  <tr>
    <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold;">Scan Strength</span></b></td>
     <td style="padding: 0.2em 0.4em;">{{{ScanStrength|}}}</td>
   </tr>
   </tr>
</table>
</table>
Line 23: Line 122:
{
{
"params": {
"params": {
"Title": {
"label": "Title",
"description": "Ship title",
"example": "Invictor",
"type": "string",
"autovalue": "The {{PAGENAME}}"
},
"Icon": {
"Icon": {
"label": "Icon",
"label": "Icon",

Revision as of 03:26, 16 August 2024

     The ShipInfobox
Description
 
Weapons
Max Turrets
Spinal Barrels
 
Health
Max Hull
Max Shield
Shield Regen
 
Maneuverability
Max Speed
Acceleration
Turn Speed
 
Utility
Max Energy
Energy Regen
Max Cargo
Warp Strength
Scan Degree
Scan Strength


Template to use for describing ship's stats

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
IconIcon

Ship icon

Auto value
{{PAGENAME}}-icon
Fileoptional
DescriptionDescription Desc

Ship description

Example
Velkar Authority Destroyer
Stringoptional
ClassClass

Ship class

Example
Destroyer
Stringrequired
Max TurretsMaxTurrets

Maximum number of turrets on the ship

Example
4
Numberoptional
Max ModulesMaxModules

Maximum number of modules on the ship

Example
3
Numberoptional
Spinal BarrelsSpinalBarrels

Ship spinal barrel count

Example
3
Numberoptional
Max EnergyMaxEnergy

Ship max energy

Example
3000
Numberoptional
Max Turret SizeMaxTurretSize

Max turret size supported by the ship

Example
Small
Stringoptional
Max Module SizeMaxModuleSize

Max module size supported by the ship

Example
Small
Stringoptional
Max Spinal SizeMaxSpinalSize

Max spinal size supported by the ship

Example
Small
Stringoptional
AccelerationAcceleration Accel

Ship acceleration

Example
120
Numberoptional
Turn SpeedTurnSpeed

Ship turn speed

Example
1
Numberoptional
Max SpeedMaxSpeed

Ship max speed

Example
200
Numberoptional
Max CargoMaxCargo

Ship max cargo

Example
500
Numberoptional
Max HullMaxHull

Ship max hull

Example
3250
Numberoptional
Max ShieldMaxShield

Ship max shield

Example
2100
Numberoptional
ShieldRegenShieldRegen

Ship shield regen rate

Example
15
Numberoptional
Energy RegenEnergyRegen

Ship energy regen rate

Example
100
Numberoptional
Warp StrengthWarpStrength

Ship warp strength

Example
1
Numberoptional
Scan DegreeScanDegree

Ship scan degree

Example
180
Numberoptional
Scan StrengthScanStrength

Ship scan strength

Example
10
Numberoptional
For SaleForSale

If the ship is for sale

Example
True
Booleanoptional
CostCost

Ship build cost

Templateoptional