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

(Difference between pages)
 
 
Line 1: Line 1:
 +
<noinclude>
 +
Use like so:
 +
 +
<pre>
 
{{News
 
{{News
|Summary=This is a test news item with a summary of a couple of sentences. It should be representative of a typical news item.
+
|Summary=Test News Item
 
|News Category=General
 
|News Category=General
 
|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
 
}}
 
}}
Test!
+
</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|}}}}}
 +
{{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}}
 +
__NOTITLE__
 +
</div></div><div class="row"><div class="col-xs-12 col-sm-4 col-sm-push-8">
 +
<p><b>{{{Publication Date|}}}</b></p>
 +
<p>{{#show: User:{{{Author|}}} | ?Bio }}</p>
 +
</div><div class="col-xs-12 col-sm-8 col-sm-pull-4">
 +
</includeonly>

Revision as of 04:48, October 20, 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
}}