Predložak:Sup sub

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

{{Sup_sub
  | superscript
  | subscript
}}


So to get:            D2g
You would use:  D{{sup_sub|2|g}}