A modult a Modul:0labels/templates/doc lapon tudod dokumentálni
local export = {}
--[=[
Modules used:
]
]
]
]
]
]=]
-- Add tracking category for PAGE. The tracking category linked to is ].
local function track(page)
require("Module:0debug/track")("labels/" .. page)
end
function export.show(frame)
local parent_args = frame:getParent().args
local compat = (frame.args or "") ~= "" and parent_args
local term_mode = (frame.args or "") ~= ""
local params = {
= {required = true, default = "und"},
= {list = true},
= {type = "boolean"},
= {},
}
if compat then
params = params
params = nil
params = {required = true, default = "und"}
end
local args = require("Module:0parameters").process(parent_args, params)
-- Gather parameters
local lang = args
local labels = args
lang = require("Module:0languages").getByCode(lang, compat and "lang" or 1)
-- Temporary tracking for the weird arguments.
if (args.sort) then
track("sort")
end
return require("Module:0labels").show_labels {
lang = lang,
labels = labels,
sort = args.sort,
nocat = args.nocat,
term_mode = term_mode
}
end
return export