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

Usage دچی‌ین

{{sup sub | superscript | subscript}}

To get: D2g

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