Module:Documentation: Difference between revisions

From Video Credit Archive

Content deleted Content added
wikpedia>Mr. Stradivarius
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)
wikpedia>Mr. Stradivarius
make a couple of the helper functions available for testing
Line 44: Line 44:
return ret
return ret
end
end

p.message = message -- Make this function available for testing.


local function makeWikilink(page, display)
local function makeWikilink(page, display)
Line 73: Line 75:
return '<small style="font-style: normal;">(' .. table.concat(ret, ' &#124; ') .. ')</small>'
return '<small style="font-style: normal;">(' .. table.concat(ret, ' &#124; ') .. ')</small>'
end
end

p.makeToolbar = makeToolbar -- Make this function available for testing.


local function err(msg)
local function err(msg)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.