Difference between pages "Template:News" and "Widget:NewsInfo"

(Difference between pages)
 
(Created page with "<div class="media"><div class="pull-left"><img class="media-object img-circle" style="opacity: 0.5;" src="<!--{$icon_url|escape:'html'}-->" alt="<!--{$user|escape:'html'}-->">...")
 
Line 1: Line 1:
<noinclude>
+
<div class="media"><div class="pull-left"><img class="media-object img-circle" style="opacity: 0.5;" src="<!--{$icon_url|escape:'html'}-->" alt="<!--{$user|escape:'html'}-->"></div>
Use like so:
+
<div class="media-body" style="color: #555; font-weight: bold;">
 
+
<p><!--{$body|escape:'html'}--></p>
<pre>
+
<span style="color: #888"><!--{$date|escape:'html'}--> by <a href="/User:<!--{$user|escape:'html'}-->"><!--{$user|escape:'html'}--></a></span>
{{News
+
</div>
|Summary=Test News Item
+
</div>
|News Category=General
+
|Author=Drobbins
+
|Publication Status=Draft
+
|Publication Date=2014/10/16
+
|Icon=File:foobar.jpg
+
|News Format=Short (or Extended)
+
}}
+
</pre>
+
 
+
</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}}}}
+
__NOTITLE__
+
</div></div><div class="row"><div class="col-xs-12 col-sm-4 col-sm-push-8">
+
<p><b>{{#time:F j, Y|{{{Publication Date}}}}}</b></p>
+
<p>'''Author Bio''': {{#show: User:{{{Author|}}} | ?Bio }}</p>
+
</div><div class="col-xs-12 col-sm-8 col-sm-pull-4">
+
__NOEDITSECTION__
+
__NOTOC__
+
</includeonly>
+

Revision as of 23:09, October 22, 2014

by <a href="/User:"></a>