Module:utilities/templates: Difference between revisions

no edit summary
(Created page with "local insert = table.insert local export = {} -- Used by {{categorize}} function export.template_categorize(frame) local args = frame:getParent().args local format = frame.args["format"] args = require("Module:parameters").process(args, { [1] = {required = true, type = "language", default = "und"}, [2] = {required = true, list = true, allow_holes = true}, ["sort"] = {list = true, separate_no_index = true, allow_holes = true}, }) local lang = args[1] if...")
 
No edit summary
Line 22: Line 22:
local default_sort = sort_keys.default
local default_sort = sort_keys.default
local cats = {}
local cats = {}
local prefix = format == "pos" and lang:getFullName() .. " " or
local prefix = format == "pos" and lang:getName() .. " " or
format == "topic" and lang:getFullCode() .. ":" or ""
format == "topic" and lang:getCode() .. ":" or ""
local cats_with_sort_keys = {}
local cats_with_sort_keys = {}