The \withargs command provides a clean way to populate a
template (containing #1, #2, etc.) using LaTeX argument
substitution. It also allows you to carefully control argument
expansion using a LaTeX3-style argument specification. Uses
range from creating readable string templates (akin to C's
printf function) to performing otherwise complex token-list
manipulation.