Template:Ship Infobox: Difference between revisions

no edit summary
imported>Explodabat
(total cost auto-fill/calculation was not present?)
No edit summary
Tag: 2017 source edit
(66 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<infobox>
{{#cargo_store:_table=ShipData}}
<infobox>    <title source="title">
    <default>The {{PAGENAME}}</default>
    </title>


<title source="title1">
    <image source="image"></image>


     <format>{{#switch: {{{title1}}}
     <group layout="horizontal">
    | force =  
        <header>Health</header>
    | Force =  
        <data source="shields"><label>Shields</label></data>
    | {{PAGENAME}} = The {{PAGENAME}}
        <data source="hull"><label>Hull</label></data>
    | The {{PAGENAME}}
        <data source="shield_regen_rate"><label>Shield Regen Rate</label></data>
    }}
     </group>
     </format>


</title>
    <group layout="horizontal">
        <header>Maneuverability</header>
        <data source="top_speed"><label>Top Speed</label></data>
        <data source="acceleration"><label>Acceleration</label></data>
    </group>
    <data source="turn_speed"><label>Turn Speed</label></data>


<title source="forceTitle"></title>
    <group>
 
        <header>Armament</header>
<image source="image1"><caption source="caption1"/></image>
        <data source="tiny_turrets"><label>Tiny Turrets</label></data>
 
        <data source="small_turrets"><label>Light Turrets</label></data>
<data source="ship3dmodel"></data>
        <data source="med_turrets"><label>Med. Turrets</label></data>
 
        <data source="large_turrets"><label>Large Turrets</label></data>
<title source="title2"><default>Health</default></title>
        <data source="huge_turrets"><label>Huge Turrets</label></data>
 
        <data source="(f)_spinal"><label>(F) Spinal</label></data>
<image source="image2"><caption source="caption2"/></image>
        <data source="(g)_spinal"><label>(G) Spinal</label></data>
 
        <data source="m_class_range"><label>Max Turret Range</label></data>
<group layout="horizontal">
        <data source="r_class_range"><label>Recom. Range from Target</label></data>
 
        <data source="mining_lasers"><label>Mining Lasers</label></data>
  <data source="shields"><label>Shields</label></data>
        <data source="mining_range"><label>Mining Range</label></data>
 
        <data source="fighters"><label>Fighters</label></data>
  <data source="hull"><label>Hull</label></data>
    </group>
 
   
</group>
    <group>
 
        <header>Utility</header>
<header>Maneuverability</header>
        <data source="cargo_hold"><label>Cargo Hold</label></data>
        <data source="ore_hold"><label>Ore Hold</label></data>
        <data source="warp_drive"><label>Warp Drive</label></data>
        <data source="stealth"><label>Stealth</label></data>
        <data source="cmax_drift"><label>Custom Max Drift</label></data>
        <data source="turret_dps"><label>Average Turret DPS</label></data>
        <data source="spinal_dps"><label>Average Spinal DPS</label></data>
        <data source="fighter_turret_dps"><label>Total Average Fighter Turret DPS</label></data>
        <data source="fighter_spinal_dps"><label>Total Average Fighter Spinal DPS</label></data>
        <data source="explosion_radius"><label>Explosion Radius</label></data>
    </group>


<group layout="horizontal">
    <group row-items="3">
        <header>Cost</header>
        <data source="antimatter_shard"><label>Antimatter Shard</label></data>
        <data source="data_archive"><label>Data Archive</label></data>
        <data source="ascension_crystal"><label>Ascension Crystal</label></data>
        <data source="space_pumpkin"><label>Space Pumpkin</label></data>
        <data source="ghost_pumpkin"><label>Ghost Pumpkin</label></data>
        <data source="gamma_pumpkin"><label>Gamma Pumpkin</label></data>
        <data source="void_pumpkin"><label>Void Pumpkin</label></data>
        <data source="soul"><label>Soul</label></data>
        <data source="embryo"><label>Embryos</label></data>
        <data source="preos_bit"><label>Preos Bits</label></data>
        <data source="snowflake"><label>Snowflake</label></data>
        <data source="weapons_part"><label>Weapons Part</label></data>
        <data source="alien_device"><label>Alien Device</label></data>
        <data source="alien_parts"><label>Alien Parts</label></data>
        <data source="plasma_batteries"><label>Plasma Batteries</label></data>
        <data source="thrust_component"><label>Thrust Components</label></data>
        <data source="armored_plating"><label>Armored Plating</label></data>
        <data source="stealth_plating"><label>Stealth Plating</label></data>
        <data source="dimensional_alloy"><label>Dimensional Alloys</label></data>
        <data source="luci_core"><label>Lucifier Cores</label></data>
        <data source="quantum_core"><label>Quantum Cores</label></data>
        <data source="kneall_core"><label>Kneall Cores</label></data>
        <data source="remnant_tech"><label>Remnant Techs</label></data>
        <data source="remnant_spore"><label>Remnant Spores</label></data>
        <data source="ice_shard"><label>Ice Shards</label></data>
        <data source="frost_core"><label>Frost Cores</label></data>
        <data source="annihilator_fighter_bay"><label>Annihilator Fighter Bay</label></data>
        <data source="punisher_weapon_salvage"><label>Punisher Weapon Salvage</label></data>
        <data source="obliterator_shield_systems"><label>Obliterator Shield Systems</label></data>
        <data source="intact_bastion_module"><label>Intact Bastion Module</label></data>
        <data source="precursor_component"><label>Precursor Component</label></data>
        <data source="ancient_scrap"><label>Ancient Scrap</label></data>
        <data source="sojourn_exclusive_part"><label>Sojourn Exclusive Part</label></data>
        <data source="precursor_nanite"><label>Precursor Nanite</label></data>
        <data source="typhoon_membrane"><label>Typhoon Membrane</label></data>


  <data source="top_speed"><label>Top Speed</label></data>
        <group row-items="2">
            <data source="permit"><label>Permit</label></data>
            <data source="prize_condition"><label>Prize Conditions</label></data>
            <data source="credit"><label>Estimated Manufacturing Fee</label></data>
            <data source="material_cost"><label>Estimated Materials Cost</label></data>
            <data source="warehouse"><label>Warehouse Level</label></data>
            <data source="total_cost" layout="default"><label>Estimated Total Cost</label></data>
        </group>


  <data source="acceleration"><label>Acceleration</label></data>
    </group>
 
  </group>
 
<group>
 
  <data source="turn_speed"><label>Turn Speed</label></data>
 
 
</group>
 
<header>Armament</header>
 
<group>
      
      
  <data source= "armed">
    <group>
    <label>Armed</label>
        <header>Misc</header>
    <format>{{#switch: {{{armed}}}
        <data source="description"><label>Description</label></data>
    | Yes =  
        <data source="creator"><label>Creator</label></data>
    | yes =
        <data source="version_added"><label>Version Added</label></data>
    | No = No
        <data source="date_released"><label>Released on</label></data>
    | no = No
        <data source="related_events"><label>Related Event(s)</label></data>
    | }}
        <data source="vip_required"><label>VIP Required</label></data>
    </format>
        <data source="loyalty_required"><label>Loyalty Required</label></data>
  </data>
    </group></infobox>
 
<noinclude><templatedata>
//Only use this to denote that the ship is unarmed
{
 
"params": {
  <data source="small_turrets"><label>Light Turrets</label></data>
"title": {
 
"label": "title",
  <data source="med_turrets"><label>Med. Turrets</label></data>
"description": "Autofills, you don't need to fill this in unless you wish to override the default value",
 
"type": "string",
  <data source="large_turrets"><label>Large Turrets</label></data>
"autovalue": "The {{PAGENAME}}"
 
},
  <data source="(f)_spinal"><label>(F) Spinal</label></data>
"image": {
 
"label": "image",
  <data source="(g)_spinal"><label>(G) Spinal</label></data>
"description": "Image for the ship. View the Ship Image Guidelines for help",
 
"type": "string"
  <data source="m_class_range"><label>Max Turret Range</label></data>
},
 
"top_speed": {
  <data source="r_class_range"><label>Recom. Range from Target</label></data>
"type": "number",
 
"label": "Top Speed"
  <data source="mining_lasers"><label>Mining Lasers</label></data>
},
 
"acceleration": {
  <data source="mining_range"><label>Mining Range</label></data>
"label": "Acceleration",
 
"type": "number"
  <data source="fighters"><label>Fighters</label></data>
},
 
"turn_speed": {
  </group>
"label": "Turn Speed"
 
},
<group>
"tiny_turrets": {
 
"description": "List of all Tiny size turrets on a ship"
  <header>Utility</header>
},
 
"small_turrets": {
  <data source="cargo_hold"><label>Cargo Hold</label></data>
"description": "List of all Small size turrets on a ship"
 
},
  <data source="ore_hold"><label>Ore Hold</label></data>
"med_turrets": {
 
"description": "List of all Medium size turrets on a ship"
  <data source="warp_drive"><label>Warp Drive</label></data>
},
 
"large_turrets": {
  <data source="damage_res"><label>Damage Resistance</label></data>
"description": "List of all Large size turrets on a ship"
 
},
  <data source="turret_dps"><label>Total Turret DPS</label></data>
"huge_turrets": {
 
"description": "List of all Huge size turrets on a ship"
  <data source="spinal_dps"><label>Total Spinal DPS</label></data>
},
 
"(f)_spinal": {
</group>
"description": "The primary spinal armament on a ship (topmost displayed spinal weapon in the \"/info\" command in-game).",
 
"type": "string"
<group>
},
 
"(g)_spinal": {
</group>
"description": "The secondary spinal armament on a ship (bottom-most displayed spinal weapon in the \"/info\" command in-game)",
"type": "string"
  <header>Cost</header>
},
 
"m_class_range": {
<group layout="horizontal">
"label": "Max Turret Range",
       
"description": "Range of the longest range turret on the ship",
  <data source="silicate"><label>Silicate</label></data>
"type": "number"
 
},
  <data source="carbon"><label>Carbon</label></data>
"r_class_range": {
   
"label": "Recommended Range from Target",
</group>
"description": "Range (taking turret positioning into account) that all turrets will be active and able to shoot",
 
"type": "number"
<group layout="horizontal"
},
 
"mining_lasers": {
  <data source="iridium"><label>Iridium</label></data>
"description": "List of all the Mining lasers on a ship",
 
"label": "Mining Lasers",
  <data source="adamantite"><label>Adamantite</label></data>
"type": "string"
 
},
</group>
"mining_range": {
 
"description": "Describes the maximum range of the Mining turrets on a ship (in studs)",
<group layout="horizontal"
"type": "number",
 
"label": "Mining Range"
  <data source="palladium"><label>Palladium</label></data>
},
 
"fighters": {
  <data source="titanium"><label>Titanium</label></data>
"description": "Lists all the fighters a Carrier carries.",
 
"label": "Fighters",
</group>
"type": "string"
 
},
<group layout="horizontal"
"cargo_hold": {
 
"description": "The capacity of the ship's cargo hold",
  <data source="quantium"><label>Quantium</label></data>
"type": "number",
 
"label": "Cargo Hold"
  <data source="uranium"><label>Uranium</label></data>
},
 
"ore_hold": {
</group>
"description": "The capacity of the ship's ore hold",
 
"type": "number",
<group layout="horizontal"
"label": "Ore Hold"
 
},
  <data source="antimatter_shard"><label>Antimatter Shard</label></data>
"warp_drive": {
 
"description": "Can the ship warp? Yes/No",
  <data source="data_archive"><label>Data Archive</label></data>
"label": "Warp Drive",
 
"type": "line"
  <data source="ascension_crystal"><label>Ascension Crystal</label></data>
},
 
"stealth": {
</group>
"label": "Stealth",
 
"description": "Does the ship have stealth capabilities? Leave blank if no",
<group layout="horizontal"
"type": "line"
 
},
  <data source="space_pumpkin"><label>Space Pumpkin</label></data>
"cmax_drift": {
 
"label": "Custom Max Drift",
  <data source="ghost_pumpkin"><label>Ghost Pumpkin</label></data>
"description": "Should be a percentage, use the :info command in-game.",
 
"type": "string"
  <data source="gamma_pumpkin"><label>Gamma Pumpkin</label></data>
},
 
"shield_regen_rate": {
  <data source="void_pumpkin"><label>Void Pumpkin</label></data>
"label": "Shield Regen Rate",
 
"description": "Should be a number, specifies how much shield health is regenerated per second while in combat. Check for the stat using the \"/info\" command in-game.",
  <data source="soul"><label>Soul</label></data>
"type": "number"
 
},
  <data source="embryo"><label>Embryos</label></data>
"turret_dps": {
 
"type": "number",
  <data source="preos_bit"><label>Preos Bits</label></data>
"label": "Average Turret DPS"
},
  <data source="snowflake"><label>Snowflake</label></data>
"spinal_dps": {
 
"description": "Leave blank if the ship does not have spinals",
</group>
"type": "number",
 
"label": "Average Spinal DPS"
<group layout="horizontal"
},
 
"fighter_turret_dps": {
  <data source="weapons_part"><label>Weapons Part</label></data>
"description": "Leave blank if the ship does not have fighters. Can be found by doing the \"/info\" command ingame and adding up fighter turret dps.",
 
"type": "number"
  <data source="alien_device"><label>Alien Device</label></data>
},
 
"fighter_spinal_dps": {
  <data source="alien_parts"><label>Alien Parts</label></data>
"description": "Leave blank if the ship does not have fighters. Can be found by doing the \"/info\" command ingame and adding up fighter spinal dps.",
 
"type": "number"
</group>
},
 
"antimatter_shard": {},
<group layout="horizontal"
"data_archive": {},
 
"ascension_crystal": {},
  <data source="plasma_batteries"><!--~3,100 Credits / Unit--><label>Plasma Batteries</label></data>
"space_pumpkin": {},
 
"ghost_pumpkin": {},
  <data source="thrust_component"><label>Thrust Components</label></data>
"gamma_pumpkin": {},
 
"void_pumpkin": {},
  <data source="armored_plating"><label>Armored Plating</label></data>
"forgotten_soul": {},
 
"soul": {},
  <data source="dimensional_alloy"><label>Dimensional Alloys</label></data>
"embryo": {},
 
"preos_bit": {},
</group>
"snowflake": {},
<group layout="horizontal">
"weapons_part": {},
"alien_device": {},
  <data source="quantum_core"><label>Quantum Cores</label></data>
"alien_parts": {},
 
"stealth_plating": {},
  <data source="kneall_core"><label>Kneall Cores</label></data>
"plasma_batteries": {},
 
"thrust_component": {},
  <data source="permit"><label>Permit</label></data>
"armored_plating": {},
 
"dimensional_alloy": {},
</group>
"quantum_core": {},
 
"kneall_core": {},
<group layout="horizontal"
"luci_core": {},
 
"remnant_tech": {},
  <data source="credit"><label>Manufacturing Fee</label>
"remnant_spore": {},
  </data>
"ice_shard": {},
 
"frost_core": {},
<data source="material_cost"><label>Materials Cost</label>
"annihilator_fighter_bay": {},
  <!--All ore prices should match the Mega Base economy prices-->
"punisher_weapon_salvage": {},
  <default>${{formatnum:{{#expr:({{formatnum:{{#replace:{{{silicate|0}}}|?|0}}|R}})*4
"obliterator_shield_systems": {},
    +({{formatnum:{{#replace:{{{carbon|0}}}|?|0}}|R}})*7.6
"intact_bastion_module": {},
    +({{formatnum:{{#replace:{{{iridium|0}}}|?|0}}|R}})*9.9
"precursor_component": {},
    +({{formatnum:{{#replace:{{{adamantite|0}}}|?|0}}|R}})*12.2
"ancient_scrap": {},
    +({{formatnum:{{#replace:{{{palladium|0}}}|?|0}}|R}})*9.5
"sojourn_exclusive_part": {},
    +({{formatnum:{{#replace:{{{titanium|0}}}|?|0}}|R}})*12.4
"precursor_nanite": {},
    +({{formatnum:{{#replace:{{{quantium|0}}}|?|0}}|R}})*12.3
"typhoon_membrane": {},
    +({{formatnum:{{#replace:{{{uranium|0}}}|?|0}}|R}})*30.7
"permit": {
            }}}}</default>
"type": "string"
        <format>
},
        {{#switch: {{{material_cost}}}
"credit": {
        | Unobtainable =
"label": "Manufacturing Fee",
        | unobtainable =
"description": "The manufacturing fee of the ship. Use the \"/cost\" command ingame to find this",
        | 0 = Free
"type": "line",
        | $0 = Free
"deprecated": "Avoid usage"
        | Force = {{{force_material_cost}}}
},
        | force = {{{force_material_cost}}}
"material_cost": {
        |${{formatnum:{{#expr:({{formatnum:{{#replace:{{{silicate|0}}}|?|0}}|R}})*4
"description": "The cost of all the materials. Use the \"/cost\" command ingame to find this",
        +({{formatnum:{{#replace:{{{carbon|0}}}|?|0}}|R}})*7.6
"label": "Material Cost",
        +({{formatnum:{{#replace:{{{iridium|0}}}|?|0}}|R}})*9.9
"type": "line"
        +({{formatnum:{{#replace:{{{adamantite|0}}}|?|0}}|R}})*12.2
},
        +({{formatnum:{{#replace:{{{palladium|0}}}|?|0}}|R}})*9.5
"total_cost": {
        +({{formatnum:{{#replace:{{{titanium|0}}}|?|0}}|R}})*12.4
"description": "The cost of the materials + the manufacturing fee. Use the \"/cost\" command ingame to find this",
        +({{formatnum:{{#replace:{{{quantium|0}}}|?|0}}|R}})*12.3
"label": "Total Cost",
        +({{formatnum:{{#replace:{{{uranium|0}}}|?|0}}|R}})*30.7
"type": "line"
            }}
},
          }}   
"warehouse": {
        }}
"label": "Warehouse Level",
        </format>
"description": "The warehouse level needed to build the ship",
  </data>
"type": "number"
 
},
</group>
"prize_condition": {
 
"type": "string",
<group layout="horizontal">
"label": "Prize Conditions",
 
"description": "If the ship is awarded as a prize, what are the conditions to win it?"
  <data source="total_cost"><label>Total Cost</label>
},
    <default>${{formatnum:{{#expr:{{formatnum:{{#replace:{{#replace:{{{credit|0}}}|$|}}|?|0}}|R}}
"description": {
    +({{formatnum:{{#replace:{{{silicate|0}}}|?|0}}|R}})*4
"description": "The ship's description. Found using \"/info\" command ingame. Ketchupbot autofills this",
    +({{formatnum:{{#replace:{{{carbon|0}}}|?|0}}|R}})*7.6
"type": "string"
    +({{formatnum:{{#replace:{{{iridium|0}}}|?|0}}|R}})*9.9
},
    +({{formatnum:{{#replace:{{{adamantite|0}}}|?|0}}|R}})*12.2
"creator": {
    +({{formatnum:{{#replace:{{{palladium|0}}}|?|0}}|R}})*9.5
"description": "The original creator of the ship + any remodelers ",
    +({{formatnum:{{#replace:{{{titanium|0}}}|?|0}}|R}})*12.4
"type": "string"
    +({{formatnum:{{#replace:{{{quantium|0}}}|?|0}}|R}})*12.3
},
    +({{formatnum:{{#replace:{{{uranium|0}}}|?|0}}|R}})*30.7
"version_added": {
            }}}}</default>
"description": "The in-game version at the time the ship was released into the game.",
        <format>
"type": "line"
        {{#ifeq: {{lc:{{{material_cost}}}}} | force | ${{formatnum:{{#expr:{{formatnum:{{#replace:{{#replace:{{{credit|0}}}|$|}}|?|0}}|R}}+{{formatnum:{{#replace:{{#replace:{{{force_material_cost|0}}}|$|}}|?|0}}|R}}}}}} |
},
        {{#switch: {{{total_cost}}}
"vip_required": {
        | Free = Free
"type": "boolean",
        | 0 = Free
"description": "Does the ship require VIP to build & use? Yes/No"
        | $0 = Free
},
        | Unobtainable = Unobtainable
"loyalty_required": {
        | Prize = Prize
"description": "Loyalty required to spawn a ship.",
        | Force = {{{force_cost}}}
"type": "line"
        | force = {{{force_cost}}}
},
        |${{formatnum:{{#expr:{{formatnum:{{#replace:{{#replace:{{{credit|0}}}|$|}}|?|0}}|R}}
"shields": {
        +({{formatnum:{{#replace:{{{silicate|0}}}|?|0}}|R}})*4
"type": "number",
        +({{formatnum:{{#replace:{{{carbon|0}}}|?|0}}|R}})*7.6
"label": "Shields"
        +({{formatnum:{{#replace:{{{iridium|0}}}|?|0}}|R}})*9.9
},
        +({{formatnum:{{#replace:{{{adamantite|0}}}|?|0}}|R}})*12.2
"hull": {
        +({{formatnum:{{#replace:{{{palladium|0}}}|?|0}}|R}})*9.5
"type": "number",
        +({{formatnum:{{#replace:{{{titanium|0}}}|?|0}}|R}})*12.4
"label": "Hull"
        +({{formatnum:{{#replace:{{{quantium|0}}}|?|0}}|R}})*12.3
},
        +({{formatnum:{{#replace:{{{uranium|0}}}|?|0}}|R}})*30.7
"explosion_radius": {
            }}
"description": "The explosion radius of a ship, i.e. how large the explosion is in studs, down-scaled by a factor of 9 (found in the \"/info\" command in-game).",
          }}
"type": "number",
        }}
"label": "Explosion Radius"
        }}
},
        </format>
"related_events": {
  </data>
"label": "Related Events",
 
"description": "Links to events related to the ship",
  <data source="warehouse"><label>Warehouse Level</label></data>
"type": "string"
 
},
</group>
"date_released": {
 
"description": "The date the ship was originally released on, in YYYY-MM-DD format",
<group layout="horizontal">
"type": "date"
      <data source="prize_condition"><label>Prize Conditions</label></data>
}
  <!--use only if ship is awarded as a prize-->
},
</group>
"paramOrder": [
 
"title",
<group>
"image",
 
"shields",
  <header>Misc</header>
"hull",
 
"shield_regen_rate",
  <data source="description"><label>Description</label></data>
"top_speed",
 
"acceleration",
  <data source="creator"><label>Creator</label></data>
"turn_speed",
 
"tiny_turrets",
  <data source="version_added"><label>Version Added</label></data>
"small_turrets",
 
"med_turrets",
  <data source="vip_required"><label>VIP Required</label></data>
"large_turrets",
 
"huge_turrets",
  <data source="loyalty_required"><label>Loyalty Required</label></data>
"(f)_spinal",
 
"(g)_spinal",
</group>
"m_class_range",
 
"r_class_range",
</infobox>
"mining_lasers",
"mining_range",
"fighters",
"cargo_hold",
"ore_hold",
"warp_drive",
"stealth",
"cmax_drift",
"turret_dps",
"spinal_dps",
"fighter_turret_dps",
"fighter_spinal_dps",
"explosion_radius",
"antimatter_shard",
"data_archive",
"ascension_crystal",
"space_pumpkin",
"ghost_pumpkin",
"gamma_pumpkin",
"void_pumpkin",
"forgotten_soul",
"soul",
"embryo",
"preos_bit",
"snowflake",
"weapons_part",
"alien_device",
"alien_parts",
"plasma_batteries",
"thrust_component",
"armored_plating",
"stealth_plating",
"dimensional_alloy",
"luci_core",
"quantum_core",
"kneall_core",
"remnant_tech",
"remnant_spore",
"ice_shard",
"frost_core",
"annihilator_fighter_bay",
"punisher_weapon_salvage",
"obliterator_shield_systems",
"intact_bastion_module",
"precursor_component",
"ancient_scrap",
"sojourn_exclusive_part",
"precursor_nanite",
"typhoon_membrane",
"permit",
"prize_condition",
"credit",
"material_cost",
"warehouse",
"total_cost",
"description",
"creator",
"version_added",
"date_released",
"related_events",
"vip_required",
"loyalty_required"
],
"description": "The template to use when filling in ship information, should be put on all ship pages",
"format": "\n{{_\n|_ = _\n}}\n"
}</templatedata>
{{#cargo_declare:_table=ShipData
|hull=String
|shields=String
|top_speed=Integer
|acceleration=Integer
|turn_speed=Float
|cargo_hold=String
|ore_hold=String
|warp_drive=Boolean
|stealth=Boolean
|cmax_drift=String
|turret_dps=Integer
|spinal_dps=Integer
|fighter_turret_dps=Integer
|fighter_spinal_dps=Integer
|explosion_radius=Integer
|credit=String
|material_cost=String
|warehouse=Integer
|total_cost=String
|description=Text
|creator=Text
|version_added=String
|vip_required=Boolean
|loyalty_required=String
}}</noinclude>