Template:NewsArticle: Difference between revisions

From SoS Ledger
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:
| colspan="2" style="padding: 0.4em 0.6em;" |
| colspan="2" style="padding: 0.4em 0.6em;" |
<code><nowiki>
<code><nowiki>
{{subst:NewsArticle}}
{{subst:NewsArticle
</nowiki></code>
|}
 
{{subst:News
| title = News Title
| title = News Title
| date = July 27, 2025
| date = July 27, 2025
| author = Author's Name
| author = Author's Name
| image = Relevant_Picture.jpg
| image = Relevant_Image.jpg
| image_caption = Image Captions
| image_caption = Image captions
| content = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
| content = Contents of news article
| categories = News
| categories = News
| tags = sos, state 123, event, battle
| tags = enter, tags, here
| source = Source (if any)
| source = Source, if any
}}
}}
</nowiki></code>
|}
== News Title ==
<div class="news-template">
  <div class="news-header">
    <span class="news-date">July 27, 2025</span>
    <span class="news-author">By Author's Name</span>
  </div>
  <div class="news-body">
    [[File:Relevant_Picture.jpg|thumb|Image Captions]]{{!-- The image and caption will appear blank if no image is provided --}}
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </p>
  </div>
  <div class="news-footer">
    <small>
      Tags: sos, state 123, event, battle
      Source: Source (if any)
    </small>
  </div>
</div>
[[Category:News]]
</noinclude>
</noinclude>


Line 40: Line 61:
   <div class="news-footer">
   <div class="news-footer">
     <small>
     <small>
      Categories: {{{categories}}}<br />
       Tags: {{{tags}}}
       Tags: {{{tags}}}<br />
       Source: {{{source}}}
       Source: {{{source}}}
     </small>
     </small>
Line 47: Line 67:


</div>
</div>
</includeonly><noinclude>
[[Category:News]]
{{Documentation}}
</noinclude>

Latest revision as of 21:12, 27 July 2025

Template Usage
To use this template effectively, please copy the code below and paste it where needed:

{{subst:NewsArticle | title = News Title | date = July 27, 2025 | author = Author's Name | image = Relevant_Image.jpg | image_caption = Image captions | content = Contents of news article | categories = News | tags = enter, tags, here | source = Source, if any }}

News Title

[edit source]
   July 27, 2025
   By Author's Name
File:Relevant Picture.jpg
Image Captions
Template:!-- The image and caption will appear blank if no image is provided --

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.