Template:Enemy Card/doc: Difference between revisions
Streetclaw (talk | contribs) m (Add location link to doc) |
Oneiros108 (talk | contribs) Tag: 2017 source edit |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{doc/start}} | {{doc/start}} | ||
{{Enemy_Card|name=Flamin' Hillkat | This template is used on an article about an [[enemy]], [[boss]], or combative [[avatar]] to provide basic stats and information. | ||
==Usage== | |||
Blank template: | |||
<pre> | |||
{{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= | |||
|bEXP= | |||
|credits= | |||
|bcredits= | |||
|drops=<!--{{ItemDrop| | |||
{{ItemDrop/entry|name=|chance=|rank=}}}}--> | |||
}} | |||
</pre> | |||
==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 <code>drops</code>, which is replaced with "None"). | |||
{{Enemy_Card | |||
|name=Flamin' Hillkat | |||
|sprite=File:Red-meerkat-sprite.png | |sprite=File:Red-meerkat-sprite.png | ||
|location=[[Autumn's Rise]] | |location=[[Autumn's Rise]] | ||
|color=#bf5900 | |||
|level=10 | |level=10 | ||
|blevel=100 | |blevel=100 | ||
Line 14: | Line 53: | ||
|bdef=999 | |bdef=999 | ||
|foc=46 | |foc=46 | ||
|bfoc= | |||
|heat=50 | |heat=50 | ||
|cold=-50 | |cold=-50 | ||
|shock=-99 | |shock=-99 | ||
|wave=1 | |||
|EXP=45 | |EXP=45 | ||
|bEXP=35 | |||
|credits=47 | |credits=47 | ||
|drops={{ItemDrop|{{ItemDrop/entry|name=Headphone Scraps|chance=12%|rank=D|quantity=1 | |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}}}} | |||
}} | |||
<pre>{{Enemy_Card | |||
|name=Flamin' Hillkat | |||
<pre>{{Enemy_Card|name=Flamin' Hillkat | |||
|sprite=File:Red-meerkat-sprite.png | |sprite=File:Red-meerkat-sprite.png | ||
|location=[[Autumn's Rise]] | |location=[[Autumn's Rise]] | ||
|color=#bf5900 | |||
|level=10 | |level=10 | ||
|blevel=100 | |blevel=100 | ||
Line 37: | Line 83: | ||
|bdef=999 | |bdef=999 | ||
|foc=46 | |foc=46 | ||
|bfoc= | |||
|heat=50 | |heat=50 | ||
|cold=-50 | |cold=-50 | ||
|shock=-99 | |||
|wave=1 | |||
|EXP=45 | |EXP=45 | ||
|bEXP=35 | |||
|credits=47 | |credits=47 | ||
|drops={{ItemDrop|{{ItemDrop/entry|name=Headphone Scraps|chance=12%|rank=D|quantity=1 | |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}}}} | |||
}} | |||
</pre> | </pre> | ||
==TemplateData== | |||
{{TemplateData| | |||
{{TemplateData/entry|name=Name|param=name|desc=Name of the enemy|def=Unknown|example=|type=String|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 = 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=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" | "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=Max HP|param=HP|desc=Value of enemy max HP|def=Unknown|example=|type=Number|status=Required}} | |||
{{TemplateData/entry|name=Boosted max HP|param=bHP|desc=Value of boosted enemy max HP|def=NULL|example=|type=Number|status=Optional}} | |||
{{TemplateData/entry|name=Attack|param=atk|desc=Value of enemy attack|def=Unknown|example=|type=Number|status=Required}} | |||
{{TemplateData/entry|name=Boosted attack|param=batk|desc=Value of boosted enemy attack|def=NULL|example=|type=Number|status=Optional}} | |||
{{TemplateData/entry|name=Defense|param=def|desc=Value of enemy defense|def=Unknown|example=|type=Number|status=Required}} | |||
{{TemplateData/entry|name=Boosted defense|param=bdef|desc=Value of boosted enemy defense|def=NULL|example=|type=Number|status=Optional}} | |||
{{TemplateData/entry|name=Focus|param=foc|desc=Value of enemy focus|def=Unknown|example=|type=Number|status=Required}} | |||
{{TemplateData/entry|name=Boosted focus|param=bfoc|desc=Value of boosted enemy focus|def=NULL|example=|type=Number|status=Optional}} | |||
{{TemplateData/entry|name=Heat resistance|param=heat|desc=Value of enemy heat resistance|def=NULL|example=|type=Number|status=Optional}} | |||
{{TemplateData/entry|name=Cold resistance|param=cold|desc=Value of enemy cold resistance|def=NULL|example=|type=Number|status=Optional}} | |||
{{TemplateData/entry|name=Shock resistance|param=shock|desc=Value of enemy shock resistance|def=NULL|example=|type=Number|status=Optional}} | |||
{{TemplateData/entry|name=Wave resistance|param=wave|desc=Value of enemy wave resistance|def=NULL|example=|type=Number|status=Optional}} | |||
{{TemplateData/entry|name=EXP|param=EXP|desc=Amount of EXP awarded upon enemy's defeat at the same level|def=Unknown|example=|type=Number|status=Required}} | |||
{{TemplateData/entry|name=Boosted EXP|param=bEXP|desc=Amount of EXP awarded upon boosted enemy's defeat at the same level|def=Unknown|example=|type=Number|status=Optional}} | |||
{{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=Drops|param=drops|desc=table of items the enemy can drop|def=None|example=|type={{tl|ItemDrop}}|status=Optional}} | |||
}} | |||
{{doc/end}} | {{doc/end}} | ||
<includeonly> | |||
[[Category:Infobox templates]] | |||
</includeonly> |
Latest revision as of 20:13, 22 January 2022
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= |bEXP= |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 |bEXP=35 |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 at the same level
|
Number | Required |
Boosted EXP | bEXP
|
Amount of EXP awarded upon boosted enemy's defeat at the same level
|
Number | Optional |
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 at the same level
| Number | required |
Boosted EXP | bEXP | Amount of EXP awarded upon boosted enemy's defeat at the same level
| Number | optional |
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 |