Forum:Hide template in ?namespace template?

Created for the first time a more complex template by altering the infobox template, it takes the pagename and looks up the chapter number in there to calculate previous; next pages and links them. This works fine when the template is used in the pages it was intended to, but in the template namespace itself it creates an error message what is to be expected. How can I prevent that the template is parsed at all there? Thats the template: w:c:sekirei:Template:Infobox_chapter.  Schlulou  (Talk  -  Cont)  23:45, June 10, 2010 (UTC)


 * I've added Includeonly tags round the two expressions as is used with Categories so they only work on the page the template is used on. Their do not appear to be any linked articles to go to with the forward / back links ? so see if its working as you desire -
 * There is a page in Help:Templates relating to templates & function proccessing that explains it but I cannot remember were it is (Also try the templates help on wikipedia as it has more info). - BulldozerD11 00:18, June 11, 2010 (UTC)