I have a basic page with the URL alias "empezando-ahorrar" and I need to create a node template for it but I can't use the nid. I've made it work when the alias has no hyphen (empezandoahorrar) but I can't make it work with the hyphen.
When the URL alias has no hyphen, using node--empezandoahorrar.tpl.php works perfect. When the alias has the hyphen, using node--empezando-ahorrar.tpl.php doesn't work.
Are you using Devel? You can use a dpm() in your code to see if the URL path in the variable is different from what you expect.