Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:ObbyInfobox: Difference between revisions

From Obby Wiki
No edit summary
m Protected "Module:ObbyInfobox" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
(No difference)

Revision as of 01:12, 4 April 2025

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

-- inspired by roblox.fandom.com

local utils = require('Module:Utils')
local config_external = require('Module:Config_external')

local media = config_external.media

local function format_media(args)
    local str = ''

    for i, v in pairs(media) do
        if args[i] then
            str = str .. ' ' .. (' [[File:' .. v.file .. '|28px|link=' .. v.url_form:format(args[i]) .. ']]')
        end
    end

    return str
end

return {
    ['format_media'] = utils.wrap_function(format_media, true);
}