Template:GEInfo

From Old School Near-Reality Wiki
Revision as of 13:08, 9 November 2022 by Jacmob (talk | contribs) (Created page with "<includeonly>{{#invoke:Exchange|view|view={{{2|}}}}}</includeonly><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:GEInfo/doc. [edit] [history] [purge]
Template:GEInfo invokes function view in Module:Exchange using Lua.
Template:GEInfo invokes Module:Exchange using Lua.

This template is able to display any stored information about an item tradeable in the Grand Exchange. Any returned data will be presented the way it is stored. In other words, any numbers will not be formatted with commas (use formatnum for that).

Usage

The first parameter for this template specifies the item to look up, and the second parameter specifies the information to fetch for the item. For example:

{{GEInfo|Cake|examine}} -> Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.

Possible properties that can be looked up are (with examples being shown for the item Cake):

  • itemId (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • price (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • last (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • date (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • lastDate ()
  • volume (Lua error in package.lua at line 80: module 'Module:GEVolumes/data' not found.)
  • volumeDate ()
  • icon (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • item (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • value (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • limit (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • members (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • examine (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • hialch (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)
  • lowalch (Lua error in Module:Exchange at line 58: package.lua:80: module 'Module:Exchange/Cake' not found.)

See also