Hello.
While editiing my wikis a lot I noticed that I would like to create a sort of a library out of the templates that are used on all of those wikis (especially the ones that put metadata onto pages in Semantic MediaWiki). This question may be too broad, but what are the best practices of sharing MediaWiki markup between wikis? Would it be possible to make it in "library fashion" somehow so I could put the templates in a certain repository? Another point of such an approach, I think, might be just sharing the templates world-wide, let's say, on GitHub/BitBucket/etc.
Any advices and answers are greatly appreciated! Thank you in advance!