Template:CommoditiesRatioTable/doc

From Stoneshard wiki
< Template:CommoditiesRatioTable
Revision as of 09:23, 26 April 2025 by Kaleb (talk | contribs) (Add doc page for updated CommoditiesRatio Template. WIP.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template-info.png Documentation

This article is a stub. You can help Stoneshard wiki by expanding it.

THIS TEMPLATE IS THE UPDATED VERSION OF THE {{CommoditiesRatioTable/head}} & {{CommoditiesRatioTable/row}} TEMPLATE.
ALONG WITH THE COMMODITIESRATIO DATA, UPDATED TO THE FRIENDLY DATA PAGE!

Updates

Firstly, the data found in the old temporary CommoditiesRatio data page, was added to the Friendly data page.
Therefore, NPCs that had the "Trade=1" parameter, received a new parameter: "Ratios".
That were adjusted from the older order to the new one.

Data Format

The new datastring order has 7 data columns separated by semicolons. Each column represents the price of a commodity in a specific town.
Current order of commodities in columns are:

   Sacks of Grain;Barrel of Beer;Crates of Wine;Pails of Cider;Shipment of Timber;Crates of Charcoal;Sacks of Salt

The base values are:

   280;240;360;300;240;300;400


Usage

Before, there was th possibility to have different "/head" usages. But, after the "Tabber" implementation, there was really no need for multiple "/head" parameters.
The template has been simplified to simply {{CommoditiesRatioTable}}, and "controlled" by "Tabber", to show specific towns NPCs.


Examples

"Clear" Call

|}


Header & row

NPCs Sacks of Grain Barrel of Beer Crates of Wine Pails of Cider Shipment of Timber Crates of Charcoal Sacks of Salt
File:Osbrook.png
Osbrook
NPC - - - - - -


Usage

{{CommoditiesRatioTable/head}}*
{{CommoditiesRatioTable/row|Osbrook|Brukk}}

  • head can use -> |town=Osbrook

With Tabber implementation

NPCs Sacks of Grain Barrel of Beer Crates of Wine Pails of Cider Shipment of Timber Crates of Charcoal Sacks of Salt
File:Osbrook.png
Osbrook
NPC - - - - - -
NPCs Sacks of Grain Barrel of Beer Crates of Wine Pails of Cider Shipment of Timber Crates of Charcoal Sacks of Salt
File:Mannshire.png
Mannshire
NPC - - - - - -


New implementation

The new implementation used in Commodities, do not define 'town' and uses the <tabber> parser tag, in the page itself, instead of the template.
More information on the <tabber> parser tag, can be found in the Community Portal, under "Tabs".

NPCs Sacks of Grain Barrel of Beer Crates of Wine Pails of Cider Shipment of Timber Crates of Charcoal Sacks of Salt
File:Osbrook.png
Osbrook
NPC - - - - - -
File:Osbrook.png
Osbrook
NPC - - - - - -