Template:Dizzyref
Jump to navigation
Jump to search
Essentially a combination of references footer tags and Template:Sourcecode.
{{refsrc|allmain.c|42}}
will produce this footnote,[1] and
{{refsrc|allmain.c|42|version=SLASH'EM 0.0.7E7F2}}
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|monmove.c|219|comment=fleeing monsters stop holding you}}
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]
See also
- Template:Reffunc - reference linking to function rather than to the line