Module:Legals

From faraghaib
Revision as of 22:17, May 30, 2025 by Admin (talk | contribs)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Legals/doc

Script error: Lua error: Cannot create process: proc_open is not available. Check PHP's "disable_functions" configuration directive.

local p = {}
local converter = require("Module:Numeral converter")

function createItem(colorModifier, iconModifier, catName, subText)
    local s1 = '<div class="content-improvement-item ' .. colorModifier .. ' ' .. iconModifier .. '">'
    local s2 = '[[:رده:' .. catName .. '|<span class="content-improvement-item__subtext-big">'
    local s3 = subText .. '</span>'
    local s4 = '</span></small></span>]]</div>'
    return s1 .. s2 .. s3 .. s4
end

local data = {
    createItem('-color-blue', '-icon-editUndo', 'کتاب های آموزشی حوزه علمیه', 'کتاب'),

}

function p.main(frame)
    local result = ""
    for i = 1, #data, 1 do
        result = result .. data[i]
    end
    return result
end

return p