Difference between pages "Package:Java SE Development Kit (JDK)" and "Template:News"

(Difference between pages)
(update)
 
 
Line 1: Line 1:
{{Ebuild
+
<noinclude>
|Summary=Oracle's Java SE Development Kit -- Java runtime, compiler, etc.
+
Use like so:
|CatPkg=dev-java/oracle-jdk-bin
+
 
|Maintainer=
+
<pre>
|Homepage=http://www.oracle.com/technetwork/java/javase/overview/index.html
+
{{News
 +
|Summary=Test News Item
 +
|News Category=General
 +
|Author=Drobbins
 +
|Publication Status=Draft
 +
|Publication Date=2014/10/16
 +
|Icon=File:foobar.jpg
 +
|News Format=Short (or Extended)
 
}}
 
}}
 +
</pre>
  
You can install the free icedtea jdk or Oracle's version.
+
</noinclude><includeonly>
Therefore we have a virtual package called ''virtual/jdk''. By default it will install the icedtea version.
+
<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12">
 
+
= {{PAGENAME}} =
== Installation ==
+
{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Icon={{{Icon|}}}|Publication Date={{{Publication Date|}}}|News Format={{{News Format}}}}}
<console>
+
{{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}}
###i## emerge -a virtual/jdk
+
{{#ifeq:{{{News Format|}}}|Extended|
</console>
+
{{#widget:NewsInfo|body={{{Summary|}}}|user={{{Author|}}}|icon_url={{#if:{{{Icon|}}}|{{filepath:{{#sub:{{{Icon}}}|5}}|64}}|http://www.gravatar.com/avatar/{{#show: User:{{{Author}}} | ?Gravatar MD5}}/?s=64&d=retro&r=g}}|date={{#time:F j, Y|{{{Publication Date}}}}}
 
+
}}}}
{{PageNeedsUpdates}}
+
</div></div><div class="row"><div class="col-xs-12">
#REDIRECT [[Installing Java]]
+
</includeonly>
{{EbuildFooter}}
+

Revision as of 00:10, October 23, 2014

Use like so:

{{News
|Summary=Test News Item
|News Category=General
|Author=Drobbins
|Publication Status=Draft
|Publication Date=2014/10/16
|Icon=File:foobar.jpg
|News Format=Short (or Extended)
}}