#{{{2}}}
To use:
{{IRC|name of channel, without # prefix|display text}}
e.g. {{IRC|social|social}} produces #social.
{{IRC|social|social}}