Difference between revisions of "User:Bulwersator"

From NetHackWiki
Jump to navigation Jump to search
(Redirected page to Template:Refsrc)
 
Line 1: Line 1:
Essentially a combination of references footer tags and [[:Template:Sourcecode]].
+
#REDIRECT[[Template:Refsrc]]
 
 
<nowiki>{{refsrc|file.c|15}}</nowiki>
 
will produce this footnote,{{refsrc|file.c|15}} and
 
 
 
<nowiki>{{refsrc|file.c|15|version=dummy}}</nowiki>
 
will produce this second one.{{refsrc|file.c|15|version=dummy}}
 
 
 
To link to the UnNetHack source, use
 
<nowiki>{{refsrc|src/mkroom.c|123|unnethack=1406}}</nowiki>
 
This will produce this third reference.{{refsrc|src/mkroom.c|123|unnethack=1066}}
 
 
 
(Currently, UnNetHack source references have to specify the directory.)
 
 
 
<nowiki>{{refsrc|file.c|15|comment=lorem ipsum dolor sit amet}}</nowiki>
 
will produce this fourth one.{{refsrc|file.c|15|comment=lorem ipsum dolor sit amet}}
 
 
 
You may also specify a <tt>name</tt> parameter so you can reference the same location in the code from multiple locations in the text, like this:
 
<nowiki>{{refsrc|engrave.c|814|name=venom_letter}} [some other text...] <ref name='venom_letter'/></nowiki>
 
This will produce output like the following:{{refsrc|engrave.c|814|name=venom_letter}} [some other text...] <ref name='venom_letter'/>
 
 
 
==References==
 
<references/>
 
[[Category:Templates|{{PAGENAME}}]]
 

Latest revision as of 12:30, 19 April 2013

Redirect to: