تضامنًا مع حق الشعب الفلسطيني |
وحدة:ImageFormatter
اذهب إلى التنقل
اذهب إلى البحث
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
local p = {}
function p.makeImage(value, options)
local image = '[[file:' .. value
if options.size then
image = image .. '|' .. options.size
end
if options.description then
image = image .. '|' .. options.description
end
if options.link then
image = image .. '|link=' .. options.link
end
if options.alt or options.description then
image = image .. '|alt=' .. (options.alt or options.description)
end
return image .. ']]'
end
return p