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
use more css
remove accidental image (this is what i get for not checking my work huh)
 
(20 intermediate revisions by the same user not shown)
Line 3: Line 3:
<!--Title Section-->
<!--Title Section-->
   <tr>
   <tr>
     <th colspan="2" style="text-align: center;">
     <td colspan="2" style="background: #1b2027; text-align: center; font-size: 240%; font-weight: bold;">The {{PAGENAME}}</td>
      <span style="font-size: 200%;">The {{PAGENAME}}</span>
    </th>
   </tr>
   </tr>
   {{#if: {{{Icon|}}}|
   {{#if: {{{Icon|Invictor-icon.png}}}|
     <tr>
     <tr>
       <td colspan="2" style="text-align: center;">
       <td colspan="2" style="text-align: center;">
         [[File:{{{Icon}}}]]
         [[File:{{{Icon|Invictor-icon.png}}}|frameless|center]]
       </td>
       </td>
     </tr>
     </tr>
   |}}
   |}}
   <tr>
   <tr>
     <td style="padding: 0.2em 0.4em;"><b><span style="font-weight: bold; font-size: 170%;">Description</span></b></td>
     <td colspan="2" class="Subheader">Class - {{{Class|Destroyer}}}</td>
   </tr>
   </tr>
   <tr style="border-bottom: 1px solid #aaa;>
 
     <td style="padding: 0.2em 0.4em;>{{{Description|Velkar Authority Destroyer}}}</td>
   <tr class="EmptyRow"></tr> <!-- This creates an empty row between sections-->
 
  <tr>
     <td class="Subheader" colspan="2">Description</td>
   </tr>
   </tr>
 
   <tr>
   <tr>
     <td colspan="2">&nbsp;</td> <!-- This creates an empty row between sections-->
     <td colspan="2" style="padding: 0.2em 0.4em; text-align: center;">{{{Description|Velkar Authority Destroyer}}}</td>
   </tr>
   </tr>
 
  <tr class="EmptyRow"></tr>


<!--Weapons Section-->
<!--Weapons Section-->
   <tr>
   <tr>
     <td class="Subheader"><b><span style="font-weight: bold; font-size: 170%;">Weapons</span></b></td>
     <td class="Subheader" colspan="2">Weapons</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutTop">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Max Turrets</span></b></td>
     <td>Max Turrets</td>
     <td class="HorizontalRowRightCol">{{{MaxTurrets|}}}</td>
     <td>Spinal Barrels</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutBottom">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Spinal Barrels</span></b></td>
     <td>{{{MaxTurrets|1}}}</td>
     <td class="HorizontalRowRightCol">{{{SpinalBarrels|}}}</td>
     <td>{{{SpinalBarrels|1}}}</td>
   </tr>
   </tr>


  <tr>
<tr class="EmptyRow"></tr>
    <td colspan="2">&nbsp;</td>
  </tr>


<!--Health Section-->
<!--Health Section-->
   <tr>
   <tr>
     <td class="Subheader"><b><span style="font-weight: bold; font-size: 170%;">Health</span></b></td>
     <td class="Subheader" colspan="2">Health</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutTop">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Max Hull</span></b></td>
     <td>Max Hull</td>
     <td class="HorizontalRowRightCol">{{{MaxHull|}}}</td>
     <td>Max Shield</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutBottom">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Max Shield</span></b></td>
     <td>{{{MaxHull|}}}</td>
     <td class="HorizontalRowRightCol">{{{MaxShield|}}}</td>
     <td>{{{MaxShield|}}}</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="HorizontalLayout">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Shield Regen</span></b></td>
     <td>Shield Regen</td>
     <td class="HorizontalRowRightCol">{{{ShieldRegen|}}}</td>
     <td>{{{ShieldRegen|}}}</td>
   </tr>
   </tr>


  <tr>
<tr class="EmptyRow"></tr>
    <td colspan="2">&nbsp;</td>
  </tr>


<!--Maneuverability Section-->
<!--Maneuverability Section-->
   <tr>
   <tr>
     <td class="Subheader"><b><span style="font-weight: bold; font-size: 170%;">Maneuverability</span></b></td>
     <td class="Subheader" colspan="2">Maneuverability</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutTop">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Max Speed</span></b></td>
     <td>Max Speed</td>
     <td class="HorizontalRowRightCol">{{{MaxSpeed|}}}</td>
     <td>Acceleration</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutBottom">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Acceleration</span></b></td>
     <td>{{{MaxSpeed|}}}</td>
     <td class="HorizontalRowRightCol">{{{Acceleration|}}}</td>
     <td>{{{Acceleration|}}}</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="HorizontalLayout">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Turn Speed</span></b></td>
     <td>Turn Speed</td>
     <td class="HorizontalRowRightCol">{{{TurnSpeed|}}}</td>
     <td>{{{TurnSpeed|}}}</td>
   </tr>
   </tr>


  <tr>
<tr class="EmptyRow"></tr>
    <td colspan="2">&nbsp;</td>
  </tr>


<!--Utility Section-->
<!--Utility Section-->
   <tr>
   <tr>
     <td class="Subheader"><b><span style="font-weight: bold; font-size: 170%;">Utility</span></b></td>
     <td class="Subheader" colspan="2">Utility</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutTop">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Max Energy</span></b></td>
     <td>Max Energy</td>
     <td class="HorizontalRowRightCol">{{{MaxEnergy|}}}</td>
     <td>Energy Regen</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutBottom">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Energy Regen</span></b></td>
     <td>{{{MaxEnergy|}}}</td>
     <td class="HorizontalRowRightCol">{{{EnergyRegen|}}}</td>
     <td>{{{EnergyRegen|}}}</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="HorizontalLayout">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Max Cargo</span></b></td>
     <td>Max Modules</td>
     <td class="HorizontalRowRightCol">{{{MaxCargo|}}}</td>
     <td>{{{MaxModules|}}}</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="HorizontalLayout">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Warp Strength</span></b></td>
     <td>Max Cargo</td>
     <td class="HorizontalRowRightCol">{{{WarpStrength|}}}</td>
     <td>{{{MaxCargo|}}}</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="HorizontalLayout">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Scan Degree</span></b></td>
     <td>Warp Strength</td>
     <td class="HorizontalRowRightCol">{{{ScanDegree|}}}</td>
     <td>{{{WarpStrength|}}}</td>
   </tr>
   </tr>
   <tr class="HorizontalRow">
   <tr class="VerticalLayoutTop">
     <td class="HorizontalRowLeftCol"><b><span style="font-weight: bold;">Scan Strength</span></b></td>
     <td>Scan Degree</td>
     <td class="HorizontalRowRightCol">{{{ScanStrength|}}}</td>
    <td>Scan Strength</td>
  </tr>
  <tr class="VerticalLayoutBottom">
    <td>{{{ScanDegree|}}}</td>
    <td>{{{ScanStrength|}}}</td>
  </tr>
 
<tr class="EmptyRow"></tr>
 
<!--CostSection-->
  <tr>
    <td class="Subheader" colspan="2">Cost</td>
  </tr>
  <tr class="HorizontalLayout">
    <td>Credits</td>
     <td>{{{CostCredits|}}}</td>
  </tr>
  <tr class="HorizontalLayout">
    <td>For Sale</td>
    <td>{{#if: {{{ForSale}}}|Yes|No}}</td>
   </tr>
   </tr>
</table>
</table>
Line 119: Line 134:
{
{
"params": {
"params": {
"Class": {
"label": "Class",
"description": "Ship class",
"type": "string",
"example": "Destroyer",
"required": true
},
"Icon": {
"Icon": {
"label": "Icon",
"label": "Icon",
"description": "Ship icon",
"description": "Ship icon",
"type": "wiki-file-name",
"type": "wiki-file-name",
"default": "{{PAGENAME}}-icon"
"default": "{{PAGENAME}}-icon",
"example": "Invictor-icon.png"
},
},
"Description": {
"Description": {
Line 133: Line 156:
],
],
"example": "Velkar Authority Destroyer"
"example": "Velkar Authority Destroyer"
},
"Class": {
"label": "Class",
"description": "Ship class",
"type": "string",
"example": "Destroyer",
"required": true
},
},
"MaxTurrets": {
"MaxTurrets": {
Line 164: Line 180:
"type": "number",
"type": "number",
"example": "3000"
"example": "3000"
},
"MaxTurretSize": {
"label": "Max Turret Size",
"description": "Max turret size supported by the ship",
"type": "string",
"example": "Small"
},
"MaxModuleSize": {
"label": "Max Module Size",
"description": "Max module size supported by the ship",
"example": "Small",
"type": "string"
},
"MaxSpinalSize": {
"label": "Max Spinal Size",
"description": "Max spinal size supported by the ship",
"example": "Small",
"type": "string"
},
},
"Acceleration": {
"Acceleration": {
Line 258: Line 256:
"type": "boolean"
"type": "boolean"
},
},
"Cost": {
"CostCredits": {
"label": "Cost",
"label": "Credits",
"description": "Ship build cost",
"description": "Ship credit build cost",
"type": "wiki-template-name"
"type": "number"
}
}
},
},

Latest revision as of 19:48, 16 August 2024

The ShipInfobox
Class - Destroyer
Description
Velkar Authority Destroyer
Weapons
Max Turrets Spinal Barrels
1 1
Health
Max Hull Max Shield
Shield Regen
Maneuverability
Max Speed Acceleration
Turn Speed
Utility
Max Energy Energy Regen
Max Modules
Max Cargo
Warp Strength
Scan Degree Scan Strength
Cost
Credits
For Sale Yes


Template to use for describing ship's stats

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
ClassClass

Ship class

Example
Destroyer
Stringrequired
IconIcon

Ship icon

Default
{{PAGENAME}}-icon
Example
Invictor-icon.png
Fileoptional
DescriptionDescription Desc

Ship description

Example
Velkar Authority Destroyer
Stringoptional
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
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
CreditsCostCredits

Ship credit build cost

Numberoptional