When I try it from the top of the page, I only see {{templatename}} at the editing section(but I actually want to see the template contents).
That's the correct behaviour. If you want the contents of templatename to be inserted into the source code of the currentpage use {{subst:templatename}} instead of {{templatename}} (subst stands for substitute). If you do this, currentpage won't be updated when you edit templatename.