Vorlage:Source code ref/Dokumentation

Aus Terraria Wiki
Zur Navigation springen Zur Suche springen
Important.svg
Diese Seite ist nicht oder unvollständig übersetzt.
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung.

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/yes to suppress the <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 noref is not set.

Hinweise

  • Although all parameters are optional, v should always be set.
  • If the version passed in v is different from the current Desktop version (determined via {{version|desktop}}), a note will be appended.
  • If there is at least one call of {{source code ref}} without noref on the page, a new section "References" or "Footnotes" with {{reflist}} needs to be added.

Beispiele

Code Result
{{source code ref|v=1.3.5.3|noref=y}} Informationen stammen aus dem Desktopversion Desktop-Quellcode der Version 1.3.5.3. Es kann Ungenauigkeiten bis hin zu Inkorrektheiten geben, weil die aktuelle Desktopversion Desktopversion 1.4.4.9 ist.
{{source code ref|v=1.3.0.1|noref=y}} Informationen stammen aus dem Desktopversion Desktop-Quellcode der Version 1.3.0.1. Es kann Ungenauigkeiten bis hin zu Inkorrektheiten geben, weil die aktuelle Desktopversion Desktopversion 1.4.4.9 ist.
{{source code ref|v=1.3.5.3|Funktion {{code|Foo()}} in {{code|Bar.cs}}|noref=y}} Informationen stammen aus dem Desktopversion Desktop-Quellcode der Version 1.3.5.3, Funktion Foo() in Bar.cs Es kann Ungenauigkeiten bis hin zu Inkorrektheiten geben, weil die aktuelle Desktopversion Desktopversion 1.4.4.9 ist.
The thing takes three seconds to be done in normal mode and six seconds in Expert mode.{{source code ref|v=1.3.0.1|Funktion {{code|Foo()}} in {{code|Bar.cs}}}} The thing takes three seconds to be done in normal mode and six seconds in Expert mode.[1]

Verweise

  1. Informationen stammen aus dem Desktopversion Desktop-Quellcode der Version 1.3.0.1, Funktion Foo() in Bar.cs Es kann Ungenauigkeiten bis hin zu Inkorrektheiten geben, weil die aktuelle Desktopversion Desktopversion 1.4.4.9 ist.