Forum:How do i make a template.when i do mine they never work

i can't get a template to work,i'v done everything to make it woerk but it allways turns up wrong

i included and image(on the side) to show what it keeps doing


 * Make sure that your Charcat template doesn't contain any references to itself. -- 02:41, June 6, 2010 (UTC)

i don't think it contains anything references to its self - tinyclaw
 * Where is your template located? Let me look at it. -- 02:48, June 6, 2010 (UTC)

it can be found here http://wsotf.wikia.com/wiki/Template:Charcat but its now doing something diffrent to befor -tinyclaw
 * Yes, it is referring to itself. Where did you get this template?  What did you want it to look like? -- 02:56, June 6, 2010 (UTC)

i got it from another wiki ,wich i wanted it to look like http://warriors.wikia.com/wiki/Adderfang
 * OK, you need to copy the code from the template page, not the article. I'll copy it over correctly this time so you get the idea. -- 03:01, June 6, 2010 (UTC)

ok thankyou - tinyclaw
 * No problem, let me know if you have any questions. -- 03:07, June 6, 2010 (UTC)