Remember that template files not only contain styles but can also be “decorated” with initial contents. And it is easier to delete some part of a document than to add one.
First approach: page styles
Header and footer are properties of a page style. If you need different header/footer contents across your document, you must create different page styles. Except …
If your header/footer contents can be computed or deduced from text prominent data, like document title, chapter heading, …, you can insert this data through fields. As an example, think of a header showing chapter title at left and page number at right. Both are available through fields (
More Fields). With such a “dynamic” header a single page style is enough for all chapters.
In case you really must design several page styles for the purpose of different header/footer, add several pages in your template formatted by these page styles so that you can craft your header/footer. These blank pages (blank except for the header/footer) will be also present in the generated document. Delete those you don’t need after creation of the derived document.
Second approach: AutoText
Another possibility is to use
AutoText which is not associated with any template but to your user profile.
Create first the fully formatted text you want to become your footer template. Do this anywhere, not necessarily in the footer. When done, select it and
AutoText. Give it a name and a “shortcut”. Save it. Note you can save it in user-location if you want so that you can copy and send the new AutoText entries to others.
To insert your AutoText entry, type its “shortcut” and F3.
A page style can have only only header and footer. If your custom header/footer is “static”, i.e. made only of typed text without any field, you need one page style per header/footer.