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

Content deleted Content added
و kk
نښلنونه: د موبايل سمون د موبايل وېب سمون
د سمون لنډیز نسته
۱۴ کرښه:
-- Outputs:
-- Formatted image.
-- More details available at the "Module:InfoboxImage/دستاویزdoc" page
 
local i = {};
۱۶۲ کرښه:
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;
Line ۱۹۲ ⟶ ۱۸۷:
local thumbtime = frame.args["thumbtime"] or "";
local center= frame.args["center"];
local right = frame.args["right"];
local left = frame.args["left"];
-- remove prefix if exists
Line ۲۳۷ ⟶ ۲۳۴:
result = result .. "|center"
end
if right ~= "" then result = result .. "|right"
elseif left ~= "" then result = result .. "|left"
end
if alt ~= "" and alt ~= nil then
result = result .. "|alt=" .. alt;