Template:Source code ref/doc

This template can be used to mark information as being taken from Terraria&#39;s source code. It prints a short, modifiable text wrapped in a  tag.

Usage
Set it to the version of Terraria from which the information was taken. This is important because the game and source code change over time, and it helps identifying potentially outdated information in future updates.
 * v

Setting this parameter signifies that the information is intentionally taken from an outdated version of Terraria's source code, e.g. for historical pieces of trivia.
 * old

Suppresses all textual output and only categorizes the page, if necessary (see notes). This is useful to track the "up-to-dateness" of pieces of information that are not visible in the article text. If both $old and $onlycate are set, then the template has no effect at all.
 * onlycate

If there is a specific method, class, struct, field, property, event, or constant that the information was taken from, its name (including full namespace) can be passed to this parameter. This is useful for an automatic, standardized formatting and localization. Multiple of these parameters can be used together, and each one can hold multiple names, separated by a slash (/). None of these parameters has any effect if the first unnamed parameter is set.
 * method, class, struct, field, property, event, constant

Can be used to add further comments to the information passed in $method/$class/etc. Has no effect if the first unnamed parameter is set.
 * t

Generally, all relevant information should be provided in $method/$class/etc. and optionally $t. However, it may be necessary to use an entirely custom text, in which case this parameter can be used. It overrides both $method/$class/etc. and $t.
 * First unnamed parameter

Set to y/yes to suppress the  tag.
 * noref

Can be used to specify a custom name for the &lt;ref&gt;, so that a &lt;ref&gt; can be reused several times (via ). Has no effect if $noref is set.
 * name