local exports = {}
local lang = require("Module:languages").getByCode("jam")
local PAGENAME = mw.title.getCurrentTitle().text
-- The main entry point.
-- This is the only function that can be invoked from a template.
function exports.create(frame)
local pageNum = frame.args['pageNum'] or error("Please pass parameter pageNum to the module invocation.")
if pageNum == nil or pageNum == '' then
error("pageNum variable is empty.")
end
local pageNumNumeral = tonumber(pageNum)
if pageNumNumeral ~= nil then
if pageNumNumeral < 1 or pageNumNumeral > 697 then
error("This reference only has 697 numbered pages.")
end
end
-- see https://en.wiktionary.org/wiki/Wiktionary:References
local output = "Richard Allsopp (main editor), ''Dictionary of Caribbean English Usage'', 2003 (reprint by The University of the West Indies Press, originally 1996 by Oxford University Press), [[Special:BookSources/9789766401450|ISBN 9789766401450 (originally ISBN-10: 976-640-145-4)]], page " .. pageNum
return output
end
return exports