Module:Navbar: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 30: | Line 30: | ||
function p.lumatone_map(frame) | function p.lumatone_map(frame) | ||
local | local talk_page_name = frame:preprocess("{{lc:{{TALKPAGENAME:{{FULLROOTPAGENAME}}}}}}") | ||
local a = root_page_name:match("[Ll]umatone%s*[Mm]apping%s*[Ff]or%s*(%d+)%s*[Ee][Dd][2Oo]") | local a = root_page_name:match("[Ll]umatone%s*[Mm]apping%s*[Ff]or%s*(%d+)%s*[Ee][Dd][2Oo]") | ||
local x = tonumber(frame.args["edo"]) or tonumber(a) | local x = tonumber(frame.args["edo"]) or tonumber(a) | ||
Line 49: | Line 49: | ||
.. "}}") | .. "}}") | ||
if string.lower( | if string.lower(talk_page_name) ~= "template talk:navbox lumatone" then | ||
out_str = out_str .. " [[Category:Lumatone mappings]] [[Category:" .. x .. "edo]]" | out_str = out_str .. " [[Category:Lumatone mappings]] [[Category:" .. x .. "edo]]" | ||
end | end |