Modul:DodajNacrt


local p = {}

function p.main(frame)
	
local title = mw.title.getCurrentTitle() -- dohvati naslov stranice
if title.nsText == 'Nacrt' then           -- ako je imenski prostor naslova jednak 
	local content = title:getContent()
    if string.find(content, 'NacrtFound!') == nil 
    	or string.find(content, '{{[Nn]acrt') == nil then
    	return frame:expandTemplate{title = 'Nacrt'} .. '<span style="display:none;">NacrtFound!</span>' .. content
    	else return ''
    end
end	
	
end
return p