Script: add-thought: Does not log deities for new thoughts 276, 277, 278, regardless of subthought
New thoughts 276, 277 and 278 (eg 278: "incompletely performing the rites of X in an undedicated temple") can be added using add-thought, but the subthought option does not set the X deity/religion:

This is as compared to thought 279, where subthought does ~~correctly fill in the deity:~~ fill in something - but not a valid deity; see next comment.

Actually there's likely two different issues here.
Looking back at my screenshot of thought 279, I realise that those 'deities' are not actually deities. I'm not sure what they are - maybe historical figures in general. But if I add a temple and scroll through the list of religions and deities I can dedicate it to, none of those names, eg "Taxheated The Parched" and "Atera Divewax the Tufted", appear as available deities/religions in my fort.
So it might be that subthought needs to be changed to look at something different for all three of those new religion-based thoughts.
I can look into the code and the issue in more detail next week.