Customization. The page that delivers the database
content is a
special page, and this would allow for the end user to define the top
template like:
You would probably be better off using Mediawiki's message system,
rather than templates. Then it can be customised using the Mediawiki:
namespace. There's some instructions for doing that on
http://www.mediawiki.org/wiki/Manual:Special_pages