Difference between pages "News:Boot-update-1.7.0 released, masked for testing" and "Template:News"

(Difference between pages)
m (Drobbins moved page News:Test to News:Boot-update-1.7.0 released, masked for testing without leaving a redirect)
 
 
Line 1: Line 1:
 +
<noinclude>
 +
Use like so:
 +
 +
<pre>
 
{{News
 
{{News
|Summary=This new version of boot-update contains serial terminal support and lilo fixes.
+
|Summary=Test News Item
|News Format=Short
+
|News Category=General
|News Category=Packages
+
 
|Author=Drobbins
 
|Author=Drobbins
|Publication Status=Published
+
|Publication Status=Draft
 
|Publication Date=2014/10/16
 
|Publication Date=2014/10/16
|Icon=
+
|Icon=File:foobar.jpg
 +
|News Format=Short (or Extended)
 
}}
 
}}
 +
</pre>
  
{{NewsFooter}}
+
</noinclude><includeonly>
 +
<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12">
 +
= {{PAGENAME}} =
 +
{{#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}}}}}
 +
{{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}}
 +
{{#ifeq:{{{News Format|}}}|Extended|
 +
{{#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}}}}}
 +
}}}}
 +
</div></div><div class="row"><div class="col-xs-12">
 +
</includeonly>

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)
}}