Template

Vehicle: Difference between revisions

From Rise: The Vieneo Province

(Create shared vehicle specifications with class extensions, visible missing fields, and rain-protection defaults)
 
(Show literal wiki-link and escaped-pipe syntax in vehicle template editing instructions)
 
Line 170: Line 170:
* Omit an unknown parameter entirely. Omitted specification fields display '''Not specified''' and place the article in [[:Category:Vehicles needing specifications]]. An explicitly empty assignment (for example, <code>|weight=</code>) overrides the default and remains blank; remove the assignment to restore the marker.
* Omit an unknown parameter entirely. Omitted specification fields display '''Not specified''' and place the article in [[:Category:Vehicles needing specifications]]. An explicitly empty assignment (for example, <code>|weight=</code>) overrides the default and remains blank; remove the assignment to restore the marker.
* Use <code>None</code>, <code>0</code>, or <code>Not applicable</code> only when that is known, rather than when a value has not been researched.
* Use <code>None</code>, <code>0</code>, or <code>Not applicable</code> only when that is known, rather than when a value has not been researched.
* Supply units and operating conditions in the value, including <code>[[CR]]</code> for prices. This preserves distinctions such as kg versus MT, km/h versus m/s, and empty versus fully loaded performance. Units are not appended automatically.
* Supply units and operating conditions in the value, including <code><nowiki>[[CR]]</nowiki></code> for prices. This preserves distinctions such as kg versus MT, km/h versus m/s, and empty versus fully loaded performance. Units are not appended automatically.
* Parameter names are case-sensitive. Standard wiki links are supported in values. Use <code>{{!}}</code> for a literal pipe outside a wiki link.
* Parameter names are case-sensitive. Standard wiki links are supported in values. Use <code><nowiki>{{!}}</nowiki></code> for a literal pipe outside a wiki link.
* Existing images can stay outside the specification table. The optional <code>image</code> parameter accepts a complete file link, for example <code><nowiki>|image=[[File:A-4.png|thumb|right|400px]]</nowiki></code>, including the filename extension.
* Existing images can stay outside the specification table. The optional <code>image</code> parameter accepts a complete file link, for example <code><nowiki>|image=[[File:A-4.png|thumb|right|400px]]</nowiki></code>, including the filename extension.
* <code>name</code> defaults to the article title; <code>notes</code> adds free-form notes below the table. These optional parameters do not generate missing-field markers.
* <code>name</code> defaults to the article title; <code>notes</code> adds free-form notes below the table. These optional parameters do not generate missing-field markers.


</noinclude>
</noinclude>

Latest revision as of 16:07, 9 October 2026

Reusable core for vehicle specifications. Use a class template on vehicle articles; each class forwards its common parameters to this core, so shared layout and labels are maintained here.

Core vehicle · Ground · Air · Aerospace · Space

Template hierarchy

  • GroundVehicle → Vehicle + ground fields.
  • AirVehicle → Vehicle + flight fields.
  • AerospaceVehicle → AirVehicle → Vehicle, adding space fields and changing the rain-protection default.
  • SpaceVehicle → Vehicle + propulsion and space fields.

This is native template composition/parameter forwarding. No additional wiki extension is needed. When adding a new public parameter, update the relevant wrapper's forwarding list as well as its documentation. The internal extension parameter holds table rows; the optional vehicle_class parameter changes the table caption.

Rain protection

Template Default for rain_protection
GroundVehicle Wipers
AirVehicle Wipers
AerospaceVehicle Bleed air system
SpaceVehicle No rain-protection row

The A-4 Wanderer must explicitly use |rain_protection=None. To flag an unknown value instead of accepting a class default, use |rain_protection={{Vehicle missing}}.

Example

{{GroundVehicle|manufacturer=[[:Category:Galanovo|Galanovo]]|price=13,800 [[CR]]|weight=915 kg|max_speed=150 km/h|gears=3|seats=2}}

Omitted fields remain visible as missing information.

Common parameters

Parameter Field Default
manufacturer Manufacturer Not specified
role Type / role Not specified
price Price / MSRP Not specified
availability Availability Not specified
restrictions Restrictions Not specified
ivr_series IVR series Not specified
length Length Not specified
width Width Not specified
height Height Not specified
weight Empty / curb weight Not specified
fuel Fuel capacity Not specified
payload Payload Not specified
max_weight Maximum gross / takeoff weight Not specified
seats Seats Not specified
passengers Passenger capacity Not specified
cargo_bays Cargo bays Not specified
cargo_capacity Cargo capacity Not specified
stowage Internal stowage Not specified
avionics_bays Avionics bays Not specified
weapon_mounts Weapon mounts Not specified
engines Engine count Not specified
engine Engine / propulsion Not specified
max_speed Maximum speed Not specified
range Normal range Not specified
endurance Endurance Not specified

Editing conventions

  • Omit an unknown parameter entirely. Omitted specification fields display Not specified and place the article in Category:Vehicles needing specifications. An explicitly empty assignment (for example, |weight=) overrides the default and remains blank; remove the assignment to restore the marker.
  • Use None, 0, or Not applicable only when that is known, rather than when a value has not been researched.
  • Supply units and operating conditions in the value, including [[CR]] for prices. This preserves distinctions such as kg versus MT, km/h versus m/s, and empty versus fully loaded performance. Units are not appended automatically.
  • Parameter names are case-sensitive. Standard wiki links are supported in values. Use {{!}} for a literal pipe outside a wiki link.
  • Existing images can stay outside the specification table. The optional image parameter accepts a complete file link, for example |image=[[File:A-4.png|thumb|right|400px]], including the filename extension.
  • name defaults to the article title; notes adds free-form notes below the table. These optional parameters do not generate missing-field markers.