Template:Ship Infobox: Difference between revisions

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
(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)
Line 1: Line 1:
<infobox>
<infobox>
     <title source="title1">
     <title source="title1">
        <format>{{#switch: {{{title1}}}
    <default>The {{PAGENAME}}</default>
            | force =
            | Force =
            | {{PAGENAME}} = The {{PAGENAME}}
            | The {{PAGENAME}}
            }}
        </format>
     </title>
     </title>


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


     <header>Health</header>
     <header>Health</header>
Line 32: Line 24:
     <header>Armament</header>
     <header>Armament</header>
     <group>
     <group>
        //Only use this to denote that the ship is unarmed
        <data source="armed">
            <label>Armed</label>
            <format>{{#switch: {{{armed}}}
                | Yes =
                | yes =
                | No = No
                | no = No
                | }}
            </format>
        </data>
         <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 74: Line 54:


     <header>Cost</header>
     <header>Cost</header>
    <group layout="horizontal">
        <data source="silicate"><label>Silicate</label></data>
        <data source="carbon"><label>Carbon</label></data>
    </group>
    <group layout="horizontal">
        <data source="iridium"><label>Iridium</label></data>
        <data source="adamantite"><label>Adamantite</label></data>
    </group>
    <group layout="horizontal">
        <data source="palladium"><label>Palladium</label></data>
        <data source="titanium"><label>Titanium</label></data>
    </group>
    <group layout="horizontal">
        <data source="quantium"><label>Quantium</label></data>
        <data source="uranium"><label>Uranium</label></data>
    </group>
     <group layout="horizontal">
     <group layout="horizontal">
         <data source="antimatter_shard"><label>Antimatter Shard</label></data>
         <data source="antimatter_shard"><label>Antimatter Shard</label></data>
Line 112: Line 72:


     <group layout="horizontal">
     <group layout="horizontal">
         <data source="weapons_part"><label>Weapons Part</label></data>
         <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>
Line 161: Line 121:
"params": {
"params": {
"title1": {
"title1": {
"description": "Usually autofills, you don't need to fill this in half of the time.",
"description": "Autofills, you don't need to fill this in unless you wish to override the default value",
"type": "string",
"type": "string",
"label": "title"
"label": "title",
},
"autovalue": "The {{PAGENAME}}"
"armed": {
"description": "Is the ship armed? Yes/No",
"example": "Yes",
"type": "boolean",
"deprecated": "Non standard, will be removed soon"
},
},
"image1": {
"image1": {
"description": "Image for the ship, this might be a bit tricky so ask Wiki Staff if you need support.",
"description": "Image for the ship. View the Ship Image Guidelines for help",
"example": "Deity-icon.png",
"type": "wiki-file-name",
"label": "image"
"label": "image"
},
},
"top_speed": {
"top_speed": {
"type": "number",
"type": "number",
"description": "Self explanatory"
"label": "Top Speed"
},
},
"acceleration": {
"acceleration": {
"description": "Can be found by doing the :info command ingame."
"label": "Acceleration",
"type": "number"
},
},
"turn_speed": {
"turn_speed": {
"description": "Can be found by doing the :info command ingame."
"label": "Turn Speed"
},
},
"tiny_turrets": {
"tiny_turrets": {
"description": "List of all Tiny size turrets on a ship."
"description": "List of all Tiny size turrets on a ship"
},
},
"small_turrets": {
"small_turrets": {
"description": "List of all Small size turrets on a ship."
"description": "List of all Small size turrets on a ship"
},
},
"med_turrets": {
"med_turrets": {
"description": "List of all Medium size turrets on a ship."
"description": "List of all Medium size turrets on a ship"
},
},
"large_turrets": {
"large_turrets": {
"description": "List of all Large size turrets on a ship."
"description": "List of all Large size turrets on a ship"
},
},
"huge_turrets": {
"huge_turrets": {
"description": "List of all Huge size turrets on a ship."
"description": "List of all Huge size turrets on a ship"
},
},
"(f)_spinal": {
"(f)_spinal": {
"description": "The primary spinal armament on a ship (topmost displayed spinal weapon in the :shipinfo command in-game)."
"description": "The primary spinal armament on a ship (topmost displayed spinal weapon in the :info command in-game).",
"type": "string"
},
},
"(g)_spinal": {
"(g)_spinal": {
"description": "The secondary spinal armament on a ship (bottom-most displayed spinal weapon in the :shipinfo command in-game)."
"description": "The secondary spinal armament on a ship (bottom-most displayed spinal weapon in the :info command in-game)",
"type": "string"
},
},
"m_class_range": {
"m_class_range": {
Line 214: Line 170:
},
},
"r_class_range": {
"r_class_range": {
"label": "Recom. Range from Target",
"label": "Recommended Range from Target",
"description": "Range (taking turret positioning into account) that all turrets will be able to shoot at",
"description": "Range (taking turret positioning into account) that all turrets will be active and able to shoot",
"type": "number"
"type": "number"
},
},
"mining_lasers": {
"mining_lasers": {
"description": "Used to list all the Mining turrets on a ship."
"description": "List of all the Mining lasers on a ship",
"label": "Mining Lasers",
"type": "string"
},
},
"mining_range": {
"mining_range": {
"description": "Describes the maximum range of the Mining turrets on a ship in studs.",
"description": "Describes the maximum range of the Mining turrets on a ship (in studs)",
"type": "number"
"type": "number",
"label": "Mining Range"
},
},
"fighters": {
"fighters": {
"description": "Lists all the fighters a Carrier carries."
"description": "Lists all the fighters a Carrier carries.",
"label": "Fighters",
"type": "string"
},
},
"cargo_hold": {
"cargo_hold": {
"description": "How much cargo hold space a ship has.",
"description": "The capacity of the ship's cargo hold",
"type": "number"
"type": "number",
"label": "Cargo Hold"
},
},
"ore_hold": {
"ore_hold": {
"description": "How much ore hold space a ship has.",
"description": "The capacity of the ship's ore hold",
"type": "number"
"type": "number",
"label": "Ore Hold"
},
},
"warp_drive": {
"warp_drive": {
"description": "Can the ship warp? Yes/No"
"description": "Can the ship warp? Yes/No",
"label": "Warp Drive",
"type": "line"
},
},
"damage_res": {
"damage_res": {
"label": "Damage Resistance",
"label": "Damage Resistance",
"description": "Should be a percentage"
"description": "Should be a percentage",
"type": "line"
},
},
"stealth": {
"stealth": {
"label": "Stealth",
"label": "Stealth",
"description": "Is it a Stealth Ship? Yes/No"
"description": "Is it a Stealth Ship? Yes/No",
"type": "line"
},
},
"cmax_drift": {
"cmax_drift": {
Line 268: Line 235:
"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"
},
"silicate": {
"deprecated": "Refrain from using"
},
"carbon": {
"deprecated": "Refrain from using"
},
"iridium": {
"deprecated": "Refrain from using"
},
"adamantite": {
"deprecated": "Refrain from using"
},
"palladium": {
"deprecated": "Refrain from using"
},
"titanium": {
"deprecated": "Refrain from using"
},
"quantium": {
"deprecated": "Refrain from using"
},
"uranium": {
"deprecated": "Refrain from using"
},
},
"antimatter_shard": {},
"antimatter_shard": {},
Line 317: Line 260:
"luci_core": {},
"luci_core": {},
"permit": {
"permit": {
"description": "The permit the ship requires",
"type": "string"
"type": "string"
},
},
"credit": {
"credit": {
"label": "Manufacturing Fee",
"label": "Manufacturing Fee",
"description": "Usually found using cost command ingame"
"description": "The manufacturing fee of the ship. Use the :cost command ingame to find this"
},
},
"material_cost": {
"material_cost": {
"description": "Usually auto-calculated, you can leave this blank."
"description": "The cost of all the materials. Use the :cost command ingame to find this",
"label": "Material Cost"
},
},
"total_cost": {
"total_cost": {
"description": "Usually auto-calculated, you can leave this blank."
"description": "The cost of the materials + the manufacturing fee. Use the :cost command ingame to find this",
"label": "Total Cost"
},
},
"warehouse": {
"warehouse": {
Line 339: Line 283:
},
},
"description": {
"description": {
"description": "The ship's description. Found using :info command ingame",
"description": "The ship's description. Found using :info command ingame. Ketchupbot autofills this",
"type": "string"
"type": "string"
},
},
Line 348: Line 292:
"version_added": {
"version_added": {
"description": "The in-game version at the time the ship was released into the game.",
"description": "The in-game version at the time the ship was released into the game.",
"type": "string"
"type": "line"
},
},
"vip_required": {
"vip_required": {
Line 356: Line 300:
"loyalty_required": {
"loyalty_required": {
"description": "Loyalty required to spawn a ship.",
"description": "Loyalty required to spawn a ship.",
"type": "boolean"
"type": "line"
},
},
"shields": {
"shields": {
"type": "number",
"type": "number",
"description": "Self explanatory "
"label": "Shields"
},
},
"hull": {
"hull": {
"type": "number",
"type": "number",
"description": "Self explanatory"
"label": "Hull"
},
},
"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 :shipinfo 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"
}
}
},
},
Line 379: Line 324:
"acceleration",
"acceleration",
"turn_speed",
"turn_speed",
"armed",
"tiny_turrets",
"tiny_turrets",
"small_turrets",
"small_turrets",
Line 402: Line 346:
"fighter_turret_dps",
"fighter_turret_dps",
"fighter_spinal_dps",
"fighter_spinal_dps",
"silicate",
"explosion_radius",
"carbon",
"iridium",
"adamantite",
"palladium",
"titanium",
"quantium",
"uranium",
"antimatter_shard",
"antimatter_shard",
"data_archive",
"data_archive",
Line 443: Line 380:
"version_added",
"version_added",
"vip_required",
"vip_required",
"loyalty_required",
"loyalty_required"
"explosion_radius"
],
],
"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"