[#1039] Adding a reference section for the global twig variables
[#1039] Tweaks thanks to @stof and @WouterJ