Module:Debug/track: Difference between revisions
Jump to navigation
Jump to search
en>Surjection m (Protected "Module:debug/track" ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite))) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 22:25, 5 September 2022
Documentation for this module may be created at Module:Debug/track/doc
return function (key)
local frame = mw.getCurrentFrame()
if key then
if type(key) ~= "table" then
key = { key }
end
for i, value in pairs(key) do
pcall(frame.expandTemplate, frame, { title = 'tracking/' .. value })
end
else
error('No tracking key supplied to the function "' .. track .. '".')
end
end