Updated templates.md

Added

Moved @include syntax and added text about its behavior
Added @elseif to the if statements
Added note about @extends need to be absolutely first in a template