Module:Navbar: Difference between revisions
fractional-octave and lumatone functions (should be) no longer needed; numlinks+navbox modules/templates handle everything now |
deleted wrapper by mistake oops |
||
| Line 20: | Line 20: | ||
text, p_name, links[1], s, p_talk_name, links[2], s, p_edit_name, links[3]) | text, p_name, links[1], s, p_talk_name, links[2], s, p_edit_name, links[3]) | ||
.. "</span>" | .. "</span>" | ||
end | |||
-- Wrapper function for [[Template:Navbar]] | |||
function p.navbar(frame) | |||
local name = frame.args["name"] | |||
local namespace = frame.args["namespace"] | |||
local mode = frame.args["mode"] | |||
local text = frame.args["text"] | |||
local debugg = frame.args["debug"] | |||
local result = p._navbar(name, mode, text, namespace) | |||
-- Debugger option | |||
if debugg == true then | |||
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" | |||
end | |||
return frame:preprocess(result) | |||
end | end | ||
return p | return p | ||