Difference between revisions of "Template:News"

(One intermediate revision by the same user not shown)
Line 20: Line 20:
 
{{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}}
 
{{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}}
 
{{#ifeq:{{{News Format|}}}|Extended|
 
{{#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}}
+
{{#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}}}}}
 
}}}}
 
}}}}
<p><b>{{#time:F j, Y|{{{Publication Date}}}}}</b></p>
+
</div></div><div class="row"><div class="col-xs-12">
__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>
 
</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)
}}