Template:NewsItem: Difference between revisions

From RevSpace
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 5: Line 5:
   |Name=News Title
   |Name=News Title
   |Date=2011-12-12
   |Date=2011-12-12
   |Info=Text of the newsitem
   |Info=Intro to the newsitem
  |Abstract=Short abstract (one paragraph)
   |Image=Example.jpg
   |Image=Example.jpg
   <nowiki>}}</nowiki>
   <nowiki>}}</nowiki>
Line 12: Line 11:
</noinclude>
</noinclude>


''[[PageName::{{PAGENAME}}]]''
{{#if:{{{Date|}}}|[[NewsItem_Date::{{{Date}}}]] - }} {{{Info}}}


{{#if:{{{Date|}}}|[[NewsItem_Date::{{{Date}}}]] - }} [[NewsItem_Name::{{{Info}}}]]  
{{#if:{{{Image|}}}|[[Image:{{{Image}}}{{!}}thumb]]}}


{{#if:{{{Image|}}}|[[Image:{{{Image}}}{{!}}thumb]]}}
{{#set:NewsItem_Image={{#if:{{{Image|}}}|{{{Image}}}}}}}
{{#set:NewsItem_Info={{{Info}}}}}
{{#set:NewsItem_Name={{{Name}}}}}


<includeonly>[[Category:NewsItem|{{{Name}}}]]</includeonly>
<includeonly>[[Category:NewsItem|{{{Name}}}]]</includeonly>

Latest revision as of 15: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}}}