Gaming
 

Template:Function

From Wikihack

[[Source:{{{1}}}#{{{2}}}|{{{2}}}]] in [[Source:{{{1}}}|{{{1}}}]]


This template can be used to reference a named element of the source code, provided that a proper marker is present; use {{sourcecode}} to reference a numbered line. The named element need not be a function; it just has to have a proper tag on the targeted page.

The syntax is {{function|filename|functionname}}. For example:

{{function|attrib.c|acurrstr}}

expands to:

acurrstr in attrib.c

This template may be used between <ref> and </ref> tags.