Template:Factorial

{{subst:#if:x|{{subst:factorial!|{{{1}}}|1}}}}

Substituting this template produces one or more new substitution template calls, allowing recursive change of a page, see m:Help:Recursive conversion of wikitext.