Template:Entity: Difference between revisions

From gm_construct 13 beta
Jump to navigation Jump to search
(Trying to fix the template)
(Select data types)
Line 68: Line 68:
</pre>
</pre>
<templatedata>
<templatedata>
{"params":{"title1":{"suggested":true}, "image1":{"suggested":true},"caption1":{"suggested":true},"nicknames":{"suggested":true},"type":{"suggested":true},"is_hostile":{"suggested":true},"is_spawnable":{"suggested":true},"enables_curse_detector":{"suggested":true},"health":{"suggested":true},"damage":{"suggested":true},"event_name":{"suggested":true},"lua_file":{"suggested":true}},"sets":[],"maps":{}}
{
"params": {
"title1": {
"suggested": true,
"type": "string"
},
"image1": {
"suggested": true,
"type": "wiki-file-name"
},
"caption1": {
"suggested": true,
"type": "string"
},
"nicknames": {
"suggested": true,
"type": "string"
},
"type": {
"suggested": true,
"type": "string"
},
"is_hostile": {
"suggested": true,
"type": "boolean"
},
"is_spawnable": {
"suggested": true,
"type": "boolean"
},
"enables_curse_detector": {
"suggested": true,
"type": "boolean"
},
"health": {
"suggested": true,
"type": "number"
},
"damage": {
"suggested": true,
"type": "number"
},
"event_name": {
"suggested": true,
"type": "string"
},
"lua_file": {
"suggested": true,
"type": "string"
}
},
"sets": []
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 05:44, 19 June 2022

{{{title1}}}
[[File:{{{image1}}}|250px|center]]

{{{caption1}}}

General
Nickname {{{nicknames}}}
Type {{{type}}}
Hostile {{{is_hostile}}}
Spawnable {{{is_spawnable}}}
Cursed {{{enables_curse_detector}}}
Attributes
Health {{{health}}}
Damage {{{damage}}}
Event
Event Name {{{event_name}}}
File {{{lua_file}}}


Example usage:

{{Entity
  | title1=Example
  | image1=Example
  | caption1=Example
  | nicknames=Example
  | type=Example
  | is_hostile=Example
  | is_spawnable=Example
  | enables_curse_detector=Example
  | health=Example
  | damage=Example
  | event_name=Example
  | lua_file=Example
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
title1title1

no description

Stringsuggested
image1image1

no description

Filesuggested
caption1caption1

no description

Stringsuggested
nicknamesnicknames

no description

Stringsuggested
typetype

no description

Stringsuggested
is_hostileis_hostile

no description

Booleansuggested
is_spawnableis_spawnable

no description

Booleansuggested
enables_curse_detectorenables_curse_detector

no description

Booleansuggested
healthhealth

no description

Numbersuggested
damagedamage

no description

Numbersuggested
event_nameevent_name

no description

Stringsuggested
lua_filelua_file

no description

Stringsuggested