[1.6.x] Fixed #21747 -- Added {% elif %} to template topics guide.

Thanks gcc for the suggestion.

Backport of 9e5033b302 from master