Template:Trade
Jump to navigation
Jump to search
Trade Temaplate
Description
A table used for displaying trades from a merchant in Wynncraft.
Usage
{{Trade
| merchant =
| tradeLabel =
| priceLabel =
| productLabel =
| nocargo =
| # =
}}
Note: The #
symbol represets an infinite number of unnamed arguments. (Minimum of 1)
Argument | Description | Default Value |
---|---|---|
merchant
|
The name of the merchant, displayed as the heading | The name of the current page |
tradeLabel
|
The label used for the merchant header (Used for translation purposes) | Trades |
priceLabel
|
The label used for the price header (Used for translation purposes) | Price |
productLabel
|
The label used for the product header (Used for translation purposes) | Product |
nocargo
|
If that value is defined, the merchants trades will not appear in the Template:MerchantsThatTrade templates. | false |
#
|
Trades in the form of the TradeRow Template |
TradeRow Template
Description
Used to define a trade in the Trade Template. The trades are displayed with the Template:TradeRow/display template. Responsible for inserting data to the MerchantTrades Cargo Database.
Usage
{{TradeRow
| in =
| inamount =
| inimg =
| inlink =
| out =
| outamount =
| outimg =
| outlink =
}}
Argument | Description | Default Value |
---|---|---|
in
|
The name of the input item. Multiple input items can be defined with , separators, they correspond to inputs in the same position on other arguments (See Example).
|
Emerald |
inamount
|
The amount of the input item. Amounts for multiple input items can be defined with , separators, they correspond to inputs in the same position on other arguments (See Example).
|
1 |
inimg
|
The image of the input item. Images for multiple input items can be defined with , separators, they correspond to inputs in the same position on other arguments (See Example).
|
{{ItemIcon|in}} |
inlink
|
A for the input item to link to. Links for multiple input items can be defined with , separators, they correspond to inputs in the same position on other arguments (See Example).
|
[[in]] (if page exitsts) |
out
|
The name of the output item. Multiple output items can be defined with , separators, they correspond to inputs in the same position on other arguments (See Example).
|
Emerald |
outamount
|
The amount of the output item. Amounts for multiple output items can be defined with , separators, they correspond to outputs in the same position on other arguments (See Example).
|
1 |
outimg
|
The image of the output item. Images for multiple output items can be defined with , separators, they correspond to outputs in the same position on other arguments (See Example).
|
{{ItemIcon|out}} |
outlink
|
A for the output item to link to. Links for multiple output items can be defined with , separators, they correspond to outputs in the same position on other arguments (See Example).
|
[[out]] (if page exitsts) |
Examples
Basic Trade
{{Trade | merchant = Gold Merchant | {{TradeRow | in = Gold Ingot | out = Emerald | outamount = 5 }} | {{TradeRow | in = Emerald | inamount = 5 | out = Gold Ingot }} }}
Produces:
Gold Merchant Trades | |
---|---|
Price | Product |
1 Gold Ingot |
5 Emerald |
5 Emerald |
1 Gold Ingot |
Mulitple Item Trade
{{Trade |merchant= Combination Merchant | {{TradeRow | in = Rotten Flesh,Hide | inamount = 1,5 | inimg= ,{{WynnIcon|leather}} | out = Strong Flesh }} | {{TradeRow | in = Strong Flesh,Emerald | inamount = ,3 | out = Rotten Flesh,Hide | outimg= ,{{WynnIcon|leather}} }} }}
Produces:
Combination Merchant Trades | |
---|---|
Price | Product |
1 Rotten Flesh 5 Hide |
1 Strong Flesh |
1 Strong Flesh 3 Emerald |
1 Rotten Flesh 1 Hide |
Using Default Values
{{Trade | merchant = Misc Merchant | {{TradeRow | out = Iron Sword | outlink = Warrior | outimg = {{WeaponIcon|iron_sword}} }} | {{TradeRow | inamount = 20 | out = Arrow | outamount = 10 }} | {{TradeRow | inamount = 2 | out = Egg | outamount = 5 | note = These eggs can not be eaten for breakfast }} }}
Produces:
Misc Merchant Trades | ||
---|---|---|
Price | Product | |
1 Emerald |
1 Iron Sword | |
20 Emerald |
10 Arrow | |
2 Emerald |
5 Egg |
These eggs can not be eaten for breakfast |
Using Transaltion Arguments
{{Trade | merchant = D'l'or Marchand | tradeLabel = Métiers | priceLabel = Prix | productLabel = Produit | {{TradeRow | in = Lingot d’or | inlink = Gold Bar| inimg = {{WynnIcon|gold ingot}} | out = Emeraudes | outlink = Emeralds | outamount = 5 | outimg = {{WynnIcon|emerald}} }} }}
Produces:
D'l'or Marchand Métiers | |
---|---|
Prix | Produit |
1 Lingot d’or |
5 Emeraudes |
The above documentation is transcluded from Template:Trade/doc. (edit | history)