Module:Correct typos in one click navigation

local p = {}

function p.nav(frame) local nav = '' local i = 0 while i < 20 do		i = i + 1 local pni = 'Wikibooks:Correct typos in one click/'..i		local ele = '' local ele_grey = ' '..i..' ' local pniTitle = mw.title.new(pni, 4) --project space if pniTitle.exists == false then ele = ele_grey elseif pniTitle.isRedirect then ele = ele_grey elseif string.len(pniTitle:getContent) > 5 then ele = ..i.. else ele = ele_grey end nav = nav..ele..', ' end return mw.text.trim( nav, ', ' ) end

return p