User:Bulwersator

From NetHackWiki
Revision as of 12:29, 19 April 2013 by Bulwersator (talk | contribs)
Jump to navigation Jump to search

Essentially a combination of references footer tags and Template:Sourcecode.

{{refsrc|file.c|15}}

will produce this footnote,[1] and

{{refsrc|file.c|15|version=dummy}}

will produce this second one.[2]

To link to the UnNetHack source, use

{{refsrc|src/mkroom.c|123|unnethack=1406}}

This will produce this third reference.[3]

(Currently, UnNetHack source references have to specify the directory.)

{{refsrc|file.c|15|comment=lorem ipsum dolor sit amet}}

will produce this fourth one.[4]

You may also specify a name parameter so you can reference the same location in the code from multiple locations in the text, like this:

{{refsrc|engrave.c|814|name=venom_letter}} [some other text...] <ref name='venom_letter'/>

This will produce output like the following:[5] [some other text...] [5]

References