Module:User:Mustbeotherwise/testing
Appearance
local p = {}
local intros = {
nfn = [=[[[File:Ambox important.svg|18px|alt=]] '''Not done for now'''<br>Thank you for your submission! Unfortunately, your edit request is not being implemented at this time. This is because:]=],
no = [=[[[File:Symbol unrelated.svg|18px|alt=]] '''Not done'''<br>Thank you for your submission! Unfortunately, your edit request is not being implemented. This is because:]=]
}
local outros = {
corpo = [=[Feel free to open another COI edit request once you've addressed these issues. Thanks.]=],
friendly = [=[Thank you for your submission and feel free to reopen your submission when you've addressed the outlined issue(s). Also, feel free to ping me if you have any questions, though I may be too busy to assist you. Thanks!]=]
}
local itemPool = {
is = [=[Some or all of your sources appear not to be independent sources. You can read more on Wikipedia's policy at [[Wikipedia:Independent sources]].]=],
rs = [=[Some or all of your sources appear not to be reliable sources. You can read more on Wikipedia's policy at [[Wikipedia:Reliable sources]].]=],
inline = [=[Your proposed revision lacks inline citations. Please cite your references using inline citations as outlined at [[Wikipedia:Citing sources#Inline citations]] and [[Wikipedia:Inline citation]].]=],
bare = [=[Some or all of your citations are currently formatted as [[WP:Bare URLs|bare URLs]]. Please format your citations using Wikipedia's general citation styles or use the "cite" button in the editor.]=],
redcite = [=[Your citations are missing necessary information. Please add the required information as noted.]=],
npov = [=[Some of the requested changes are written in a promotional tone. Please review [[WP:Neutral point of view]] and revise accordingly.]=],
unclear = [=[It is not clear what specific changes you are requesting. Please describe the changes using a clear "change X to Y" format.]=],
unexplained = [=[You are requesting removal of sourced content. Sourced material is not normally removed without a clear reason. See [[Wikipedia:Content removal]] for more information.]=],
noreason = [=[You have not adequately explained why some or all of your proposals should be implemented. Please provide your reasoning.]=]
}
function p.render(frame)
local args = frame:getParent().args
local output = {}
if args.intro and args.intro ~= "" then
local introText = intros[args.intro] or args.intro
table.insert(output, frame:preprocess(introText))
end
if args.items and args.items ~= "" then
local itemList = mw.text.split(args.items, "|")
for _, item in ipairs(itemList) do
item = mw.text.trim(item)
if item ~= "" then
local text = itemPool[item] or item
table.insert(output, "# " .. frame:preprocess(text))
end
end
end
if args.outro and args.outro ~= "" then
local outroText = outros[args.outro] or args.outro
table.insert(output, frame:preprocess(outroText))
end
return table.concat(output, "\n")
end