Template:Java/doc

From English Wikipedia @ Freddythechick

This is the current revision of this page, as edited by imported>The wub at 00:04, 28 June 2020 (update documentation). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

This template serves to format short inline samples of Java code, performing some syntax highlighting and adding the page to the hidden category "Articles with example Java code".

It uses {{#tag:syntaxhighlight|{{{1}}}|lang=Java|inline=1}} to mark the code as such.

As at 2014-12-30 it appears to format <syntaxhighlight lang="Java" inline="1">Readable</syntaxhighlight> and <syntaxhighlight lang="Java" inline="1">Serializable</syntaxhighlight> inconsistently, namely black and blue respectively.


Format and tag Java code

Template parameters

ParameterDescriptionTypeStatus
Java code1

The Java code to be formatted

Unknownrequired