模組:Delete2
外观
local data = require('Module:Template:Delete/data')
local yesno = require('Module:Yesno')
local z = {}
function input2( frame, name, reason )
name = mw.text.trim( name ):upper()
wt = {}
for i, item in ipairs( data ) do
local reasontext = ''
if yesno(reason) == 1 then
reasontext = ':' .. item['criteria']
end
return '[[WP:CSD#' .. item['code'] .. '|' .. item['code'] .. ']]' .. reason
end
end
function z.input2(frame)
return input2(frame, frame.args[1], frame.args[1])
end
return z