642
回編集
template>Frozen-mikan (保護ページ編集依頼 による: モジュール:InfoboxImage/sandbox 2016年4月5日 (火) 09:03 (UTC) の版から複製) |
Triple-Zeta (トーク | 投稿記録) 細 (10版 をインポートしました) |
||
(2人の利用者による、間の2版が非表示) | |||
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; | ||
219行目: | 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 | ||