Added example of elseif in templating docs

If statements are shown under control structures in the templating documentation, however the example does not include elseif. This pull request changes the if-else example to an if-elseif-else example.