Template:Enemy Card/doc: Difference between revisions
Streetclaw (talk | contribs) m (→TemplateData: fix drop type) |
(Fix `color`, `type`, and `drops` description and expected syntax) |
||
Line 101: | Line 101: | ||
{{TemplateData/entry|name=Sprite|param=sprite|desc=Image of the enemy|def=NULL|example=<code>File:Example.png</code>|type=WikiCode|status=Required}} | {{TemplateData/entry|name=Sprite|param=sprite|desc=Image of the enemy|def=NULL|example=<code>File:Example.png</code>|type=WikiCode|status=Required}} | ||
{{TemplateData/entry|name=Location|param=location|desc=Comma-separated list of areas the enemy is located in, with links to the corresponding articles|def=Unknown|example=<code><nowiki>[[Autumn's Rise]], [[Bergen Trail]]</nowiki></code>|type=String|status=Required}} | {{TemplateData/entry|name=Location|param=location|desc=Comma-separated list of areas the enemy is located in, with links to the corresponding articles|def=Unknown|example=<code><nowiki>[[Autumn's Rise]], [[Bergen Trail]]</nowiki></code>|type=String|status=Required}} | ||
{{TemplateData/entry|name=Color|param=color|desc= | {{TemplateData/entry | ||
| name = Color | |||
| param = color | |||
| desc = value of the background color for the header. Can be done using either {{tl|Loc color}} or HTML syntax. | |||
| def = NULL | |||
| example = <code>#004F80</code>, <code><nowiki>{{Loc color|blue}}</nowiki></code>, <code><nowiki>{{Loc color|Rhombus Square}}</nowiki></code> | |||
| type = String | |||
| status = Required | |||
}} | |||
{{TemplateData/entry|name=Level|param=level|desc=Level of the enemy|def=Unknown|example=|type=Number|status=Required}} | {{TemplateData/entry|name=Level|param=level|desc=Level of the enemy|def=Unknown|example=|type=Number|status=Required}} | ||
{{TemplateData/entry|name=Boosted level|param=blevel|desc=Level of the boosted enemy|def=NULL|example=|type=Number|status=Optional}} | {{TemplateData/entry|name=Boosted level|param=blevel|desc=Level of the boosted enemy|def=NULL|example=|type=Number|status=Optional}} | ||
{{TemplateData/entry|name=Type|param=type|desc=Enemy type as categorized in the Monster Fibula. This value is also used to display the corresponding icon in the header.|def=Unknown|example=|type=<nowiki>["Organic" | "Organic Boss" | "Mechanical" | "Mechanical Boss" | "Abstract" | "Abstract Boss" | "Avatar" | "Avatar Boss"]</nowiki>|status=Required}} | {{TemplateData/entry|name=Type|param=type|desc=Enemy type as categorized in the Monster Fibula. This value is also used to display the corresponding icon in the header.|def=Unknown|example=|type=<nowiki>["Organic" | "Organic Boss" | "Mechanical" | "Mechanical Boss" | "Humanoid" | "Humanoid Boss" | "Abstract" | "Abstract Boss" | "Avatar" | "Avatar Boss"]</nowiki>|status=Required}} | ||
{{TemplateData/entry|name=Sub type|param=subtype|desc=Sub type as given in the Monster Fibula|def=Unknown|example=|type=String|status=Required}} | {{TemplateData/entry|name=Sub type|param=subtype|desc=Sub type as given in the Monster Fibula|def=Unknown|example=|type=String|status=Required}} | ||
{{TemplateData/entry|name=Max HP|param=HP|desc=Value of enemy max HP|def=Unknown|example=|type=Number|status=Required}} | {{TemplateData/entry|name=Max HP|param=HP|desc=Value of enemy max HP|def=Unknown|example=|type=Number|status=Required}} | ||
Line 122: | Line 129: | ||
{{TemplateData/entry|name=Credits|param=credits|desc=Number of credits awarded upon enemy's defeat|def=Unknown|example=|type=Number|status=Required}} | {{TemplateData/entry|name=Credits|param=credits|desc=Number of credits awarded upon enemy's defeat|def=Unknown|example=|type=Number|status=Required}} | ||
{{TemplateData/entry|name=Boosted credits|param=bcredits|desc=Number of credits awarded upon boosted enemy's defeat|def=NULL|example=|type=Number|status=Optional}} | {{TemplateData/entry|name=Boosted credits|param=bcredits|desc=Number of credits awarded upon boosted enemy's defeat|def=NULL|example=|type=Number|status=Optional}} | ||
{{TemplateData/entry|name=Drops|param=drops|desc=table of items the enemy can drop|def=None|example=|type= | {{TemplateData/entry|name=Drops|param=drops|desc=table of items the enemy can drop|def=None|example=|type={{tl|ItemDrop}}|status=Optional}} | ||
}} | }} | ||
{{doc/end}} | {{doc/end}} |
Revision as of 15:45, 21 March 2021
This template is used on an article about an enemy, boss, or combative avatar to provide basic stats and information.
Usage
Blank template:
{{Enemy_Card |name= |sprite=<!--File:example.png--> |location= |color= |level= |blevel= |type= |subtype= |HP= |bHP= |atk= |batk= |def= |bdef= |foc= |bfoc= |heat= |cold= |shock= |wave= |EXP= |credits= |bcredits= |drops=<!--{{ItemDrop| {{ItemDrop/entry|name=|chance=|rank=}}}}--> }}
Example
The text below produces the location card you see to the right. Note that the real code behind this template is hidden from view until it is included. The name and sprite parameters are necessary, but all others will be replaced with "Unknown" if not included (except drops
, which is replaced with "None").
{{Enemy_Card |name=Flamin' Hillkat |sprite=File:Red-meerkat-sprite.png |location=[[Autumn's Rise]] |color=#bf5900 |level=10 |blevel=100 |type=Organic |subtype=Mammal |HP=390 |bHP=111 |atk=44 |batk=222 |def=39 |bdef=999 |foc=46 |bfoc= |heat=50 |cold=-50 |shock=-99 |wave=1 |EXP=45 |credits=47 |bcredits=100 |drops={{ItemDrop| {{ItemDrop/entry|name=Headphone Scraps|chance=12%|rank=D|quantity=1}} {{ItemDrop/entry|name=Hi-Sandwich|chance=8%|rank=B|quantity=1}}}} }}
TemplateData
Do not use named parameter for 1
... x
. The first Parameter will be automatically marked as 1
, the second as 2
and so on.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name
|
Name of the enemy
|
String | Required |
Sprite | sprite
|
Image of the enemy
|
WikiCode | Required |
Location | location
|
Comma-separated list of areas the enemy is located in, with links to the corresponding articles
|
String | Required |
Color | color
|
value of the background color for the header. Can be done using either
|
String | Required |
Level | level
|
Level of the enemy
|
Number | Required |
Boosted level | blevel
|
Level of the boosted enemy
|
Number | Optional |
Type | type
|
Enemy type as categorized in the Monster Fibula. This value is also used to display the corresponding icon in the header.
|
["Organic" | "Organic Boss" | "Mechanical" | "Mechanical Boss" | "Humanoid" | "Humanoid Boss" | "Abstract" | "Abstract Boss" | "Avatar" | "Avatar Boss"] | Required |
Sub type | subtype
|
Sub type as given in the Monster Fibula
|
String | Required |
Max HP | HP
|
Value of enemy max HP
|
Number | Required |
Boosted max HP | bHP
|
Value of boosted enemy max HP
|
Number | Optional |
Attack | atk
|
Value of enemy attack
|
Number | Required |
Boosted attack | batk
|
Value of boosted enemy attack
|
Number | Optional |
Defense | def
|
Value of enemy defense
|
Number | Required |
Boosted defense | bdef
|
Value of boosted enemy defense
|
Number | Optional |
Focus | foc
|
Value of enemy focus
|
Number | Required |
Boosted focus | bfoc
|
Value of boosted enemy focus
|
Number | Optional |
Heat resistance | heat
|
Value of enemy heat resistance
|
Number | Optional |
Cold resistance | cold
|
Value of enemy cold resistance
|
Number | Optional |
Shock resistance | shock
|
Value of enemy shock resistance
|
Number | Optional |
Wave resistance | wave
|
Value of enemy wave resistance
|
Number | Optional |
EXP | EXP
|
Amount of EXP awarded upon enemy's defeat
|
Number | Required |
Credits | credits
|
Number of credits awarded upon enemy's defeat
|
Number | Required |
Boosted credits | bcredits
|
Number of credits awarded upon boosted enemy's defeat
|
Number | Optional |
Drops | drops
|
table of items the enemy can drop
|
{{ItemDrop}}
|
Optional |
See Template:TemplateData and Template:TemplateData/entry for more information about the parameter list and DDNCode for more information about types and the DDN Notation
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the enemy
| String | required |
Sprite | sprite | Image of the enemy
| Content | required |
Location | location | Comma-separated list of areas the enemy is located in, with links to the corresponding articles
| String | required |
Color | color | value of the background color for the header. Can be done using either <code>{{[[Template:Loc color|Loc color]]}}</code> or HTML syntax.
| String | required |
Level | level | Level of the enemy
| Number | required |
Boosted level | blevel | Level of the boosted enemy | Number | optional |
Type | type | Enemy type as categorized in the Monster Fibula. This value is also used to display the corresponding icon in the header.
| Content | required |
Sub type | subtype | Sub type as given in the Monster Fibula
| String | required |
Max HP | HP | Value of enemy max HP
| Number | required |
Boosted max HP | bHP | Value of boosted enemy max HP | Number | optional |
Attack | atk | Value of enemy attack
| Number | required |
Boosted attack | batk | Value of boosted enemy attack | Number | optional |
Defense | def | Value of enemy defense
| Number | required |
Boosted defense | bdef | Value of boosted enemy defense | Number | optional |
Focus | foc | Value of enemy focus
| Number | required |
Boosted focus | bfoc | Value of boosted enemy focus | Number | optional |
Heat resistance | heat | Value of enemy heat resistance | Number | optional |
Cold resistance | cold | Value of enemy cold resistance | Number | optional |
Shock resistance | shock | Value of enemy shock resistance | Number | optional |
Wave resistance | wave | Value of enemy wave resistance | Number | optional |
EXP | EXP | Amount of EXP awarded upon enemy's defeat
| Number | required |
Credits | credits | Number of credits awarded upon enemy's defeat
| Number | required |
Boosted credits | bcredits | Number of credits awarded upon boosted enemy's defeat | Number | optional |
Drops | drops | table of items the enemy can drop
| Content | optional |