Template:Entity: Difference between revisions

From gm_construct 13 beta
Jump to navigation Jump to search
(Undo revision 81 by Imafluffycat (talk))
Tag: Undo
(Trying to fix the template)
Line 1: Line 1:
<infobox>
{|class=infobox align=center width=20% style="background:#f8f9fa; border:1px #a2a9b1 solid"
  <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>
{{#if:{{{caption1}}}|''{{{caption1}}}''}}
    <data source="nicknames">
|}
      <label>Nicknames</label>
|-
    </data>
|colspan=2|
    <data source="type">
{|style="background:#DCDCDC; color:black; font-size:85%; width:290px; padding:2px; text-align:center; {{roundy|3px}}; margin:auto" cellspacing=1
      <label>Type</label>
|-
    </data>
!colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"|General
    <data source="is_hostile">
|-
      <label>Hostile?</label>
!style="background:#EFEFEF; width:100px"|Nickname
    </data>
|style="background:white; width:200px; text-align:left;"|{{{nicknames}}}
    <data source="is_spawnable">
|-
      <label>Spawnable?</label>
!style="background:#EFEFEF; width:100px"|Type
    </data>
|style="background:white; width:200px; text-align:left;"|{{{type}}}
    <data source="enables_curse_detector">
|-
      <label>Cursed?</label>
!style="background:#EFEFEF; width:100px"|Hostile
    </data>
|style="background:white; width:200px; text-align:left;"|{{{is_hostile}}}
  </group>
|-
  <group>
!style="background:#EFEFEF; width:100px"|Spawnable
    <header>Map Information</header>
|style="background:white; width:200px; text-align:left;"|{{{is_spawnable}}}
    <data source="health">
|-
      <label>Health</label>
!style="background:#EFEFEF; width:100px"|Cursed
    </data>
|style="background:white; width:200px; text-align:left;"| {{{enables_curse_detector}}}
    <data source="damage">
|-
      <label>Damage</label>
!colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"|Attributes
    </data>
|-
    <data source="event_name">
!style="background:#EFEFEF; width:100px"|Health
      <label>Event Name</label>
|style="background:white; width:200px; text-align:left;"|{{{health}}}
    </data>
|-
    <data source="lua_file">
!style="background:#EFEFEF; width:100px"|Damage
      <label>Lua File</label>
|style="background:white; width:200px; text-align:left;"|{{{damage}}}
    </data>
|-
  </group>
!colspan=2 style="padding-bottom:1px; padding-left:20px; padding-right:20px"|Event
</infobox>
|-
!style="background:#EFEFEF; width:100px"|Event Name
|style="background:white; width:200px; text-align:left;"|{{{event_name}}}
|-
!style="background:#EFEFEF; width:100px"|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
  | title2=Example
   | nicknames=Example
   | nicknames=Example
   | type=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}, "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":{}}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 05:41, 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

Unknownsuggested
image1image1

no description

Unknownsuggested
caption1caption1

no description

Unknownsuggested
nicknamesnicknames

no description

Unknownsuggested
typetype

no description

Unknownsuggested
is_hostileis_hostile

no description

Unknownsuggested
is_spawnableis_spawnable

no description

Unknownsuggested
enables_curse_detectorenables_curse_detector

no description

Unknownsuggested
healthhealth

no description

Unknownsuggested
damagedamage

no description

Unknownsuggested
event_nameevent_name

no description

Unknownsuggested
lua_filelua_file

no description

Unknownsuggested