포켓몬샘플 위키
Advertisement

이 모듈에 대한 설명문서는 모듈:Strings/설명문서에서 만들 수 있습니다

local p = {}
 
function p.battlecheck(frame)
 local str=frame.args[1]
	local result=""
        local flag=0
	if string.find(str,"불문")~=nil then
		result=result .. "[[분류:로테이션배틀용샘플]][[분류:66배틀용샘플]][[분류:63배틀용샘플]][[분류:트리플배틀용샘플]][[분류:더블배틀용샘플]]"
	end
	if string.find(str,"로테이션")~=nil then
		result=result .. "[[분류:로테이션배틀용샘플]]"
	end
	if string.find(str,"트리플")~=nil then
		result=result .. "[[분류:트리플배틀용샘플]]"
	end
	if string.find(str,"더블")~=nil or string.find(str,"64")~=nil or string.find(str,"6%-4")~=nil or string.find(str,"6/4")~=nil then
		result=result .. "[[분류:더블배틀용샘플]]"
	end
	if string.find(str,"6")~=nil and string.find(str,"3")~=nil then
		result=result .. "[[분류:63배틀용샘플]]"
                flag=1
	end
	if string.find(str,"66")~=nil or string.find(str,"6%-6")~=nil or string.find(str,"6/6")~=nil then 
		result=result .. "[[분류:66배틀용샘플]]"
	        flag=1
        end
	if string.find(str,"싱글")~=nil and flag==0 then
		result=result .. "[[분류:66배틀용샘플]][[분류:63배틀용샘플]]"
	end	
	return result
end

 
return p
Advertisement