「モジュール:InfoboxImage」の版間の差分

WP:AN/PEによる更新 en:Module:InfoboxImage 2017年3月12日 (日) 14:50(UTC)より移植
template>Frozen-mikan
(保護ページ編集依頼 による: モジュール:InfoboxImage/sandbox 2016年4月5日 (火) 09:03 (UTC) の版から複製)
template>アルトクール
(WP:AN/PEによる更新 en:Module:InfoboxImage 2017年3月12日 (日) 14:50(UTC)より移植)
164行目: 164行目:
         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行目: 221行目:
         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