Use the script service in a few places instead of the translation macro because the translations contain wiki syntax...
Macro placeholder is visible when macro is inside a heading.