Templating Grafana using promethues

Can any ony one help me out in creating templates using promethues .ihave gone through the doc i am un able get it

Can you describe what you are trying to do? Or describe what you do not understand (so that we can improve the documentation).

Here is the demo dashboard for Prometheus and templating (it might help to look at an example):

http://play.grafana.org/dashboard/db/3-promcon-templating?orgId=1