Jump to content

Module:Wikidata/Formatters

Unchecked
From Wikipedia

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

local p = {}

function p.formatImage( value, options )
    local str = '[[Image:' .. value .. '|thumb'
    if options.legend then
        str = str .. '|' .. options.legend
    end
    return str .. ']]'
end

return p