Module:Navbar: Difference between revisions

BudjarnLambeth (talk | contribs)
m Add one more to the fractional octave box in either direction so that it can bridge the gap of 3 red links between the 37th and 41st octave pages (and probably other gaps that will emerge higher up in future as more pages are made)
ArrowHead294 (talk | contribs)
mNo edit summary
Line 7: Line 7:
text = (text == nil and "" or text .. " ")
text = (text == nil and "" or text .. " ")
namespace = namespace or "Template"
namespace = namespace or "Template"
local p_name = namespace .. ":" .. name
local p_talk_name = namespace .. " talk:" .. name
return "<span style=\"font-size: 0.8em;\">"
return "<span style=\"font-size: 0.8em;\">"
.. text
.. text
.. ((mode == "mini")
.. ((mode == "mini")
and "[[" .. namespace .. ":" .. name .. "|V]] &bull; " .. "[[" .. namespace .. " talk:" .. name .. "|T]] &bull; " .. "[[Special:EditPage/" .. namespace .. ":" .. name .. "|E]]"
and "[[" .. p_name .. "|V]] &bull; " .. "[[" .. p_talk_name .. "|T]] &bull; " .. "[[Special:EditPage/" .. p_name .. "|E]]"
or "[[" .. namespace .. ":" .. name .. "|View]] &bull; " .. "[[" .. namespace .. " talk:" .. name .. "|Talk]] &bull; " .. "[[Special:EditPage/" .. namespace .. ":" .. name .. "|Edit]]")
or "[[" .. p_name .. "|View]] &bull; " .. "[[" .. p_talk_name .. "|Talk]] &bull; " .. "[[Special:EditPage/" .. p_name .. "|Edit]]")
.. "</span>"
.. "</span>"
end
end