Module:Prime limit navigation: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m Centre seems to be working now |
||
Line 17: | Line 17: | ||
if PRIME_LIST[i] then | if PRIME_LIST[i] then | ||
entry_curr = "[[" .. PRIME_LIST[i] .. "-limit]]" | entry_curr = "[[" .. PRIME_LIST[i] .. "-limit]]" | ||
if PRIME_LIST[i-1] then | if PRIME_LIST[i - 1] then | ||
entry_prev = "< | entry_prev = "<span style=\"font-size: 0.75em;\">[[" .. PRIME_LIST[i-1] .. "-limit|← " .. PRIME_LIST[i-1] .. "-limit]]</span> " | ||
else | else | ||
entry_prev = "" | entry_prev = "" | ||
end | end | ||
if PRIME_LIST[i+1] then | if PRIME_LIST[ i+ 1] then | ||
entry_next = " < | entry_next = " <span style=\"font-size: 0.75em;\">[[" .. PRIME_LIST[i+1] .. "-limit|" .. PRIME_LIST[i+1] .. "-limit →]]</span>" | ||
else | else | ||
entry_next = "" | entry_next = "" | ||
Line 31: | Line 31: | ||
out_elem = "<div class=\"toccolours\" style=\"float: right; text-align: center;\">\n" .. | out_elem = "<div class=\"toccolours\" style=\"float: right; text-align: center;\">\n" .. | ||
"<div style=\"margin: auto auto auto auto;\">'''[[Prime limit]]'''</div>\n" .. | "<div style=\"margin: auto auto auto auto;\">'''[[Prime limit]]'''</div>\n" .. | ||
" | "<hr />\n" .. | ||
entry_prev .. entry_curr .. entry_next .. "\n" .. | entry_prev .. entry_curr .. entry_next .. "\n" .. | ||
"</div>" | "</div>" |