Template:Java/doc: Difference between revisions

Content deleted Content added
Created as near-stub
 
update documentation
 
(One intermediate revision by one other user not shown)
Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
This template serves to format sampleshort Javainline codesamples (fairly)of uniformlyJava code, performing some [[syntax highlighting]] and adding the page to the [[Wikipedia:hidden category|hidden category]] "[[:Category:Articles with example Java code|Articles with example Java code]]".
 
It uses <code><nowiki>{{#tag:sourcesyntaxhighlight|{{{1}}}|lang=Java|encloseinline="none"1}}</nowiki></code> to mark the code as such. '' ''' To be added: ''' Implications of that ''
 
As at 2014-12-30 it appears to format {{Java|Readable}} and {{Java|Serializable}} inconsistently, namely black and blue respectively.
Line 12:
 
}}</includeonly>
 
<templatedata>
{
"description": "Format and tag Java code",
"params": {
"1": {
"description": "The Java code to be formatted",
"required": true,
"label": "Java code"
}
}
}
</templatedata>