Template:ItemDrop/doc: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
{{Enemy_Card|name=Flamin' Hillkat
== About ==
|sprite=File:Red-meerkat-sprite.png
Creates an Item Drop table. See [[Template:ItemDrop/entry]] for more information about the ItemDrop template.
|location=[[Autumn's Rise]]
|level=10
|type=Organic
|subtype=Mammal
|MaxHP=390
|Atk=44
|Def=39
|Foc=46
|HeatResist=50%
|ColdResist=-50%
|EXP=45
|Credit=47
|Drops=
{{ItemDrop|{{ItemDrop/entry|name=Headphone Scraps|chance=12%|rank=D|quantity=1-2}}{{ItemDrop/entry|name=Hi-Sandwich|chance=8%|rank=B|quantity=1}} }}}}


This template is used for the template [[Template:Enemy_Card|Enemy_Card]] (Drops).
== Parameter ==
It consists of two peaces (ItemDrop and ItemDrop/entry). ItemDrop creates the Table and ItemDrop/entry the entrys.
{{TemplateData|
{{TemplateData/entry|name=Entries|param=1|desc=Drop list|def=NULL|type=1 {[[Template:ItemDrop/entry]]}|status=Required}}
}}


Important: All entrys need to be in a row (do not use any line breaks)
== Examples ==


Example 1 - Base structure:
'''Complete example:'''
<pre>
{{ItemDrop|<insert entrys here>}}
</pre>


Example 2 - Base structure with entrys:
{{ItemDrop|{{ItemDrop/entry|name=Headphone Scraps|chance=12%|rank=D|quantity=1-2}}{{ItemDrop/entry|name=Hi-Sandwich|chance=8%|rank=B|quantity=1}}}}
<pre>
{{ItemDrop|{{ItemDrop/entry|name=<item-name>|chance=<x%>|rank=<S or A or B or C or D or H (health)>|quantity=<number dropped>}}<...> }}
</pre>


Example 3 - Flamin' Hillkat:
<pre>
<pre>
|Drops=
{{ItemDrop|{{ItemDrop/entry|name=Headphone Scraps|chance=12%|rank=D|quantity=1-2}}{{ItemDrop/entry|name=Hi-Sandwich|chance=8%|rank=B|quantity=1}}}}
{{ItemDrop|{{ItemDrop/entry|name=Headphone Scraps|chance=12%|rank=D|quantity=1-2}}{{ItemDrop/entry|name=Hi-Sandwich|chance=8%|rank=B|quantity=1}}
}}
</pre>
</pre>


The item-name need to be in this [[Items|Lists of all Items]]
{{doc/end}}
{{doc/end}}

Revision as of 17:51, 26 June 2017

File:Template-info.svg Template Documentation

About

Creates an Item Drop table. See Template:ItemDrop/entry for more information about the ItemDrop template.

Parameter

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
Entries 1

Drop list

Default:
NULL
Example:
no example
1 {Template:ItemDrop/entry} Required

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

Test of raw TemplateData output:

No description.

Template parameters

ParameterDescriptionTypeStatus
Entries1

Drop list

Contentrequired

Examples

Complete example:

Item Chance Rank
Headphone Scraps x 1-2 12%
Hi-Sandwich 8%
{{ItemDrop|{{ItemDrop/entry|name=Headphone Scraps|chance=12%|rank=D|quantity=1-2}}{{ItemDrop/entry|name=Hi-Sandwich|chance=8%|rank=B|quantity=1}}}}