Open main menu

UESPWiki β

Template:MW Wares


SummaryEdit

Creates a table displaying the wares of merchants in Morrowind, Tribunal and Bloodmoon.

Previously, wares were displayed using side-by-side tables. However, mobile browsers and the UESP app have narrower displays; forcing a side-by-side layout "squeezed" the tables' contents into narrow columns, compromising its readability.

The tables generated by this template have the following features:

  • Wraps tables in a <div> with inline-table display so tables stack on top of each other.
  • Uses fixed column widths for "Item" and "Qty" so the tables look uniform if/when stacked.
  • Uses a template to reduce duplication of the item name as well as verbosity of table rows. Compare this:
|-{{ThickLine}}
|'''[[MW:random_de_cheapfood_01_nc|random_de_cheapfood_01_nc]]'''||14
  • To this:
{{MW Wares/Row|random_de_cheapfood_01_nc|14|ll=1|ss=1}}

ParametersEdit

MW Wares
Parameter Scope Description
MW Wares/Table
1 required The contents of the table
MW Wares/Header
1 required The title of the section (i.e. the item category)
MW Wares/Row
1 required The name of the item
2 required The quantity of the item
3 optional The namespace of the item (e.g. BM, TR); defaults to MW if omitted
eq optional Set as anything if the vendor has this item equipped.
ll optional Set as anything if this item is a leveled list.
pl optional Set as a numeric value if this item is found growing on plants in the store.
ss optional Set as anything if this item is part of a new subsection (i.e. an item subcategory).

ExampleEdit

{{MW Wares/Table|
{{MW Wares/Header|Armor}}
{{MW Wares/Row|Imperial Chain Right Pauldron|1|eq=1}}
{{MW Wares/Row|Native Armun-An Bonemold Helm|-1}}
{{MW Wares/Header|Clothing}}
{{MW Wares/Row|random_expensive_de_mclothes_02|4, -5|ll=1}}
{{MW Wares/Header|Weapons}}
{{MW Wares/Row|Iron Arrow|-50, 500}}
{{MW Wares/Row|Nordic Silver Longsword|1|BM}}
{{MW Wares/Row|l_m_wpn_melee_short blade|1|eq=1|ll=1|ss=1}}
}}
{{MW Wares/Table|
{{MW Wares/Header|Ingredients}}
{{MW Wares/Row|Black Anther|0-12|pl=80}}
{{MW Wares/Row|random_de_cheapfood_01_nc|14|ll=1|ss=1}}
{{MW Wares/Header|Books & Scrolls}}
{{MW Wares/Row|Confessions of a Skooma-Eater|1}}
{{MW Wares/Row|Scroll of Summon Flame Atronach|-5|ss=1}}
{{MW Wares/Header|Repair Items}}
{{MW Wares/Row|GrandMaster's Armorer's Hammer|-10}}
}}
  • If viewing this on a normal web browser, see what happens when you resize the window to a narrower width.
  • Alternatively, you can view the mobile web version of this page.

SubpagesEdit