Module:category link/templates
Jump to navigation
Jump to search
- This module lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
-- Prevent substitution.
if mw.isSubsting() then
return require("Module:unsubst")
end
local make_link = require("Module:category link").make_link
local process_params = require("Module:parameters").process
local unpack = unpack or table.unpack -- Lua 5.2 compatibility
local export = {}
function export.category_t(frame)
return make_link(unpack(process_params(frame:getParent().args, {
[1] = {required = true, allow_empty = true, no_trim = true},
[2] = {allow_empty = true, no_trim = true},
})))
end
return export