def METHOD_NAME(title,text):
	chars=list()
	depth1=0
	depth2=0
	for i in xrange(0,len(text)):
		if text[i]=="{":
			depth1+=1
			if depth2==0:
				chars.append(text[i])
		elif text[i]=="}":
			depth1-=1
			if depth2==0:
				chars.append(text[i])
			if depth1==0:
				break
		elif text[i]=="<":
			depth2+=1
		elif text[i]==">":
			depth2-=1
		elif depth2==0:
			chars.append(text[i])
	raw=u"".join(chars)
	m=re.match(ur"{{(?:Шаблон:)?([^|{}]+)\|",raw)
	if not m:
		return
	name=unescape(m.group(1).strip())
	if not name:
		return
	word=""
	m=re.search(ur"{{по[-\s]слогам([^{}]+)}}",raw)
	if not m:
		m=re.search(ur"\|([^|{}=]+)[|}]",raw)
	if m:
		word0=re.sub(ur"(?u)[^\ẃ]","",m.group(1)).replace("|-","").replace(".","")
		if stressed_word_regex.match(word0):
			word0=word0.replace(u"́","'").lower().replace(u"ё'",u"ё")
			if word0.replace("'","")==title.lower():
				word=word0
	stems=collections.OrderedDict([(u"основа",""),(u"основа1",""),(u"основа2",""),(u"основа3",""),(u"основа4",""),(u"основа5","")])
	for m in re.finditer(ur"(основа\d?)\s*=\s*([^|{}=\s]+)\s*[|}]",raw):
		stem0=m.group(2)
		if stressed_word_regex.match(stem0):
			stem=stem0.replace(u"́","'").lower().replace(u"ё'",u"ё")
			stems[m.group(1)]=stem
	if not (word or any(stems.values())):
		return
	return (word,name,stems)