Templates for M$ Word and LO Writer don’t encompass the same target data. Consequently, I consider as expectable that saving a complex formatting in a .dotx file results in a loss when reopened.
The second flaw is to add border attributes with Format
>Paragraph
. This command adds the attributes to the paragraph where you applied it. Its action is “local”, limited to this sole paragraph. Even with an .ott template, the attributes won’t be transferred to new headings because you created direct formatting (=manual formatting) on a specific occurrence.
Templates are primarily intended to contain styles. Here, you need to modify a Heading n built-in style for the change to become permanent. This is done with Styles
>Manage Styles
. Right-click on the style name and Modify
.
When done, File
>Templates
>Save as Template
to ensure it creates an .ott.
For a full introduction to styles and templates, read the Writer Guide.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.