|
|
(3 intermediate revisions by the same user not shown) |
Line 8: |
Line 8: |
| local rmatch = mw.ustring.match | | local rmatch = mw.ustring.match |
| local rsplit = mw.text.split | | local rsplit = mw.text.split |
|
| |
| -- Add tracking category for PAGE when called from TEMPLATE. The tracking
| |
| -- category linked to is [[Template:tracking/form-of/TEMPLATE/PAGE]].
| |
| local function track(template, page)
| |
| require("Module:debug").track("form-of/" .. template .. "/" .. page)
| |
| end
| |
|
| |
|
|
| |
|
Line 93: |
Line 87: |
|
| |
|
| local args = require("Module:parameters").process(parent_args, params) | | local args = require("Module:parameters").process(parent_args, params) |
|
| |
| -- Tracking for certain user-specified params. This is generally used for
| |
| -- parameters that we accept but ignore, so that we can eventually remove
| |
| -- all uses of these params and stop accepting them.
| |
| if tracked_params then
| |
| for tracked_param, _ in pairs(tracked_params) do
| |
| if parent_args[tracked_param] then
| |
| track(template, "arg/" .. tracked_param)
| |
| end
| |
| end
| |
| end
| |
|
| |
|
| return args | | return args |