Template:TradeTable/doc: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(→‎Parameter: Info added)
(→‎Parameter: Info moved to TemplateData)
Line 4: Line 4:


== Parameter ==
== Parameter ==
Do not use named parameter for <code>1</code> ... <code>x</code>. The first Parameter will be automatically marked as <code>1</code>, the second as <code>2</code> and so on.
{{TemplateData|
{{TemplateData|
{{TemplateData/entry|name=Entries|param=1|desc=Table entries|def=NULL|type=1 {[[Template:TradeTable/Entry]]}|status=Required}}
{{TemplateData/entry|name=Entries|param=1|desc=Table entries|def=NULL|type=1 {[[Template:TradeTable/Entry]]}|status=Required}}

Revision as of 09:31, 15 July 2017

File:Template-info.svg Template Documentation

About

Creates an Trade table.

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

Table entries

Default:
NULL
Example:
no example
1 {Template:TradeTable/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

Table entries

Contentrequired

Examples

{{TradeTable|{{TradeTable/Entry|Sandwich|1|Winterclaw|5|Giga Spiral Drill|3}}{{TradeTable/Entry|Headphone Scraps|2|Copper Gull|1}}}}
Trade Offers
Sandwich

LV26Winterclaw × 5 LV30Giga Spiral Drill × 3

Headphone Scraps × 2

LV21Copper Gull

{{TradeTable|{{TradeTable/Entry|Sandwich|1|Winterclaw|5|Metal Needles|1|cost=50|location=[[Autumn's Rise]]}}}}
Trade Offers
Sandwich

LV26Winterclaw × 5 Metal Needles 50 Credits