Template:Entity: Difference between revisions
Jump to navigation
Jump to search
(Testing) |
No edit summary |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{|class=infobox | {|class=infobox style="background:#f8f9fa; border:1px #a2a9b1 solid; float: right; margin-left: 20px; margin-bottom: 20px;" | ||
|-align=center | |-align=center | ||
| | | | ||
Line 7: | Line 7: | ||
|-align=center | |-align=center | ||
|[[File:{{{image1}}}|250px|center]] | |[[File:{{{image1}}}|250px|center]] | ||
{{#if:{{{caption1}}}| | |-align=center | ||
{{#if:{{{caption1|}}}| | |||
{{!}}style="width:250px"{{!}}{{{caption1}}} | |||
}} | |||
|} | |} | ||
|- | |- | ||
|colspan=2| | |colspan=2| | ||
{|style="background:#DCDCDC; color:black; font-size:85%; width:290px; padding:2px; text-align:center | {|style="background:#DCDCDC; color:black; font-size:85%; width:290px; padding:2px; text-align:center; margin:auto" cellspacing=1 | ||
|- | |- | ||
!colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"|General | !colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"|General | ||
|- | |- | ||
!style="background:#EFEFEF; width: | !style="background:#EFEFEF; width:130px"|Type | ||
|style="background:white; width:200px; text-align:left;"|{{{type}}} | |style="background:white; width:200px; text-align:left;"|{{{type}}} | ||
|- | |- | ||
!style="background:#EFEFEF; width: | {{#if:{{{nicknames|}}}| | ||
{{!}}style="background:#EFEFEF; width:130px"{{!}}Nicknames | |||
| | {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{nicknames}}} | ||
!style="background:#EFEFEF; width: | {{!}}- | ||
}} | |||
| | {{#if:{{{health|}}}{{{damage|}}}{{{is_hostile|}}}{{{is_spawnable|}}}{{{enables_curse_detector|}}}| | ||
!style="background:#EFEFEF; width: | !colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"{{!}}Attributes | ||
{{!}}- | |||
| | }} | ||
! | {{#if:{{{is_hostile|}}}| | ||
| | {{!}}style="background:#EFEFEF; width:130px"{{!}}Hostile | ||
!style="background:#EFEFEF; width: | {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{is_hostile}}} | ||
{{!}}- | |||
| | }} | ||
!style="background:#EFEFEF; width: | {{#if:{{{is_spawnable|}}}| | ||
{{!}}style="background:#EFEFEF; width:130px"{{!}}Spawnable | |||
| | {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{is_spawnable}}} | ||
!colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px" | {{!}}- | ||
| | }} | ||
!style="background:#EFEFEF; width: | {{#if:{{{enables_curse_detector|}}}| | ||
{{!}}style="background:#EFEFEF; width:130px"{{!}}Cursed | |||
| | {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{enables_curse_detector}}} | ||
!style="background:#EFEFEF; width: | {{!}}- | ||
}} | |||
{{#if:{{{health|}}}| | |||
{{!}}style="background:#EFEFEF; width:130px"{{!}}Health | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{health}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{damage|}}}| | |||
{{!}}style="background:#EFEFEF; width:130px"{{!}}Damage | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{damage}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{event_name|}}}{{{lua_file|}}}| | |||
!colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"{{!}}Event | |||
{{!}}- | |||
}} | |||
{{#if:{{{event_name|}}}| | |||
!style="background:#EFEFEF; width:130px" {{!}} Event Name | |||
{{!}} style="background:white; width:200px; text-align:left;" {{!}} {{{event_name}}} | |||
{{!}}- | |||
}} | |||
{{#if:{{{lua_file|}}}| | |||
!style="background:#EFEFEF; width:130px"{{!}}File | |||
{{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{lua_file}}} | |||
{{!}}- | |||
}} | |||
|} | |} | ||
|} | |} | ||
Line 56: | Line 79: | ||
| image1=Example | | image1=Example | ||
| caption1=Example | | caption1=Example | ||
| type=Example | |||
| nicknames=Example | | nicknames=Example | ||
| is_hostile=Example | | is_hostile=Example | ||
| is_spawnable=Example | | is_spawnable=Example | ||
Line 76: | Line 99: | ||
"image1": { | "image1": { | ||
"suggested": true, | "suggested": true, | ||
"type": " | "type": "wiki-file-name" | ||
}, | }, | ||
"caption1": { | "caption1": { | ||
"suggested": true, | "suggested": true, | ||
"type": "string" | "type": "string" | ||
}, | |||
"type": { | |||
"suggested": true, | |||
"type": "string", | |||
"default": "Entity", | |||
"autovalue": "Entity" | |||
}, | }, | ||
"nicknames": { | "nicknames": { | ||
"suggested": true, | "suggested": true, | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"is_hostile": { | "is_hostile": { |
Latest revision as of 20:34, 12 February 2023
| |||||
|
Example usage:
{{Entity | title1=Example | image1=Example | caption1=Example | type=Example | nicknames=Example | is_hostile=Example | is_spawnable=Example | enables_curse_detector=Example | health=Example | damage=Example | event_name=Example | lua_file=Example }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title1 | title1 | no description | String | suggested |
image1 | image1 | no description | File | suggested |
caption1 | caption1 | no description | String | suggested |
type | type | no description
| String | suggested |
nicknames | nicknames | no description | String | suggested |
is_hostile | is_hostile | no description | Boolean | suggested |
is_spawnable | is_spawnable | no description | Boolean | suggested |
enables_curse_detector | enables_curse_detector | no description | Boolean | suggested |
health | health | no description | Number | suggested |
damage | damage | no description | Number | suggested |
event_name | event_name | no description | String | suggested |
lua_file | lua_file | no description | String | suggested |