Template:ItemDrop/doc: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(Documentation (Template:ItemDrop))
 
 
(4 intermediate revisions by 3 users not shown)
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}}{{ItemDrop/entry|name=Hi-Sandwich|chance=8%|rank=B}} }}}}


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 {{tl|ItemDrop/entry}}|status=Required}}
Important: All entrys need to be in a row (do not use any line breaks)
}}


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


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


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


The item-name need to be in this [[Items|Lists of all Items]]
{{Doc/end}}
{{doc/end}}
<includeonly>
[[Category:Table templates]]
</includeonly>

Latest revision as of 07:50, 17 April 2021

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 {{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

Example

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