642
回編集
template>K-iczn (en:Module:InfoboxImage 07:42, 31 October 2015(UTC)より) |
Triple-Zeta (トーク | 投稿記録) 細 (10版 をインポートしました) |
||
(4人の利用者による、間の4版が非表示) | |||
88行目: | 88行目: | ||
"Project Trains no image.png", | "Project Trains no image.png", | ||
"Image-request.png", | "Image-request.png", | ||
"Noimage.gif", | |||
} | } | ||
164行目: | 165行目: | ||
if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then | if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then | ||
return image .. "[[Category:Infobox内でサムネイル画像を使用しているページ]]"; | return image .. "[[Category:Infobox内でサムネイル画像を使用しているページ]]"; | ||
elseif mw.title.getCurrentTitle().namespace == 0 then | |||
return image .. ""; | |||
else | else | ||
return image; | return image; | ||
172行目: | 175行目: | ||
return image; | return image; | ||
elseif mw.ustring.sub(image,1,5) == mw.ustring.char(127).."UNIQ" then | 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 | -- Found strip marker at begining, so pass don't process at all | ||
return image; | return image; | ||
216行目: | 222行目: | ||
if (tonumber(size) or 0) > 0 then | if (tonumber(size) or 0) > 0 then | ||
size = size .. "px"; | size = size .. "px"; | ||
end | |||
-- add px to sizedefault if just a number | |||
if (tonumber(sizedefault) or 0) > 0 then | |||
sizedefault = sizedefault .. "px"; | |||
end | end | ||