Jump to content

Module:Csdcheck

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius on tour (talk | contribs) at 01:19, 22 March 2013 (maybe getting somewhere?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}
 
function p.check(frame)
    for k,v in pairs(frame.args) do
        if k == "crit1" then
            return k
        else
            return "didn't work"
        end
    end    
--[[
local result = nil
    for i,v in ipairs(args) do
        local crit = {"G1","G2","G3","G4"}
        for x,y in ipairs(crit) do
            if v == y then
                result = "yes";
            end
        end
    end
    return result
--]]
end
 
return p