How to use one template for several subwikis?

Good afternoon friends! Please advise!

I have one Global Wiki and several sub-wikis to it.
How can I make a custom template created on the Global Wiki also available in all subwikis?
Why do I need it:

  1. I don’t want to have to copy the templates multiple times.
  2. So that in the future, when you change the templates in the Global Wiki, these changes will automatically become available on all sub-wikis.

By default, a template created in the Global Wiki is only available within the Global Wiki, but is not available in the subwikis.