Difference between pages "Template:News" and "User talk:Anak1n"

(Difference between pages)
 
(Created page with "great write up of ghost! ~~~~")
 
Line 1: Line 1:
<noinclude>
+
great write up of ghost!  [[User:Threesixes|Threesixes]] ([[User talk:Threesixes|talk]]) 22:41, January 21, 2015 (UTC)
Use like so:
+
 
+
<pre>
+
{{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>
+
 
+
</noinclude><includeonly>
+
<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12">
+
= {{PAGENAME}} =
+
{{#if:{{{Deprecated By|}}}|{{Important|This news item is not current. You can find more information on this topic at [[Deprecated By::{{Deprecated By}}]].}}}}
+
{{#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}}|80}}|http://www.gravatar.com/avatar/{{#show: User:{{{Author}}} | ?Gravatar MD5}}/?s=80&d=retro&r=g}}|date={{#time:F j, Y|{{{Publication Date}}}}}
+
}}}}
+
</div></div><div class="row"><div class="col-xs-12">
+
</includeonly>
+

Latest revision as of 22:41, January 21, 2015

great write up of ghost! Threesixes (talk) 22:41, January 21, 2015 (UTC)