Template talk:Sourcecode

From NetHackWiki
Jump to navigation Jump to search

This template is meant to be used between <ref> and </ref> tags, and these prevent the <noinclude> tag from working as expected; the text not meant to be included ends up being included anyway (and so does the <noinclude> tag). It is therefore necessary to put the instructions for this template on the talk page.

Use this template to create references to the NetHack source code. Syntax is <ref>{{sourcecode|filename|line}}</ref>. For example: <ref>{{sourcecode|dog.c|12}}</ref>.

Remember to add a References section and a <references/> tag at the end of the article.--Ray Chason 19:44, 17 June 2007 (UTC)

The trouble was that I wasn't closing the noinclude section. The instructions are now on the template page where they belong.--Ray Chason 20:43, 17 June 2007 (UTC)