Template:TradeTable/EntryByItem: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
<includeonly>{{TradeDatabase/{{{1}}}/{{{2}}}|{{#ifeq: {{#if: {{{location|}}} | {{{location}}} | 0 }} | 1 | 1 | 0 }}}}</includeonly><noinclude>Includes TradeTable by ItemName (need to be added to the [[Template:TradeDatabase|Database]])
<includeonly>{{TradeDatabase/{{{1}}}/{{{2}}}|{{#ifeq: {{#if: {{{location|}}} | {{{location}}} | 0 }} | 1 | 1 | 0 }}}}[[Category:TradeDatabaseCall]]</includeonly><noinclude>Includes TradeTable by ItemName (need to be added to the [[Template:TradeDatabase|Database]])


Example (without location):
Example (without location):

Revision as of 15:56, 18 August 2016

Includes TradeTable by ItemName (need to be added to the Database)

Example (without location):

{{TradeTable/EntryByItem|Chef Sandwich|1}}

or

{{TradeTable/EntryByItem|Chef Sandwich|1|location=0}}

Result: |- | style="border-right-width: 0;" | Chef Sandwich

| style="width: 35px; min-width: 35px; padding-left: 0; padding-right: 0; text-align: center; border-left-width: 0; border-right-width: 0;" |

| style="border-left-width: 0;" | Veggie Set Fruit Set Spice Set 950 Credits

Example (with location):

{{TradeTable/EntryByItem|Chef Sandwich|1|location=1}}

Result: |- style="border-bottom-width: 0;" | style="border-right-width: 0; border-bottom-width: 0;" | Chef Sandwich

| style="width: 35px; min-width: 35px; padding-left: 0; padding-right: 0; text-align: center; border-left-width: 0; border-right-width: 0; border-bottom-width: 0;" |

| style="border-left-width: 0; border-bottom-width: 0;" | Veggie Set Fruit Set Spice Set 950 Credits |- | colspan="3" style="border-top-width: 0;" |

Rookie Harbor Marketplace (before reaching Bergen Trail), Bergen Village Trader's Den, Maroon Valley East Entrance, Ba'kii Kum Market, Rookie Harbor Falling Exit

Database

{{TradeTable/EntryByItem|Chef Sandwich|1}}

is including

{{TradeDatabase/Chef Sandwich/1}}

from the Database into the page. (Template:TradeDatabase/Chef_Sandwich/1)

Database scheme

{{TradeTable/EntryByItem|Itemname|Idname}}

Template:TradeDatabase/Itemname/Idname (parents contains a list of all subpages)

Category

All containd items are listed in Category:TradeContains. This category is usefull for a reverse search or for updating Trades By Component