View source for Module:columns
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local export = {}
local m_languages = require("Module:languages")
local m_links = require("Module:links")
local m_parameters = require("Module:parameters")
local params = {
[1] = {required = true},
[2] = {list = true, allow_holes = true},
["alt"] = {list = true, allow_holes = true},
["t"] = {list = true, allow_holes = true},
["pos"] = {list = true, allow_holes = true},
["columns"] = {type = "int", default = 2, aliases = {"cols"}},
}
function export.create_list(data)
if not data.terms then error("{{columns}} must be supplied with a list of terms") end
local terms = table.sort(data.terms, function(a, b) return a.term > b.term end)
local out = '<div class="ul-columns" data-column-count="' .. data.columns .. '">'
for _, term in ipairs(terms) do
000
1:0
Template used on this page:
Return to Module:columns.