본문으로 이동

모듈:title/makeTitle

위키낱말사전, 말과 글의 누리

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

local make_title = mw.title.makeTitle

--[==[
A modified version of {mw.title.makeTitle} that fixes a bug which causes certain inputs to generate title objects for the empty string. Such empty string titles do not represent a valid page, and are broken in various ways (e.g. attempting to access certain keys results in an error); see [[phab:T240678]].]==]
return function(ns, title, fragment, interwiki)
	local title = make_title(ns, title, fragment, interwiki)
	return title and title.prefixedText ~= "" and title or nil
end