warframe

This is the documentation page for Module:Vendors


Vendors stores offerings data from vendors and NPCs.


Usage

Module

local Vendor = require('Module:Vendors')

Documentation

Package items

vendors._buildVendorSourceStrings(name) (function)
Builds lists of sources with vendors where an item can be purchased from. Used in infobox builders such as Module:Mods/infobox
Parameter: name Name of item (string)
Returns: List of vendor sources in wikitext (string)
vendors.offeringsList(frame) (function)
Builds a list of offerings sold by a particular NPC vendor. (Not stable and unfinished)
Parameter: frame Frame object with first argument being the name of vendor as stored in M:Vendors/data (table)
Returns: Wikitext of resultant list (string)
vendors.varziaOfferings(Frame) (function)
Builds a list of Varzia relics offerings for display on her page and on Aya. At the time of writing this function is merely an excuse to put Varzia's relics somewhere into Lua so that it can be queried later on the relic own page. Ideally, this should handle all the offerings, but as the comment at the top of Module:Vendors/data alludes, that is blocked on creating a sort of database for the offerings images. So maybe some other time.
Parameter: Frame object with no extra requirements (table)
Returns: Wikitext of the resultant list (string)

Created with Docbunto

See Also


Code