Template:Infobox Vehicle: Difference between revisions

From Red Faction Wiki
No edit summary
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="font-size:89%; float:{{{align|right}}}; width:250px; background-color:#cccccc;"
<includeonly><infobox>
|-
    <group>
|colspan="2" style="text-align:center; background:#cccccc; -moz-border-radius-topleft: 0.5em; -moz-border-radius-topright: 0.5em;"|<big>'''{{{name}}}'''<big>
<title source="name"><default>{{PAGENAME}}</default><format>{{{name|{{PAGENAME}}}}}</format></title>
|-
<media source="image">
|colspan="2" style="text-align:center; background:#FFFFFF"|{{{image}}}
    <caption source="imageinfo"><small>{{{imageinfo}}}</small></caption>
|-
    </media>
|colspan="2" style="text-align:center; background:#cccccc"|''{{{games}}}''
</group>
|-
|style="background:#ffffff"|'''Faction'''
|style="color:white; background:#aaaaaa"|{{{faction}}}
|-
|style="background:#ffffff"|'''Typical Location'''
|style="color:white; background:#aaaaaa"|{{{typical location}}}
|-
|style="background:#ffffff"|'''Mounted Weapons'''
|style="color:white; background:#aaaaaa"|{{{mounted weapons}}}
|-
|style="background:#ffffff"|'''Number of seats'''
|style="color:white; background:#aaaaaa"|{{{number of seats}}}
|-
|style="background:#ffffff"|'''Purpose'''
|style="color:white; background:#aaaaaa"|{{{purpose}}}
|}<noinclude>


{|float="left"
<group>
|<pre>
<header><small>Information</small></header>
    <data source="games"><label>'''Game'''</label></data>
<data source="faction"><label>'''Faction'''</label></data>
    <data source="appears"><label>'''Appears'''</label></data>
    </group>
 
    <group>
    <header><small>Vehicle</small></header>
    <data source="type"><label>'''Type'''</label></data>
    <data source="max_hp"><label>'''Max HP'''</label></data>
    <data source="max_speed"><label>'''Speed'''</label></data>
    <data source="primary"><label>'''Primary Fire'''</label></data>
    <data source="alt"><label>'''Alt. Fire'''</label></data>
    <data source="primarymelee"><label>'''Primary Melee'''</label></data>
    <data source="altmelee"><label>'''Alt. Melee'''</label></data>
    <data source="jump"><label>'''Jump'''</label></data>
    <data source="crouch/grenade"><label>'''Crouch / Throw Grenade'''</label></data>
<data source="size"><label>'''Size'''</label></data>
<data source="number of seats"><label>'''Num. of seats'''</label></data>
    <data source="mounted weapons"><label>'''Mounted weapon(s)'''</label></data>
    <data source="internal names"><label>'''Internal name(s)'''</label></data>
</group>
</infobox>
[[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>
{{Infobox Vehicle
{{Infobox Vehicle
|name              =
|name              =
|image              =
|image              =
|games              =
|imageinfo          =
|faction           =
|games             =
|typical location  =
|faction            =
|appears            =
|internal names    =
|type               =
|max_speed          =
|max_hp            =
|primary           =
|alt                =
|primarymelee      =
|altmelee          =
|jump              =
|crouch/grenade    =
|size              =
|number of seats    =
|mounted weapons    =
|mounted weapons    =
|number of seats    =
|purpose            =
}}
}}
</pre>
</pre>
|}
'''Usage:'''
<pre>
{{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
}}
</pre>


[[Category:Infobox Templates|{{PAGENAME}}]]</noinclude>
'''Output:'''
{{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
}}</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: