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

{{sup sub | superscript | subscript}}

To get: D2
g

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