Template:Ship Infobox: Difference between revisions

no edit summary
(remove deprecated properties, optimize templatedata, fix formatting on some options. changes may break some ship pages, please update ship pages to comply with this edit)
No edit summary
Tag: 2017 source edit
(32 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<infobox>
{{#cargo_store:_table=ShipData}}
    <title source="title1">
<infobox>   <title source="title">
     <default>The {{PAGENAME}}</default>
     <default>The {{PAGENAME}}</default>
     </title>
     </title>


     <image source="image1"></image>
     <image source="image"></image>


    <header>Health</header>
     <group layout="horizontal">
     <group layout="horizontal">
        <header>Health</header>
         <data source="shields"><label>Shields</label></data>
         <data source="shields"><label>Shields</label></data>
         <data source="hull"><label>Hull</label></data>
         <data source="hull"><label>Hull</label></data>
        <data source="shield_regen_rate"><label>Shield Regen Rate</label></data>
     </group>
     </group>


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


     <group>
     <group>
         <data source="turn_speed"><label>Turn Speed</label></data>
         <header>Armament</header>
    </group>
 
    <header>Armament</header>
    <group>
         <data source="tiny_turrets"><label>Tiny Turrets</label></data>
         <data source="tiny_turrets"><label>Tiny Turrets</label></data>
         <data source="small_turrets"><label>Light Turrets</label></data>
         <data source="small_turrets"><label>Light Turrets</label></data>
Line 37: Line 35:
         <data source="fighters"><label>Fighters</label></data>
         <data source="fighters"><label>Fighters</label></data>
     </group>
     </group>
 
      
     <header>Utility</header>
     <group>
     <group>
        <header>Utility</header>
         <data source="cargo_hold"><label>Cargo Hold</label></data>
         <data source="cargo_hold"><label>Cargo Hold</label></data>
         <data source="ore_hold"><label>Ore Hold</label></data>
         <data source="ore_hold"><label>Ore Hold</label></data>
         <data source="warp_drive"><label>Warp Drive</label></data>
         <data source="warp_drive"><label>Warp Drive</label></data>
        <data source="damage_res"><label>Damage Resistance</label></data>
         <data source="stealth"><label>Stealth</label></data>
         <data source="stealth"><label>Stealth</label></data>
         <data source="cmax_drift"><label>Custom Max Drift</label></data>
         <data source="cmax_drift"><label>Custom Max Drift</label></data>
Line 53: Line 50:
     </group>
     </group>


     <header>Cost</header>
     <group row-items="3">
    <group layout="horizontal">
        <header>Cost</header>
         <data source="antimatter_shard"><label>Antimatter Shard</label></data>
         <data source="antimatter_shard"><label>Antimatter Shard</label></data>
         <data source="data_archive"><label>Data Archive</label></data>
         <data source="data_archive"><label>Data Archive</label></data>
         <data source="ascension_crystal"><label>Ascension Crystal</label></data>
         <data source="ascension_crystal"><label>Ascension Crystal</label></data>
    </group>
    <group layout="horizontal">
         <data source="space_pumpkin"><label>Space Pumpkin</label></data>
         <data source="space_pumpkin"><label>Space Pumpkin</label></data>
         <data source="ghost_pumpkin"><label>Ghost Pumpkin</label></data>
         <data source="ghost_pumpkin"><label>Ghost Pumpkin</label></data>
Line 69: Line 63:
         <data source="preos_bit"><label>Preos Bits</label></data>
         <data source="preos_bit"><label>Preos Bits</label></data>
         <data source="snowflake"><label>Snowflake</label></data>
         <data source="snowflake"><label>Snowflake</label></data>
    </group>
         <data source="weapons_part"><label>Weapons Part</label></data>
 
    <group layout="horizontal">
         <data source="weapons_part"><label title="test">Weapons Part</label></data>
         <data source="alien_device"><label>Alien Device</label></data>
         <data source="alien_device"><label>Alien Device</label></data>
         <data source="alien_parts"><label>Alien Parts</label></data>
         <data source="alien_parts"><label>Alien Parts</label></data>
    </group>
    <group layout="horizontal">
         <data source="plasma_batteries"><label>Plasma Batteries</label></data>
         <data source="plasma_batteries"><label>Plasma Batteries</label></data>
         <data source="thrust_component"><label>Thrust Components</label></data>
         <data source="thrust_component"><label>Thrust Components</label></data>
Line 84: Line 72:
         <data source="dimensional_alloy"><label>Dimensional Alloys</label></data>
         <data source="dimensional_alloy"><label>Dimensional Alloys</label></data>
         <data source="luci_core"><label>Lucifier Cores</label></data>
         <data source="luci_core"><label>Lucifier Cores</label></data>
    </group>
    <group layout="horizontal">
         <data source="quantum_core"><label>Quantum Cores</label></data>
         <data source="quantum_core"><label>Quantum Cores</label></data>
         <data source="kneall_core"><label>Kneall Cores</label></data>
         <data source="kneall_core"><label>Kneall Cores</label></data>
         <data source="permit"><label>Permit</label></data>
         <data source="remnant_tech"><label>Remnant Techs</label></data>
    </group>
        <data source="remnant_spore"><label>Remnant Spores</label></data>
 
        <data source="ice_shard"><label>Ice Shards</label></data>
    <group layout="horizontal">
        <data source="frost_core"><label>Frost Cores</label></data>
         <data source="credit"><label>Manufacturing Fee</label></data>
         <data source="annihilator_fighter_bay"><label>Annihilator Fighter Bay</label></data>
         <data source="material_cost"><label>Materials Cost</label></data>
         <data source="punisher_weapon_salvage"><label>Punisher Weapon Salvage</label></data>
    </group>
        <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>


    <group layout="horizontal">
        <group row-items="2">
        <data source="total_cost"><label>Total Cost</label></data>
            <data source="permit"><label>Permit</label></data>
        <data source="warehouse"><label>Warehouse Level</label></data>
            <data source="prize_condition"><label>Prize Conditions</label></data>
    </group>
            <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>


    <group layout="horizontal">
        <data source="prize_condition"><label>Prize Conditions</label></data>  <!--use only if ship is awarded as a prize-->
     </group>
     </group>
 
      
     <header>Misc</header>
     <group>
     <group>
        <header>Misc</header>
         <data source="description"><label>Description</label></data>
         <data source="description"><label>Description</label></data>
         <data source="creator"><label>Creator</label></data>
         <data source="creator"><label>Creator</label></data>
         <data source="version_added"><label>Version Added</label></data>
         <data source="version_added"><label>Version Added</label></data>
        <data source="date_released"><label>Released on</label></data>
        <data source="related_events"><label>Related Event(s)</label></data>
         <data source="vip_required"><label>VIP Required</label></data>
         <data source="vip_required"><label>VIP Required</label></data>
         <data source="loyalty_required"><label>Loyalty Required</label></data>
         <data source="loyalty_required"><label>Loyalty Required</label></data>
     </group>
     </group></infobox>
 
<noinclude><templatedata>
</infobox>
<noinclude>
<templatedata>
{
{
"params": {
"params": {
"title1": {
"title": {
"label": "title",
"description": "Autofills, you don't need to fill this in unless you wish to override the default value",
"description": "Autofills, you don't need to fill this in unless you wish to override the default value",
"type": "string",
"type": "string",
"label": "title",
"autovalue": "The {{PAGENAME}}"
"autovalue": "The {{PAGENAME}}"
},
},
"image1": {
"image": {
"label": "image",
"description": "Image for the ship. View the Ship Image Guidelines for help",
"description": "Image for the ship. View the Ship Image Guidelines for help",
"label": "image"
"type": "string"
},
},
"top_speed": {
"top_speed": {
Line 157: Line 150:
},
},
"(f)_spinal": {
"(f)_spinal": {
"description": "The primary spinal armament on a ship (topmost displayed spinal weapon in the :info command in-game).",
"description": "The primary spinal armament on a ship (topmost displayed spinal weapon in the \"/info\" command in-game).",
"type": "string"
"type": "string"
},
},
"(g)_spinal": {
"(g)_spinal": {
"description": "The secondary spinal armament on a ship (bottom-most displayed spinal weapon in the :info command in-game)",
"description": "The secondary spinal armament on a ship (bottom-most displayed spinal weapon in the \"/info\" command in-game)",
"type": "string"
"type": "string"
},
},
Line 202: Line 195:
"description": "Can the ship warp? Yes/No",
"description": "Can the ship warp? Yes/No",
"label": "Warp Drive",
"label": "Warp Drive",
"type": "line"
},
"damage_res": {
"label": "Damage Resistance",
"description": "Should be a percentage",
"type": "line"
"type": "line"
},
},
"stealth": {
"stealth": {
"label": "Stealth",
"label": "Stealth",
"description": "Is it a Stealth Ship? Yes/No",
"description": "Does the ship have stealth capabilities? Leave blank if no",
"type": "line"
"type": "line"
},
},
Line 218: Line 206:
"description": "Should be a percentage, use the :info command in-game.",
"description": "Should be a percentage, use the :info command in-game.",
"type": "string"
"type": "string"
},
"shield_regen_rate": {
"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.",
"type": "number"
},
},
"turret_dps": {
"turret_dps": {
Line 229: Line 222:
},
},
"fighter_turret_dps": {
"fighter_turret_dps": {
"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.",
"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"
"type": "number"
},
},
"fighter_spinal_dps": {
"fighter_spinal_dps": {
"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.",
"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"
"type": "number"
},
},
Line 259: Line 252:
"kneall_core": {},
"kneall_core": {},
"luci_core": {},
"luci_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": {
"permit": {
"type": "string"
"type": "string"
Line 264: Line 270:
"credit": {
"credit": {
"label": "Manufacturing Fee",
"label": "Manufacturing Fee",
"description": "The manufacturing fee of the ship. Use the :cost command ingame to find this"
"description": "The manufacturing fee of the ship. Use the \"/cost\" command ingame to find this",
"type": "line",
"deprecated": "Avoid usage"
},
},
"material_cost": {
"material_cost": {
"description": "The cost of all the materials. Use the :cost command ingame to find this",
"description": "The cost of all the materials. Use the \"/cost\" command ingame to find this",
"label": "Material Cost"
"label": "Material Cost",
"type": "line"
},
},
"total_cost": {
"total_cost": {
"description": "The cost of the materials + the manufacturing fee. Use the :cost command ingame to find this",
"description": "The cost of the materials + the manufacturing fee. Use the \"/cost\" command ingame to find this",
"label": "Total Cost"
"label": "Total Cost",
"type": "line"
},
},
"warehouse": {
"warehouse": {
Line 280: Line 290:
},
},
"prize_condition": {
"prize_condition": {
"type": "string"
"type": "string",
"label": "Prize Conditions",
"description": "If the ship is awarded as a prize, what are the conditions to win it?"
},
},
"description": {
"description": {
"description": "The ship's description. Found using :info command ingame. Ketchupbot autofills this",
"description": "The ship's description. Found using \"/info\" command ingame. Ketchupbot autofills this",
"type": "string"
"type": "string"
},
},
Line 311: Line 323:
},
},
"explosion_radius": {
"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).",
"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",
"type": "number",
"label": "Explosion Radius"
"label": "Explosion Radius"
},
"related_events": {
"label": "Related Events",
"description": "Links to events related to the ship",
"type": "string"
},
"date_released": {
"description": "The date the ship was originally released on, in YYYY-MM-DD format",
"type": "date"
}
}
},
},
"paramOrder": [
"paramOrder": [
"title1",
"title",
"image1",
"image",
"shields",
"shields",
"hull",
"hull",
"shield_regen_rate",
"top_speed",
"top_speed",
"acceleration",
"acceleration",
Line 339: Line 361:
"ore_hold",
"ore_hold",
"warp_drive",
"warp_drive",
"damage_res",
"stealth",
"stealth",
"cmax_drift",
"cmax_drift",
Line 362: Line 383:
"alien_device",
"alien_device",
"alien_parts",
"alien_parts",
"stealth_plating",
"plasma_batteries",
"plasma_batteries",
"thrust_component",
"thrust_component",
"armored_plating",
"armored_plating",
"stealth_plating",
"dimensional_alloy",
"dimensional_alloy",
"luci_core",
"quantum_core",
"quantum_core",
"kneall_core",
"kneall_core",
"luci_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",
"permit",
"prize_condition",
"credit",
"credit",
"material_cost",
"material_cost",
"warehouse",
"total_cost",
"total_cost",
"warehouse",
"prize_condition",
"description",
"description",
"creator",
"creator",
"version_added",
"version_added",
"date_released",
"related_events",
"vip_required",
"vip_required",
"loyalty_required"
"loyalty_required"
],
],
"description": "The template to use when filling in ship information, should be put on all ship pages"
"description": "The template to use when filling in ship information, should be put on all ship pages",
}
"format": "\n{{_\n|_ = _\n}}\n"
</templatedata>
}</templatedata>
</noinclude>
{{#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>