Template:NewsArticle: Difference between revisions

No edit summary
No edit summary
Line 44: Line 44:
   <div class="news-header">
   <div class="news-header">
     <span class="news-date">{{{date|{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}}}}</span>
     <span class="news-date">{{{date|{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}}}}</span>
     <span class="news-author">{{#if:{{{author|}}}|By {{{author}}}}}</span>
     <span class="news-author">By {{{author}}}</span>
   </div>
   </div>


   <div class="news-body">
   <div class="news-body">
     {{#if:{{{image|}}}|[[File:{{{image}}}|thumb|{{{image_caption|News Image}}}]]}}
     [[File:{{{image}}}|thumb|{{{image_caption|News Image}}}]]{{!-- The image and caption will appear blank if no image is provided --}}
     <p>{{{content|This is where the main news article content goes. Replace this with your actual news text.}}}
     <p>{{{content|This is where the main news article content goes. Replace this with your actual news text.}}}
     </p>
     </p>
Line 55: Line 55:
   <div class="news-footer">
   <div class="news-footer">
     <small>
     <small>
       {{#if:{{{categories|}}}|Categories: {{{categories}}}<br />}}
       Categories: {{{categories}}}<br />
       {{#if:{{{tags|}}}|Tags: {{{tags}}}<br />}}
       Tags: {{{tags}}}<br />
       {{#if:{{{source|}}}|Source: {{{source}}}}}
       Source: {{{source}}}
     </small>
     </small>
   </div>
   </div>


</div>
</div>
</includeonly>