ماژول:Check for unknown parameters: نوسخه‌لر آراسینداکی فرق

محتوای حذف‌شده محتوای افزوده‌شده
صفحه‌‌نی ' -- This module may be used to compare the arguments passed to the parent -- with a list of arguments, returning a specified result if an argument is...' ایله ياراتدی
 
بدون خلاصۀ ویرایش
خط ۱۸:
local showblankpos = isnotempty(frame.args['showblankpositional'])
local knownargs = {}
local unknown = frame.args['unknown'] or 'Found _VALUE_, یافت شد، '
local preview = frame.args['preview']
 
خط ۳۰:
v = trim(v)
knownargs[v] = 1
elseif k:find('^regexp[1-9][0-9]%d*$') then
table.insert(regexps, '^' .. v .. '$')
end
end
if isnotempty(preview) then
preview = '<div class="hatnote" style="color:red"><strong>Warningهشدار:</strong> ' .. preview .. ' (thisاین messageپیام isفقط shownدر onlyحالت inپیش‌نمایش previewظاهر می‌شود).</div>'
elseif preview == nil then
preview = unknown