Vorlage:Source code ref/Dokumentation
Zur Navigation springen
Zur Suche springen
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.
Verwendung
{{ source code ref |<current version> |<further comments> |noref=y/yes |noref=<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
Hinweise
- 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.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
Beispiele
Code | Result |
---|---|
|
Informationen stammen aus dem Desktop-Quellcode der Version 1.3.5.3. Es kann Ungenauigkeiten bis hin zu Inkorrektheiten geben, weil die aktuelle Desktopversion 1.4.4.9 ist. |
|
Informationen stammen aus dem Desktop-Quellcode der Version 1.3.0.1. Es kann Ungenauigkeiten bis hin zu Inkorrektheiten geben, weil die aktuelle Desktopversion 1.4.4.9 ist. |
|
Informationen stammen aus dem Desktop-Quellcode der Version 1.3.5.3, Funktion in Es kann Ungenauigkeiten bis hin zu Inkorrektheiten geben, weil die aktuelle Desktopversion 1.4.4.9 ist.
|
|
The thing takes three seconds to be done in normal mode and six seconds in Expert mode.[1] |