د "Module:InfoboxImage" د بڼو تر مېنځ توپير

Content deleted Content added
Khangul (خبرې اترې | ونډې)
د سمون لنډیز نسته
ود سمون لنډیز نسته
۱ کرښه:
-- Inputs:
-- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link
-- page - page to display for multipage images (DjVu)
-- size - size to display the image
-- maxsize - maximum size for image
Line ۱۶۱ ⟶ ۱۶۲:
if mw.ustring.sub(image,1,2) == "[[" then
-- search for thumbnail images and add to tracking cat if found
if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then
return image .. "[[Category:Pagesخانہ usingمعلومات infoboxesاستعمال withکنندہ thumbnailصفحات imagesمع تھمب نیل تصاویر]]";
elseif mw.title.getCurrentTitle().namespace == 0 then
return image;
else
return image;
Line ۱۷۱ ⟶ ۱۷۴:
return image;
elseif mw.ustring.sub(image,1,5) == mw.ustring.char(127).."UNIQ" then
-- Found strip marker at begining, so pass don't process at all
return image;
elseif mw.ustring.sub(image,4,9) == "`UNIQ-" then
-- Found strip marker at begining, so pass don't process at all
return image;
else
local result = "";
local page = frame.args["page"];
local size = frame.args["size"];
local maxsize = frame.args["maxsize"];
Line ۲۱۷ ⟶ ۲۲۴:
result = "[[File:" .. image;
if page ~= "" and page ~= nil then
result = result .. "|page=" .. page;
end
if size ~= "" and size ~= nil then
result = result .. "|" .. size;
Line ۲۳۶ ⟶ ۲۴۶:
result = result .. "|border";
end
if upright ~== "yes" then
result = result .. "|upright";
elseif upright ~= "" then
result = result .. "|upright=" .. upright;
end