差分

en:Module:Check for unknown parameters oldid=934641291 より更新
40行目: 40行目:  
return
 
return
 
end
 
end
   
local ignoreblank = isnotempty(args['ignoreblank'])
 
local ignoreblank = isnotempty(args['ignoreblank'])
 
local showblankpos = isnotempty(args['showblankpositional'])
 
local showblankpos = isnotempty(args['showblankpositional'])
61行目: 60行目:  
end
 
end
 
if isnotempty(preview) then
 
if isnotempty(preview) then
preview = '<div class="hatnote" style="color:red"><strong>Warning:</strong> ' .. preview .. ' (this message is shown only in preview).</div>'
+
preview = '<div class="hatnote" style="color:red"><strong>警告:</strong> ' .. preview .. '(このメッセージはプレビュー時のみ表示されます。)</div>'
 
elseif preview == nil then
 
elseif preview == nil then
 
preview = unknown
 
preview = unknown
99行目: 98行目:  
end
 
end
 
-- avoid error with v = 'example%2' ("invalid capture index")
 
-- avoid error with v = 'example%2' ("invalid capture index")
local r = unknown:gsub('_VALUE_', {_VALUE_ = v})
+
local r = unknown:gsub('_VALUE_', {_VALUE_ = v})
 
table.insert(res, r)
 
table.insert(res, r)
 
end
 
end
匿名利用者