This template returns {{{1}}} if {{{2}}} is either not specified or set to AD. Otherwise it returns {{{1}}} {{{2}}} or, iff {{{3}}} is specified, {{{1}}} {{{3}}}.