Template:Infobox Vehicle: Difference between revisions

From Red Faction Wiki
mNo edit summary
mNo edit summary
 
Line 31: Line 31:
</group>
</group>
</infobox>
</infobox>
[[Category:Vehicle]]</includeonly><noinclude>
[[Category:Vehicle]]</includeonly><noinclude>[[Category:Infobox Templates|{{PAGENAME}}]]<templatedata>
 
{
"params": {
"name": {
"label": "Title",
"description": "Display or commonly used name of vehicle.",
"example": "Military Boat",
"type": "string",
"default": "Page name"
},
"image": {
"label": "Image",
"example": "Col_Mini_Hauler.png",
"type": "wiki-file-name",
"required": true
},
"imageinfo": {
"label": "Caption",
"description": "A caption for the image to provide extra context if needed.",
"example": "Cargo Ship destined for Mars in Red Faction",
"type": "string"
},
"games": {
"label": "Games",
"description": "The game the vehicle appears in. Use Template:Game for this parameter.",
"example": "{{Game|RFA}}",
"type": "wiki-template-name",
"suggested": true
},
"faction": {
"label": "Faction",
"description": "The faction associated with the vehicle, e.g. the manufacturer or the people who most commonly drive it. Use Template:Team for this parameter.",
"example": "{{Team|RFG}}",
"type": "wiki-template-name",
"suggested": true
},
"appears": {
"label": "Appears",
"description": "Locations or levels where the vehicle appears.",
"example": "[[Public Information Building]]<br>\n[[Shrike's Wild Ride]]",
"type": "string",
"suggested": true
},
"internal names": {
"label": "Internal Names",
"description": "The name that the game files refers to the vehicle as. Use the internal name from the regular variant and remove any numbers and only use the common name in all the variants (e.g. if you have \"EDF_APC-A_1\", \"EDF_APC_noturret\", \"EDF_APC-A_Gauss\" then use \"EDF_APC\" as they are the common name)",
"example": "EDF_APC",
"type": "string"
},
"type": {
"label": "Type",
"description": "Type/category of vehicle for extra context of its use.",
"example": "Transport, Unused, Mission, etc.",
"type": "string",
"suggested": true
},
"max_speed": {
"label": "Max Speed",
"description": "Max speed of the vehicle, include any speed measurement if it is mentioned in the game code. If there's no set max speed use the words Slow/Normal/Fast. For RF:G vehicles, EnforcedMaxSpeed is the value you're looking for, which uses the MPH measurement",
"example": "30 mph",
"type": "number"
},
"max_hp": {
"label": "Max Health Points",
"description": "Max hit points of the vehicle, numerical value",
"example": "3000",
"type": "number"
},
"primary": {
"label": "Primary Fire",
"description": "The weapon used as the primary fire.",
"type": "string"
},
"alt": {
"label": "Alt. Fire",
"description": "The weapon used as the alternate fire.",
"type": "string"
},
"jump": {
"label": "Jump",
"description": "The weapon used in jump. Intended for RF2.",
"type": "string"
},
"crouch/grenade": {
"label": "Crouch/Grenade",
"description": "The weapon used in crouch/grenade. Intended for RF2.",
"type": "string"
},
"primarymelee": {
"label": "Primary Melee",
"description": "The weapon used in primary melee. Intended for RF:A.",
"type": "string"
},
"altmelee": {
"label": "Alternate Melee",
"description": "The weapon used in primary melee. Intended for RF:A.",
"type": "string"
},
"number of seats": {
"label": "Number of seats",
"description": "Number of seats in the vehicle. Include driver and passenger seats.",
"type": "number",
"suggested": true
},
"mounted weapons": {
"label": "Mounted Weapons",
"description": "The weapons mounted on the vehicle or variants of the vehicle. Do not use for RF2 or RFA as this is already covered in the firing control parameters.",
"example": "MG, Gauss, Missile pods, Rocket",
"type": "string"
}
},
"paramOrder": [
"name",
"image",
"imageinfo",
"games",
"faction",
"appears",
"internal names",
"type",
"max_speed",
"max_hp",
"primary",
"alt",
"primarymelee",
"altmelee",
"jump",
"crouch/grenade",
"number of seats",
"mounted weapons"
],
"format": "block"
}
</templatedata>
View [[Template:Game]] and [[Template:Team]] for information on how to use them.
<pre>
<pre>
{{Infobox Vehicle
{{Infobox Vehicle
Line 47: Line 180:
|primary            =
|primary            =
|alt                =
|alt                =
|primarymelee      =
|altmelee          =
|jump              =
|jump              =
|crouch/grenade    =
|crouch/grenade    =
Line 54: Line 189:
}}
}}
</pre>
</pre>
'''Guide to each parameter:'''
View [[Template:Game]] and [[Template:Team]] for information on how to use them.
<pre>
{{Infobox Vehicle
|name              = Display or commonly used name of vehicle
|image              = Only type the name of the image and its extension. Do not add [[File:]] or similar syntax (e.g. Col_Mini_Hauler.png)
|imageinfo          = Context for the image if needed, not necessary to include
|games              = {{Game|}}
|faction            = {{Team|}}
|appears            = Locations or levels where the vehicle appears
|internal names    = The name that the game files refers to the vehicle as. Use the internal name from the regular variant and remove any numbers and only use the common name in all the variants (e.g. if you have "EDF_APC-A_1", "EDF_APC_noturret", "EDF_APC-A_Gauss" then use "EDF_APC" as they are the common name)
|type              = Type/category of vehicle, e.g. Transport, Unused, Mission, etc.
|max_speed          = Max speed of the vehicle, include any speed measurement if it is mentioned in the game code. If there's no set max speed use the words Slow/Normal/Fast. For RF:G vehicles, EnforcedMaxSpeed is the value you're looking for, which uses the MPH measurement
|max_hp            = Max hit points of the vehicle, numerical value
|primary            = (RF2) The weapon used in primary fire
|alt                = (RF2) The weapon used in alternate fire
|jump              = (RF2) The weapon used in jump
|crouch/grenade    = (RF2) The weapon used in crouch/grenade
|size              = Small/Medium/Large
|number of seats    = Include driver and passenger seats
|mounted weapons    = Don't use for RF2 as the parameters for firing controls already explain them
}}
</pre>
'''Usage:'''
'''Usage:'''
<pre>
<pre>
Line 106: Line 215:
|jump              = Zoom
|jump              = Zoom
|crouch/grenade    = Target Lock
|crouch/grenade    = Target Lock
}}
}}</noinclude>
 
[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 13:23, 6 February 2024

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titlename

Display or commonly used name of vehicle.

Default
Page name
Example
Military Boat
Stringoptional
Imageimage

no description

Example
Col_Mini_Hauler.png
Filerequired
Captionimageinfo

A caption for the image to provide extra context if needed.

Example
Cargo Ship destined for Mars in Red Faction
Stringoptional
Gamesgames

The game the vehicle appears in. Use Template:Game for this parameter.

Example
{{Game|RFA}}
Templatesuggested
Factionfaction

The faction associated with the vehicle, e.g. the manufacturer or the people who most commonly drive it. Use Template:Team for this parameter.

Example
{{Team|RFG}}
Templatesuggested
Appearsappears

Locations or levels where the vehicle appears.

Example
[[Public Information Building]]<br> [[Shrike's Wild Ride]]
Stringsuggested
Internal Namesinternal names

The name that the game files refers to the vehicle as. Use the internal name from the regular variant and remove any numbers and only use the common name in all the variants (e.g. if you have "EDF_APC-A_1", "EDF_APC_noturret", "EDF_APC-A_Gauss" then use "EDF_APC" as they are the common name)

Example
EDF_APC
Stringoptional
Typetype

Type/category of vehicle for extra context of its use.

Example
Transport, Unused, Mission, etc.
Stringsuggested
Max Speedmax_speed

Max speed of the vehicle, include any speed measurement if it is mentioned in the game code. If there's no set max speed use the words Slow/Normal/Fast. For RF:G vehicles, EnforcedMaxSpeed is the value you're looking for, which uses the MPH measurement

Example
30 mph
Numberoptional
Max Health Pointsmax_hp

Max hit points of the vehicle, numerical value

Example
3000
Numberoptional
Primary Fireprimary

The weapon used as the primary fire.

Stringoptional
Alt. Firealt

The weapon used as the alternate fire.

Stringoptional
Primary Meleeprimarymelee

The weapon used in primary melee. Intended for RF:A.

Stringoptional
Alternate Meleealtmelee

The weapon used in primary melee. Intended for RF:A.

Stringoptional
Jumpjump

The weapon used in jump. Intended for RF2.

Stringoptional
Crouch/Grenadecrouch/grenade

The weapon used in crouch/grenade. Intended for RF2.

Stringoptional
Number of seatsnumber of seats

Number of seats in the vehicle. Include driver and passenger seats.

Numbersuggested
Mounted Weaponsmounted weapons

The weapons mounted on the vehicle or variants of the vehicle. Do not use for RF2 or RFA as this is already covered in the firing control parameters.

Example
MG, Gauss, Missile pods, Rocket
Stringoptional

View Template:Game and Template:Team for information on how to use them.

{{Infobox Vehicle
|name               =
|image              =
|imageinfo          =
|games              = 
|faction            = 
|appears            = 
|internal names     =
|type               =
|max_speed          =
|max_hp             =
|primary            =
|alt                =
|primarymelee       =
|altmelee           =
|jump               =
|crouch/grenade     =
|size               = 
|number of seats    =
|mounted weapons    =
}}

Usage:

{{Infobox Vehicle
|name               = The AHC-36 Military Gunship
|image              = Gunship.png
|games              = {{Game|RF2}}
|faction            = {{Team|RC}} <br> {{Team|RF2}}
|appears            = [[Foreign Lands]] <br> [[Public Information Building]] <br> [[Shrike's Wild Ride]] <br> [[Tank On The Town]] <br> [[Sopot's Deadly Embrace]]
|primary            = Fire Gatling Gun
|alt                = Fire Rocket Missiles
|jump               = Zoom
|crouch/grenade     = Target Lock
}}

Output: