{{{1}}}{{{2}}}

Usage

reagh

{{sup sub | superscript | subscript}}

To get: D2g

You would use: D{{sup sub|2|g}}