Module:Prime limit navigation: Difference between revisions
ArrowHead294 (talk | contribs) m center element is deprecated |
Undo revision 156825 by ArrowHead294 (talk). Centering not working Tag: Undo |
||
Line 18: | Line 18: | ||
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 = "<small>[[" .. PRIME_LIST[i-1] .. "-limit|← " .. PRIME_LIST[i-1] .. "-limit]]</small> " | ||
else | else | ||
entry_prev = "" | entry_prev = "" | ||
end | end | ||
if PRIME_LIST[i+1] then | if PRIME_LIST[i+1] then | ||
entry_next = " < | entry_next = " <small>[[" .. PRIME_LIST[i+1] .. "-limit|" .. PRIME_LIST[i+1] .. "-limit →]]</small>" | ||
else | else | ||
entry_next = "" | entry_next = "" | ||
Line 30: | Line 30: | ||
out_elem = "<div class=\"toccolours\" style=\"float: right;\">\n" .. | out_elem = "<div class=\"toccolours\" style=\"float: right;\">\n" .. | ||
"< | "<center>'''[[Prime limit]]'''</center>\n" .. | ||
"----\n" .. | "----\n" .. | ||
entry_prev .. entry_curr .. entry_next .. "\n" .. | entry_prev .. entry_curr .. entry_next .. "\n" .. |