Anonymous user
Module:Documentation: Difference between revisions
make a couple of the helper functions available for testing
(convert env table to use a metatable so we only process things when we need to; add a grab method and an err function for dealing with errors (main functions need to be converted to use these)) |
(make a couple of the helper functions available for testing) |
||
Line 44:
return ret
end
p.message = message -- Make this function available for testing.
local function makeWikilink(page, display)
Line 73 ⟶ 75:
return '<small style="font-style: normal;">(' .. table.concat(ret, ' | ') .. ')</small>'
end
p.makeToolbar = makeToolbar -- Make this function available for testing.
local function err(msg)
|