Модуль:фразеологизмдер
Көрүнүш
Documentation for this module may be created at Модуль:фразеологизмдер/doc
local p = {}
function p.render(frame)
local args = frame.args
local input = args[1] or ""
if input:match("^%s*$") then return "" end
local items = {}
for line in input:gmatch("([^\n\r]+)") do
if line:match("%S") then
table.insert(items, line)
end
end
local max_items = 24
local limited_items = {}
for i = 1, math.min(#items, max_items) do
table.insert(limited_items, items[i])
end
local content = table.concat(limited_items, "\n")
local res = '\n<div style="clear:both; width:100%; margin-top:20px; text-align:left;">'
res = res .. '<div style="font-size: 1.2em; font-family: sans-serif; font-weight: bold; margin-bottom: 10px; border-bottom: 1px solid #a2a9b1; padding-bottom: 3px; color: #000;">Фразеологизмдер жана туруктуу сөз айкаштары</div>'
res = res .. '<div style="padding: 10px 0; width:100%; box-sizing:border-box; column-count: 3; column-gap: 30px; -webkit-column-count: 3; -moz-column-count: 3; column-fill: balance;">\n' .. content .. '\n</div></div>'
return res
end
return p