Template:Languages Characters

 {{#if:{{{bg|}}}|{{#language:bg}}

Usage
Old format: Anakin

New format:

Output: