Template:Infobox Vehicle: Difference between revisions
SimpleArrows (talk | contribs) mNo edit summary |
SimpleArrows (talk | contribs) 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> | ||
'''Usage:''' | '''Usage:''' | ||
<pre> | <pre> | ||
Line 106: | Line 215: | ||
|jump = Zoom | |jump = Zoom | ||
|crouch/grenade = Target Lock | |crouch/grenade = Target Lock | ||
}} | }}</noinclude> | ||
Latest revision as of 13:23, 6 February 2024
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | name | Display or commonly used name of vehicle.
| String | optional |
Image | image | no description
| File | required |
Caption | imageinfo | A caption for the image to provide extra context if needed.
| String | optional |
Games | games | The game the vehicle appears in. Use Template:Game for this parameter.
| Template | suggested |
Faction | faction | The faction associated with the vehicle, e.g. the manufacturer or the people who most commonly drive it. Use Template:Team for this parameter.
| Template | suggested |
Appears | appears | Locations or levels where the vehicle appears.
| String | suggested |
Internal Names | 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)
| String | optional |
Type | type | Type/category of vehicle for extra context of its use.
| String | suggested |
Max Speed | 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
| Number | optional |
Max Health Points | max_hp | Max hit points of the vehicle, numerical value
| Number | optional |
Primary Fire | primary | The weapon used as the primary fire. | String | optional |
Alt. Fire | alt | The weapon used as the alternate fire. | String | optional |
Primary Melee | primarymelee | The weapon used in primary melee. Intended for RF:A. | String | optional |
Alternate Melee | altmelee | The weapon used in primary melee. Intended for RF:A. | String | optional |
Jump | jump | The weapon used in jump. Intended for RF2. | String | optional |
Crouch/Grenade | crouch/grenade | The weapon used in crouch/grenade. Intended for RF2. | String | optional |
Number of seats | number of seats | Number of seats in the vehicle. Include driver and passenger seats. | Number | suggested |
Mounted Weapons | mounted 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.
| String | optional |
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: