deal with template building

template build for 'numbertemplate' and 'thumbnailtemplate'