Module:Elderfield/Utility/doc
Jump to navigation
Jump to search
Shared helpers used by every <code>Module:Elderfield/*</code> module. Nothing here renders a whole article; it provides data access, links, icons, currency formatting and table building so that the individual modules stay short. === Functions === ; <code>data(name)</code> : Loads <code>Module:Elderfield/Data/<name></code> with <code>mw.loadData</code>. Returns an empty table if the module does not exist, so a partially imported wiki still renders. ; <code>get(domain, id)</code> : One record by database id. ; <code>link(title, label)</code>, <code>gold(n)</code>, <code>icon(index, size)</code> : Formatting helpers. ; <code>table(headers, rows, class)</code> : Builds a sortable wikitable. ; <code>missing(what, id)</code> : Renders a visible marker and adds the page to a tracking category. Used instead of failing silently. [[Category:Elderfield modules]]