Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:MC/Java classpath/doc

Template page
Revision as of 04:26, 31 January 2026 by imported>Aloi4 (Added see also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation header Template:Shortcut This template is used to shorten a Template:W to the last name in the path, and puts the full path information inside a tooltip, which appears when hovered by the mouse cursor. This is useful when citing the game's source code in a reference.

Usage

<syntaxhighlight lang=wikitext inline>Template:Java classpath</syntaxhighlight>

  • Template:P – full path to the Java class.
  • Template:P optional – specify a text that takes place instead of the class name in the classpath.
  • Template:P optional – specify a mapping name if the classpath comes from a different mapping, other than the Mojang mapping, which is the default.

Examples

  • You can specify the classpath parameter with the full path to the Java class:
    <syntaxhighlight lang=wikitext inline>Template:Jcp</syntaxhighlight> results in Template:Java classpath.
  • You can specify an alias which appear in the text instead of the class name:
    <syntaxhighlight lang=wikitext inline>Template:Jcp</syntaxhighlight> results in Template:Java classpath.

See also


uk:Шаблон:Шлях класу Java/док