Template:Source code ref
This template is i18n-ready, which means it is easy to localize for different languages. Please see i18n & l10n for Templates to learn more. See Template:Source code ref/l10n for the localization of this template. |
[purge]
This template can be used to mark information as being taken from Terraria's source code. It prints a short, modifiable text wrapped in a <ref>
tag.
Contents
Usage
{{source code ref | v = <current version> | <further comments> | noref = y/yes | name = <custom <ref> name> }}
- v
Set it to the current version of Terraria. This helps identifying potentially outdated information in future updates.
- First unnamed parameter
Can be used to add further comments, like method names or other specifications.
- noref
Set to
/y
to suppress the yes
<ref>
tag.
- name
Can be used to specify a custom name for the <ref>, so that a <ref> can be reused several times (via <ref name="<name>" />
). Only has an effect if
is not set.
noref
Notes
- Although all parameters are optional,
should always be set.v
- If the version passed in
is different from the current Desktop version (determined via {{version|desktop}}), a note will be appended. The page will furthermore be categorized in Category:Pages with information based on outdated versions of Terraria's source code.v
- If there is at least one call of
without{{source code ref}}
on the page, a new section "References" or "Footnotes" with {{reflist}} needs to be added.noref
Examples
Code | Result |
---|---|
|
Information taken from the ![]() ![]() |
|
Information taken from the ![]() ![]() |
|
Information taken from the ![]() in There may be inaccuracies, as the current ![]() |
|
The thing takes three seconds to be done in normal mode and six seconds in Expert mode.[1] |