While reading the DokuWiki documentation I found information about namespace templates. These are files that I can create for a specific namespace such as :discography:albums, :discography ingles, :discography ongs and so on.
What this means is that I can write base sceleton pages that "fill the void" when starting a new page. The only thing that needs to be agreed on is what things are included, ie. the headers and maybe some generic text to help getting started.
Namespace templates
Namespace templates
Now stuck in programming JavaScript