Module:Prime limit navigation: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
local p = {}
local p = {}


local yesno = require("Module:Yesno")
local PRIME_LIST = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127}
local PRIME_LIST = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127}


Line 39: Line 40:
.. string.format("%s%s%s\n", entry_prev, entry_curr, entry_next)
.. string.format("%s%s%s\n", entry_prev, entry_curr, entry_next)
.. "</div>"
.. "</div>"
if yesno(frame.args["debug"]) == true then
result = "<syntaxnighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>"
end
return frame:preprocess(result)
return frame:preprocess(result)