「モジュール:Protection banner/sandbox」の版間の差分

削除された内容 追加された内容
バナー表示時の画像は従来通り横幅のみ指定する
(同じ利用者による、間の2版が非表示)
744行目:
return makeFileLink{
file = filename,
size = (self.imageWidthimageSize or 20'x20') .. 'px', -- 日本語版独自の変更
alt = self._imageAlt,
link = self._imageLink,
760行目:
function Banner.new(protectionObj, blurbObj, cfg)
local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb.
obj.imageSize = 40 -- 日本語版独自の変更: フィールド名
obj.imageWidth = 40
obj.imageCaption = blurbObj:makeBannerText('alt') -- Large banners use the alt text for the tooltip.
obj._reasonText = blurbObj:makeBannerText('text')
795行目:
function Padlock.new(protectionObj, blurbObj, cfg)
local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb.
obj.imageSize = 'x20' -- 日本語版独自の変更: フィールド名、高さのみ指定
obj.imageWidth = 20
obj.imageCaption = blurbObj:makeBannerText('tooltip')
obj._imageAlt = blurbObj:makeBannerText('alt')