refactoring towards dynamic mediawiki template inclusion and adjusting the default table structure and mappings