پودمان:InfoboxImage: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
don't use alt as a title when title not set
جز (۱ نسخه واردشده) |
en.wikipedia>WOSlinker (don't use alt as a title when title not set) |
||
خط ۱۶۴: | خط ۱۶۴: | ||
-- search for thumbnail images and add to tracking cat if found | -- search for thumbnail images and add to tracking cat if found | ||
local cat = ""; | local cat = ""; | ||
if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail | if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then | ||
cat = "[[ | cat = "[[Category:Pages using infoboxes with thumbnail images]]"; | ||
end | end | ||
return image .. cat; | return image .. cat; | ||
خط ۲۶۹: | خط ۲۶۹: | ||
if title ~= "" and title ~= nil then | if title ~= "" and title ~= nil then | ||
result = result .. "|" .. title; | result = result .. "|" .. title; | ||
end | end | ||
result = result .. "]]"; | result = result .. "]]"; |