Template:TradeTable

Jump to navigation Jump to search
Documentation[view] [edit] [history] [refresh]
This template uses Module:TradeTable, a script written in Lua.

Usage[edit source]

Arguments[edit source]

  • title (optional) - sets the text for the header
  • profession (optional) - sets the villager profession, defaults to title
  • ignoreUsage (optional) - when set to any value no data will be stored into SMW
  • All unnamed parameters must be a call to {{TradeLine}}

Example[edit source]

{{TradeTable|title=Armorer Trade Example|profession=Armorer
|{{TradeLine|lvl=Novice|slot=1|want=Coal|wantQuant=15|multi=0.05|maxTrades=16|xpGain=2}}
|{{TradeLine|lvl=Novice|slot=2|wantQuant=5|multi=0.2|give=Iron Helmet|maxTrades=12|xpGain=1}}
|{{TradeLine|lvl=Novice|slot=2|wantQuant=9|multi=0.2|give=Iron Chestplate|maxTrades=12|xpGain=1}}
}}

Result:

Armorer Trade Example
LevelBedrock EditionJava EditionItem wantedItem givenTrades in
stock
Price multiplierVillager XP
SlotProbabilityProbability
Novice1100%67%15 × CoalEmerald16Low2
250%67%5 × EmeraldIron Helmet12High1
50%67%9 × EmeraldIron Chestplate12High1
[view] [edit] [history] [refresh]The above documentation is transcluded from Template:TradeTable/doc.