Module:Wikidata/Formatters

There are no reviewed versions of this page, so it may not have been checked for adherence to standards.

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