Template:TradeTable/Entry: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(Add Multi-loc. example)
m (Actually fix File:TradeArrow.png so that it always shows up on FandomMobile)
Tags: mobile edit mobile web edit
 
(26 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>|-
<onlyinclude><includeonly>
|{{nowrap|{{ItemLink|{{{1}}}}} {{#ifeq:{{{2|}}}|1||x {{{2}}}}}}}
|-{{#if:{{{location|}}}|<nowiki/> style="border-bottom-width: 0;"}}
|[[File:TradeArrow.png]]
| style="border-right-width: 0;{{#if:{{{location|}}}|<nowiki/> border-bottom-width: 0;}}" | {{nowrap|{{ItemLink|{{{1}}}|nowrap=0|showFoodIcon=1}}{{#ifeq:{{{2|}}}|1||<nowiki/> &times; {{{2}}}}}}}
|{{nowrap|{{ItemLink|{{{3}}}}} {{#ifeq:{{{4|}}}|1||x {{{4}}}}}}}{{#if:{{{5|}}}|<br />{{nowrap|{{ItemLink|{{{5}}}}} {{#ifeq:{{{6|}}}|1||x {{{6}}}}}}}{{#if:{{{7|}}}|<br />{{nowrap|{{ItemLink|{{{7}}}}} {{#ifeq:{{{8|}}}|1||x {{{8}}}}}}}{{#if:{{{9|}}}|<br />{{nowrap|{{ItemLink|{{{9}}}}} {{#ifeq:{{{10|}}}|1||x {{{10}}}}}}}{{#if:{{{11|}}}|<br />{{nowrap|{{ItemLink|{{{11}}}}} {{#ifeq:{{{12|}}}|1||x {{{12}}}}}}}}}}}}}}}{{#if:{{{cost|}}}|<br />{{nowrap|[[File:CreditIcon.png]] {{{cost}}} Credits}}}}
| style="width: 35px; min-width: 35px; padding-left: 0; padding-right: 0; text-align: center; border-left-width: 0; border-right-width: 0;{{#if:{{{location|}}}|<nowiki/> border-bottom-width: 0;}}" | [[File:TradeArrow.png|center|frameless|link=]]
{{#if:{{{location|}}}|{{!-}}
| style="border-left-width: 0;{{#if:{{{location|}}}|<nowiki/> border-bottom-width: 0;}}" |
{{!}}colspan="3"{{!}} [[File:Loc-Icon.png]] {{{location}}}}}</includeonly><noinclude>
{{nowrap|{{ItemLink|{{{3}}}|showFoodIcon=1|nowrap=0}}{{#ifeq:{{{4|}}}|1||<nowiki/> &times; {{{4}}}}}}}{{#if:{{{5|}}}|<nowiki/>
Example:
{{nowrap|{{ItemLink|{{{5}}}|showFoodIcon=1|nowrap=0}}{{#ifeq:{{{6|}}}|1||<nowiki/> &times; {{{6}}}}}}}{{#if:{{{7|}}}|<nowiki/>
{{ItemInfo|
{{nowrap|{{ItemLink|{{{7}}}|showFoodIcon=1|nowrap=0}}{{#ifeq:{{{8|}}}|1||<nowiki/> &times; {{{8}}}}}}}{{#if:{{{9|}}}|<nowiki/>
{{ItemInfo/entry|name=Chef Sandwich|desc=A delicious meal for fine adventurers. Heals 50% of max HP.|effect=*HP +50%|find=*Sold by the Rookie Harbor item shop for 700 Credits (after reaching [[Bergen Trail]])
{{nowrap|{{ItemLink|{{{9}}}|showFoodIcon=1|nowrap=0}}{{#ifeq:{{{10|}}}|1||<nowiki/> &times; {{{10}}}}}}}{{#if:{{{11|}}}|<nowiki/>
*Sold by the Bergen Village item shop for 700 Credits
{{nowrap|{{ItemLink|{{{11}}}|showFoodIcon=1|nowrap=0}}{{#ifeq:{{{12|}}}|1||<nowiki/> &times; {{{12}}}}}}}}}}}}}}}{{#if:{{{cost|}}}|<nowiki/>
*Find x6 in chest in Bergen Trail
{{nowrap|[[File:CreditIcon.png]] {{{cost}}} Credits}}}}{{#if:{{{location|}}}|<nowiki/>
*Reward for the ''Round and Round'' quest in Autumn's Rise
{{!}}-
*Trade|trade={{TradeTable|{{TradeTable/Entry|Chef Sandwich|1|Veggie Set|1|Fruit Set|1|location=[[Rookie Harbor]] Marketplace}}|location=1}}}}
{{!}} colspan="3" style="border-top-width: 0;" {{!}}
{{ItemInfo/entry|name=Chili Dog|desc=Chili Con Carne in a bun. The favorite food of blue hedgehags.|effect=*Duration: 20 sec
<div style="border-top: 2px dotted #AAA; padding: 1px; padding-top: 5px; margin: 2px;"
*ATK up lvl 2
>[[File:Loc-Icon.png]] {{{location}}}</div>
*FOC up lvl 2|find=*Dropped by [[Old Hedgehag]] (high-rank), [[Blue Hedgehag]]
}}</includeonly></onlyinclude>
*Trade|trade={{TradeTable|{{TradeTable/Entry|Chili Dog|1|Fruit Set|1|Veggie Set|1|Spice Set|1|location=[[Rookie Harbor]] Marketplace}}|location=1}}
{{Doc}}
{{TradeTable/Entry|Boom Walkers|1|Golden Ring|2|Dropped Mic|3|Azure Dragonfly|5|Chili Dog|6|location=[[Rookie Harbor]] Marketplace}}|location=1}}}}
}}
</noinclude>

Latest revision as of 00:34, 17 April 2021

File:Template-info.svg Template Documentation

About

Creates an Trade table entry.

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
Item name (get) 1

Item to get

Default:
NULL
Example:
Metal Needles
String Required
Item amount (get) 2

Amount to get

Default:
NULL
Example:
1
NonzeroNumber Required
Item name 1 (required) 3

Required Item

Default:
NULL
Example:
Metal Needles
String Required
Item amount 1 (required) 4

Required Amount

Default:
NULL
Example:
1
NonzeroNumber Required
Item name 2 (required) 5

Required Item

Default:
NULL
Example:
Metal Needles
String Optional
Item amount 2 (required) 6

Required Amount

Default:
NULL
Example:
1
NonzeroNumber Optional
Item name 3 (required) 7

Required Item

Default:
NULL
Example:
Metal Needles
String Optional
Item amount 3 (required) 8

Required Amount

Default:
NULL
Example:
1
NonzeroNumber Optional
Item name 4 (required) 9

Required Item

Default:
NULL
Example:
Metal Needles
String Optional
Item amount 4 (required) 10

Required Amount

Default:
NULL
Example:
1
NonzeroNumber Optional
Item name 5 (required) 11

Required Item

Default:
NULL
Example:
Metal Needles
String Optional
Item amount 5 (required) 12

Required Amount

Default:
NULL
Example:
1
NonzeroNumber Optional
Fee cost

Trade fee

Default:
NULL
Example:
100
NonzeroNumber Optional
Location location

Trade location

Default:
NULL
Example:
[[Autumn's Rise]]
Autumn's Rise
WikiCode 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

Test of raw TemplateData output:

No description.

Template parameters

ParameterDescriptionTypeStatus
Item name (get)1

Item to get

Example
<code>Metal Needles</code>
Stringrequired
Item amount (get)2

Amount to get

Example
<code>1</code>
Numberrequired
Item name 1 (required)3

Required Item

Example
<code>Metal Needles</code>
Stringrequired
Item amount 1 (required)4

Required Amount

Example
<code>1</code>
Numberrequired
Item name 2 (required)5

Required Item

Example
<code>Metal Needles</code>
Stringoptional
Item amount 2 (required)6

Required Amount

Example
<code>1</code>
Numberoptional
Item name 3 (required)7

Required Item

Example
<code>Metal Needles</code>
Stringoptional
Item amount 3 (required)8

Required Amount

Example
<code>1</code>
Numberoptional
Item name 4 (required)9

Required Item

Example
<code>Metal Needles</code>
Stringoptional
Item amount 4 (required)10

Required Amount

Example
<code>1</code>
Numberoptional
Item name 5 (required)11

Required Item

Example
<code>Metal Needles</code>
Stringoptional
Item amount 5 (required)12

Required Amount

Example
<code>1</code>
Numberoptional
Feecost

Trade fee

Example
<code>100</code>
Numberoptional
Locationlocation

Trade location

Example
[[Autumn's Rise]]
[[Autumn's Rise]]
Contentoptional

Examples

Trade Offers Examples
Sandwich

LV26Winterclaw × 5 LV30Giga Spiral Drill × 3

{{TradeTable/Entry|Sandwich|1|Winterclaw|5|Giga Spiral Drill|3}}
Headphone Scraps × 2

LV21Copper Gull

{{TradeTable/Entry|Headphone Scraps|2|Copper Gull|1}}
Sandwich

LV26Winterclaw × 5 Metal Needles 50 Credits

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

Location Example

Trade Offers
Sandwich

LV26Winterclaw × 5 Metal Needles 50 Credits

Non Location Example

{{TradeTable|
{{TradeTable/Entry|Sandwich|1|Winterclaw|5|Metal Needles|1|cost=50}}
}}
Trade Offers
Sandwich

LV26Winterclaw × 5 Metal Needles 50 Credits

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