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

Content deleted Content added
و ټ
نښلنونه: د موبايل سمون د موبايل وېب سمون
و hj
نښلنونه: د موبايل سمون د موبايل وېب سمون
۱۶۲ کرښه:
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*thumbthumbnail%s*[|%]]")
or mw.ustring.find(image, "|%s*thumbnail%sتصغير*[|%]]")) then
) then
return image .. "[[Category:مخونه چي د ټومب نیل انځورونه يي کارولې وي]]";
return image .. "[[Category:Pages using infoboxes with thumbnail images]]";
elseif mw.title.getCurrentTitle().namespace == 0 then
return image .. "[[Category:Pages using deprecated image syntax]]";
else
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 ۲۲۱ ⟶ ۲۲۹:
if (tonumber(size) or 0) > 0 then
size = size .. "px";
end
-- add px to sizedefault if just a number
if (tonumber(sizedefault) or 0) > 0 then
sizedefault = sizedefault .. "px";
end
Line ۲۳۶ ⟶ ۲۴۸:
if center == "yes" then
result = result .. "|center"
elseif right ~= "" then
result = result .. "|right"
elseif left ~= "" then
result = result .. "|left"
end
if alt ~= "" and alt ~= nil then
result = result .. "|alt=" .. alt;