Difference between revisions of "Template:NewsItem"

From RevSpace
Jump to: navigation, search
 
Line 15: Line 15:
 
{{#if:{{{Image|}}}|[[Image:{{{Image}}}{{!}}thumb]]}}
 
{{#if:{{{Image|}}}|[[Image:{{{Image}}}{{!}}thumb]]}}
  
{{#set:NewsItem_Image={{{Image}}}}}
+
{{#set:NewsItem_Image={{#if:{{{Image|}}}|{{{Image}}}}}}}
 
{{#set:NewsItem_Info={{{Info}}}}}
 
{{#set:NewsItem_Info={{{Info}}}}}
 
{{#set:NewsItem_Name={{{Name}}}}}
 
{{#set:NewsItem_Name={{{Name}}}}}
  
 
<includeonly>[[Category:NewsItem|{{{Name}}}]]</includeonly>
 
<includeonly>[[Category:NewsItem|{{{Name}}}]]</includeonly>

Latest revision as of 16:41, 16 January 2012

Use this template in the following way on event pages:

 {{NewsItem
 |Name=News Title
 |Date=2011-12-12
 |Info=Intro to the newsitem
 |Image=Example.jpg
 }}


{{{Info}}}