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, the selected template already being associated with a first related text;
- receiving an input of a text into the selected template;
- referring to dictionary data in which a plurality of terms are registered;
- upon receipt of a print instruction, storing in a memory and in association with each other (i) the selected template and (ii) a second related text, which is based on the input text, is registered in the dictionary data in the memory, and is different from the first related text;
- upon receipt of the print instruction, transmitting to a printer external to the template processing device print data based on the selected template and the input text;
- receiving an input of a search keyword for searching the template;
- extracting, from the memory, the template with which the second related text corresponding to the input search keyword is associated;
- and
- displaying the extracted template on a display as an available template.