A non-transitory computer-readable storage medium storing a program, the program causing a template processing device to execute:
- receiving selection of a template from available templates;
- receiving an input of a text into the selected template;
- storing the selected template and a related text that is at least a part of the input text in a storage unit in association with each other;
- receiving an input of a search keyword for searching the template;
- extracting, from the storage unit, the template with which the related text corresponding to the input search keyword is associated;
- and
- displaying the extracted template on a display unit as an available template.