Module:Prime limit navigation: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
m Fix typo
 
(2 intermediate revisions by the same user not shown)
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 34: Line 35:
end
end
out_elem = "<div class=\"toccolours\" style=\"float: right; text-align: center; margin: 0px 0px 4px 4px;\">\n"
local result = "<div class=\"toccolours\" style=\"float: right; margin: 0px 0px 4px 4px;\">\n"
.. "<div style=\"margin: auto auto auto auto;\">'''[[Prime limit]]'''</div>\n"
.. "{{centre|'''[[Prime limit]]'''}}\n"
.. "<hr />\n"
.. "<hr />\n"
.. 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>"
return out_elem
if yesno(frame.args["debug"]) == true then
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>"
end
return frame:preprocess(result)
end
end


return p
return p