Module:Math

From VistApedia
Revision as of 18:20, 5 June 2019 by DavidWhitten (talk | contribs) (Created page with "--This module provides a number of basic mathematical operations. local yesno, getArgs -- lazily initialized local p = {} -- Holds functions to be returned from #inv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

--[[

This module provides a number of basic mathematical operations.

]]

local yesno, getArgs -- lazily initialized

local p = {} -- Holds functions to be returned from #invoke, and functions to make available to other Lua modules. local wrap = {} -- Holds wrapper functions that process arguments from #invoke. These act as intemediary between functions meant for #invoke and functions meant for Lua.

--[[ Helper functions used to avoid redundant code. ]]

local function err(msg) -- Generates wikitext error messages. return mw.ustring.format('Formatting error: %s', msg) end