warframe

This is the documentation page for Module:Tooltips/icon


Submodule of Module:Tooltips responsible for storing details about the tooltip text and icon. The actual tooltip box format is defined in Module:Tooltips/tip.

Submodule of Module:Tooltips. Not meant to be invoked by itself, see the main module page for usage.

Documentation

Package items

tooltips/icon.Modules (table)
Map that contains the basic information about a database in which a tooltip will be using.
Fields:
  • source /data page link (string)
  • loc name(s) of subtable in the table returned by /data; nonexistant keys default to parent table (string, table)
  • icon function that formats icon image link (function)
  • color function that returns text color (function; optional)
tooltips/icon._find(t, keys) (function)
Finds the value of a key in a nested table.
Parameters:
  • t Table to be searched through (table)
  • keys Array of keys that is in the order in which they are accessed in table; if keys is a string, it will automatically be converted into a table (table, string)
Returns: Value of key that is the last element in keys argument (any)
tooltips/icon.table(name) (function)
Returns a formatted version of the table as seen in a source module's /data subpage
Parameter: name Name of source module (e.g. "Warframes") (string)
Returns: Formatted table of source module's /data table (table)

Created with Docbunto

See Also


Code