No edit summary |
mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{infobox |
{{infobox |
||
| |
| image1 = {{#if:{{{image}}}|[[File:{{{image}}}|400px|frameless|alt={{{alt|}}}|border|upright=.6|]]}} |
||
| image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|alt={{{alt|}}}|border|upright=.6|]]}} |
|||
| caption1 = {{{caption|}}} |
| caption1 = {{{caption|}}} |
||
| imagerowclass1 = infobox-image {{#if:{{{imagebg|}}}|{{#switch:{{{imagebg}}}|light=infobox-image--light|dark=infobox-image--dark|}}}} |
|||
| image2 = {{#if:{{{image2|}}}|[[File:{{{image2}}}|frameless|alt={{{alt|}}}|border|upright=.6|]]}} |
|||
| caption2 = {{{caption2|}}} |
|||
| abovestyle = background:#eaecee;font-size:130%;padding:0.3em; |
|||
| headerstyle = background:#eaecee; |
|||
| autoheaders = y |
|||
<!--------------------------------------------------------------> |
<!--------------------------------------------------------------> |
||
| header1 = {{#if:{{{type|}}}{{{cost|}}}{{{requirement|}}}{{{fire_mode|}}}{{{ammo_capacity|}}}{{{damage|}}}{{{rate_of_fire|}}}{{{velocity|}}}{{{reload_time|}}}|Weapon Stats}} |
| header1 = {{#if:{{{type|}}}{{{cost|}}}{{{requirement|}}}{{{fire_mode|}}}{{{ammo_capacity|}}}{{{damage|}}}{{{rate_of_fire|}}}{{{velocity|}}}{{{reload_time|}}}|Weapon Stats}} |
||
| rowclass1 = infobox-title |
|||
| label2 = Type |
| label2 = Type |
||
Line 50: | Line 44: | ||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
"image": { |
"image": { |
||
"description": "if no image of this weapon is provided, use Placeholder.png", |
|||
⚫ | |||
" |
"type": "wiki-file-name", |
||
"autovalue": "Placeholder.png" |
|||
⚫ | |||
}, |
|||
" |
"alt": { |
||
"type": "string" |
|||
}, |
|||
"caption": { |
|||
"type": "string" |
|||
}, |
|||
⚫ | |||
"description": "optional", |
|||
"type": "wiki-file-name" |
|||
}, |
|||
"caption2": { |
|||
"type": "string" |
|||
}, |
|||
⚫ | |||
"description": "type of a weapon", |
|||
"example": "Assault Rifle", |
|||
"type": "string" |
|||
}, |
|||
"cost": { |
"cost": { |
||
"description": "must be labelled with |
"description": "must be labelled with \"RUs\" at the end of number", |
||
"example": "150 |
"example": "150 RUs", |
||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
"requirement": { |
"requirement": { |
||
"description": "required by something to access to this weapon", |
|||
"fire_mode": {}, |
|||
" |
"example": "Tech Center", |
||
" |
"type": "string" |
||
}, |
|||
⚫ | |||
" |
"fire_mode": { |
||
"description": "weapon's fire mode", |
|||
⚫ | |||
"example": "automatic, semi-auto, etc" |
|||
}, |
|||
"ammo_capacity": { |
|||
"description": "weapon's ammo capacity", |
|||
"example": "50", |
|||
"type": "string" |
|||
}, |
|||
"damage": { |
|||
"description": "how much this weapon can damage something or someone", |
|||
"example": "10", |
|||
"type": "string" |
|||
}, |
|||
⚫ | |||
"description": "how much a weapon can fire with ammo", |
|||
"example": "500", |
|||
"type": "string" |
|||
}, |
|||
"velocity": { |
|||
"description": "weapon's spread", |
|||
"example": "50", |
|||
"type": "string" |
|||
}, |
|||
⚫ | |||
"description": "how long can you reload this weapon before shooting again", |
|||
"example": "5", |
|||
"type": "string" |
|||
} |
|||
} |
} |
||
} |
} |
Latest revision as of 02:43, 27 March 2024
[[File:{{{image}}}|400px|frameless|alt=|border|upright=.6|]] |
Usage
To use this template in an article, copy the template below, then paste the template into an article. All parameters are optional. Only include pertinent parameters in your Infobox - it is rare that an infobox should use most parameters. Use item<br/>item<br/>item
for parameters that should span multiple lines in infobox (e.g. listing multiple requirement).
[[File:{{{image}}}|400px|frameless|alt={{{alt}}}|border|upright=.6|]] {{{caption}}} | |
Weapon Stats | |
---|---|
Type | {{{type}}} |
Cost | {{{cost}}} |
Requirement | {{{requirement}}} |
Fire Mode | {{{fire_mode}}} |
Ammo Capacity | {{{ammo_capacity}}} |
Damage | {{{damage}}} |
Rate of Fire | {{{rate_of_fire}}} |
Velocity | {{{velocity}}} |
Reload Time | {{{reload_time}}} |
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | optional name of weapon if a weapon has multiple names
| String | optional |
image | image | if no image of this weapon is provided, use Placeholder.png
| File | optional |
alt | alt | no description | String | optional |
caption | caption | no description | String | optional |
image2 | image2 | optional | File | optional |
caption2 | caption2 | no description | String | optional |
type | type | type of a weapon
| String | optional |
cost | cost | must be labelled with "RUs" at the end of number
| String | optional |
requirement | requirement | required by something to access to this weapon
| String | optional |
fire_mode | fire_mode | weapon's fire mode
| Unknown | optional |
ammo_capacity | ammo_capacity | weapon's ammo capacity
| String | optional |
damage | damage | how much this weapon can damage something or someone
| String | optional |
rate_of_fire | rate_of_fire | how much a weapon can fire with ammo
| String | optional |
velocity | velocity | weapon's spread
| String | optional |
reload_time | reload_time | how long can you reload this weapon before shooting again
| String | optional |