Module:Wikidata/Formatters

From Wikipedia
Jump to navigation Jump to search

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