template sheet automation

can you please guide how to automate template sheet including diagram date and simultaneoulsy the sheet name line number for succeeding diagrams what would be path forward for the same pleas do let me know