Template:Entity: Difference between revisions

From gm_construct 13 beta
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<infobox>
{|class=infobox style="background:#f8f9fa; border:1px #a2a9b1 solid; float: right; margin-left: 20px; margin-bottom: 20px;"
  <image source="image1">
|-align=center
    <caption source="caption1"/>
|
  </image>
{|width=100% align=right style="background:transparent; font-size:80%"
  <title source="title2">
|-align=center
    <default>{{PAGENAME}}</default>
!<font size=3>{{{title1}}}</font>
   </title>
|-align=center
  <group>
|[[File:{{{image1}}}|250px|center]]
    <header>General Infomation</header>
|-align=center
    <data source="nicknames">
{{#if:{{{caption1|}}}|
      <label>Nicknames</label>
   {{!}}style="width:250px"{{!}}{{{caption1}}}
    </data>
}}
    <data source="type">
|}
      <label>Type</label>
|-
    </data>
|colspan=2|
    <data source="is_hostile">
{|style="background:#DCDCDC; color:black; font-size:85%; width:290px; padding:2px; text-align:center; margin:auto" cellspacing=1
      <label>Hostile?</label>
|-
    </data>
!colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"|General
    <data source="is_spawnable">
|-
      <label>Spawnable?</label>
!style="background:#EFEFEF; width:130px"|Type
    </data>
|style="background:white; width:200px; text-align:left;"|{{{type}}}
    <data source="enables_curse_detector">
|-
      <label>Cursed?</label>
{{#if:{{{nicknames|}}}|
    </data>
  {{!}}style="background:#EFEFEF; width:130px"{{!}}Nicknames
   </group>
  {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{nicknames}}}
   <group>
  {{!}}-
    <header>Map Information</header>
}}
    <data source="health">
{{#if:{{{health|}}}{{{damage|}}}{{{is_hostile|}}}{{{is_spawnable|}}}{{{enables_curse_detector|}}}|
      <label>Health</label>
  !colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"{{!}}Attributes
    </data>
  {{!}}-
    <data source="damage">
}}
      <label>Damage</label>
{{#if:{{{is_hostile|}}}|
    </data>
  {{!}}style="background:#EFEFEF; width:130px"{{!}}Hostile
    <data source="event_name">
  {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{is_hostile}}}
      <label>Event Name</label>
  {{!}}-
    </data>
}}
    <data source="lua_file">
{{#if:{{{is_spawnable|}}}|
      <label>Lua File</label>
  {{!}}style="background:#EFEFEF; width:130px"{{!}}Spawnable
    </data>
  {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{is_spawnable}}}
   </group>
  {{!}}-
</infobox>
}}
{{#if:{{{enables_curse_detector|}}}|
  {{!}}style="background:#EFEFEF; width:130px"{{!}}Cursed
  {{!}}style="background:white; width:200px; text-align:left;"{{!}}{{{enables_curse_detector}}}
  {{!}}-
}}
{{#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}}}
   {{!}}-
}}
|}
|}
 
<noinclude>
<noinclude>
Example usage:
Example usage:
<pre>
<pre>
{{Entity
{{Entity
 
  | title1=Example
   | image1=Example
   | image1=Example
   | caption1=Example
   | caption1=Example
 
   | type=Example
   | title2=Example
 
   | nicknames=Example
   | nicknames=Example
  | type=Example
   | is_hostile=Example
   | is_hostile=Example
   | is_spawnable=Example
   | is_spawnable=Example
   | enables_curse_detector=Example
   | enables_curse_detector=Example
   | health=Example
   | health=Example
   | damage=Example
   | damage=Example
   | event_name=Example
   | event_name=Example
   | lua_file=Example
   | lua_file=Example
}}
}}
</pre>
</pre>
<templatedata>
<templatedata>
{"params":{"image1":{"suggested":true},"caption1":{"suggested":true},"title2":{"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"
},
"type": {
"suggested": true,
"type": "string",
"default": "Entity",
"autovalue": "Entity"
},
"nicknames": {
"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>

Latest revision as of 20:34, 12 February 2023

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


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.

Template parameters

ParameterDescriptionTypeStatus
title1title1

no description

Stringsuggested
image1image1

no description

Filesuggested
caption1caption1

no description

Stringsuggested
typetype

no description

Default
Entity
Auto value
Entity
Stringsuggested
nicknamesnicknames

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