Jump to content

Module:DYK checklist

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 09:14, 5 November 2016 (start converting Template:DYK checklist). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

-- This module implements {{DYK checklist}}.

local yesno = require('Module:Yesno')

local params = {
	newness = true,
	length = true,
	eligibilityother = true,
	sourced = true,
	neutral = true,
	plagarismfree = true,
	plagiarismfree = true,
	policyother = true,
	hookcited = true,
	hookother = true,
	hookcited = true,
	picfree = true,
	picused = true,
	picclear = true,
}

local p = {}

local function consolidateAliases(args, aliases)
	for argName, aliases in pairs(aliases) do
		for i, alias in ipairs(aliases) do
			if not args[argName] and args[alias] then
				args[argName] = args[alias]
				args[alias] = nil
			end
		end
	end
end

local function buildWikitable()
end

local function buildBulletedList()
end

local function determineGeneralEligibility()
end

local function determinePolicyCompliance()
end

local function determineHookEligibility()
end

local function determineImageEligibility()
end

local function determineQPQ()
end

function p._main(args)
	consolidateAliases(args, {plagiarismfree = {'plagarismfree'}})
end

function p.main(frame)
	local args = require('Module:Arguments').getArgs(frame, {
		wrappers = 'Template:DYK checklist',
	})
	return p._main(args)
end

return p