Template:UnitInfobox: Difference between revisions

From Mechabellum Wiki
(use Unit Type as subtitle)
(Set parameter infos)
Line 79: Line 79:
{
{
"params": {
"params": {
"image": {},
"image": {
"giant": {"default":"No"},
"label": "Image",
"type": {},
"description": "File name",
"cost": {},
"type": "string",
"units": {"default":"1"},
"suggested": true
"hp": {},
},
"atk": {},
"giant": {
"target": {"default":"Ground Only"},
"default": "No",
"atkint": {},
"label": "Giant",
"range": {"default":"Melee"},
"description": "Is unit a Giant? No if not set",
"speed": {},
"type": "string",
"igdesc": {},
"suggestedvalues": [
"mobility": {"default":"Ground"},
"Yes",
"unlockcost": {"default":"Free"},
"No"
"splashdmg": {"default":"No"}
],
"autovalue": "No",
"suggested": true
},
"type": {
"label": "Unit Type",
"description": "A short description of the purpose",
"example": "\"Light aircraft\" or \"High-speed anti-unit bot\"",
"type": "string",
"suggested": true
},
"cost": {
"label": "Cost",
"description": "Purchase cost",
"type": "number",
"required": true
},
"units": {
"default": "1",
"label": "Units",
"description": "Number of units. Default 1 if not set",
"type": "number",
"autovalue": "1",
"suggested": true
},
"hp": {
"label": "HP",
"description": "Hit Points",
"type": "number",
"required": true
},
"atk": {
"label": "Attack",
"description": "Damage of the unit. Usually a number for the damage of one unit. Can have a range or a multiplier.",
"example": "\"9001\" or \"1 - 1000\" or \"555 * 4\"",
"type": "string",
"required": true
},
"target": {
"default": "Ground Only",
"label": "Target",
"description": "Can attack ground and/or air units? Default \"Ground Only\" if not set",
"suggestedvalues": [
"Ground Only",
"Air Only",
"Ground & Air"
],
"autovalue": "Ground Only",
"suggested": true,
"type": "string"
},
"atkint": {
"label": "Attack Interval",
"description": "Time between shots",
"type": "number",
"suggested": true
},
"range": {
"default": "Melee",
"label": "Range",
"description": "Range of the unit. Defaults to 0=Melee if not set",
"type": "number",
"autovalue": "0",
"suggested": true
},
"speed": {
"label": "Speed",
"description": "The Speed in meter per second (m/s)",
"type": "number",
"suggested": true
},
"igdesc": {
"label": "Description",
"description": "The in-game description",
"example": "A high-speed and high HP unit that attacks enemies at close range with a laser beam that gradually grows in size. The bane of all high HP units",
"type": "string",
"suggested": true
},
"mobility": {
"default": "Ground",
"label": "Mobility",
"description": "Air or Ground unit, defaults to Ground if not set",
"type": "string",
"suggestedvalues": [
"Ground",
"Air"
],
"autovalue": "Ground",
"suggested": true
},
"unlockcost": {
"default": "Free",
"label": "Unlock Cost",
"description": "The cost for unlocking the unit. Defaults to 0=Free if not set",
"type": "number",
"autovalue": "0",
"suggested": true
},
"splashdmg": {
"default": "No",
"label": "Splash Damage",
"description": "The AOE in meter, Defaults to 0=No if not set",
"type": "number",
"autovalue": "0",
"suggested": true
}
},
},
"description": "Infobox for all ingame stats for this unit",
"description": "Infobox for all ingame stats for this unit",

Revision as of 13:45, 28 May 2023

UnitInfobox


Mobility Ground
Giant No
Unlock cost Free
Units 1
Target Ground Only
Splash Damage No
Burst Damage Minimal
Max DPS 0
Range Melee

Infobox for all ingame stats for this unit

Template parameters

ParameterDescriptionTypeStatus
Imageimage

File name

Stringsuggested
Mobilitymobility

Air or Ground unit, defaults to Ground if not set

Suggested values
Ground Air
Default
Ground
Auto value
Ground
Stringsuggested
Giantgiant

Is unit a Giant? No if not set

Suggested values
Yes No
Default
No
Auto value
No
Stringsuggested
Unit Typetype

A short description of the purpose

Example
"Light aircraft" or "High-speed anti-unit bot"
Stringsuggested
Unlock Costunlockcost

The cost for unlocking the unit. Defaults to 0=Free if not set

Default
Free
Auto value
0
Numbersuggested
Costcost

Purchase cost

Numberrequired
Unitsunits

Number of units. Default 1 if not set

Default
1
Auto value
1
Numbersuggested
HPhp

Hit Points

Numberrequired
Attackatk

Damage of the unit. Usually a number for the damage of one unit. Can have a range or a multiplier.

Example
"9001" or "1 - 1000" or "555 * 4"
Stringrequired
Splash Damagesplashdmg

The AOE in meter, Defaults to 0=No if not set

Default
No
Auto value
0
Numbersuggested
Targettarget

Can attack ground and/or air units? Default "Ground Only" if not set

Suggested values
Ground Only Air Only Ground & Air
Default
Ground Only
Auto value
Ground Only
Stringsuggested
Attack Intervalatkint

Time between shots

Numbersuggested
Rangerange

Range of the unit. Defaults to 0=Melee if not set

Default
Melee
Auto value
0
Numbersuggested
Speedspeed

The Speed in meter per second (m/s)

Numbersuggested
Descriptionigdesc

The in-game description

Example
A high-speed and high HP unit that attacks enemies at close range with a laser beam that gradually grows in size. The bane of all high HP units
Stringsuggested