Template:TradeTable/EntryByItem: Difference between revisions
Jump to navigation
Jump to search
Streetclaw (talk | contribs) (Abstraction Test (ref)) |
m (Wrap example results in Template:TradeTable) |
||
(8 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{TradeDatabase/{{{1}}}/{{{2}}}{{#ifeq: {{#if: {{{location|}}} | {{{location}}} | 0 }} | 1 | | <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): | |||
<pre>{{TradeTable/EntryByItem|Chef Sandwich|1}}</pre> or <pre>{{TradeTable/EntryByItem|Chef Sandwich|1|location=0}}</pre> | |||
Result: | |||
{{TradeTable| | |||
{{TradeTable/EntryByItem|Chef Sandwich|1}} | |||
}} | |||
Example (with location): | |||
<pre>{{TradeTable/EntryByItem|Chef Sandwich|1|location=1}}</pre> | |||
Result: | |||
{{TradeTable| | |||
{{TradeTable/EntryByItem|Chef Sandwich|1|location=1}} | |||
}} | |||
== Database == | |||
<pre>{{TradeTable/EntryByItem|Chef Sandwich|1}}</pre> is including <pre>{{TradeDatabase/Chef Sandwich/1}}</pre> from the Database into the page. ([[Template:TradeDatabase/Chef_Sandwich/1]]) | |||
=== Database scheme === | |||
<pre>{{TradeTable/EntryByItem|Itemname|Idname}}</pre> | |||
[[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]]. | |||
All pages that are using this Template can be found in [[:Category:TradeDatabaseCall]].</noinclude> |
Latest revision as of 05:56, 25 March 2021
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:
Trade Offers | ||
---|---|---|
![]() ![]() |
![]() |
|
Example (with location):
{{TradeTable/EntryByItem|Chef Sandwich|1|location=1}}
Result:
Trade Offers | ||
---|---|---|
![]() ![]() |
![]() |
|
![]() |
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. All pages that are using this Template can be found in Category:TradeDatabaseCall.