Template:News: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 13: Line 13:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{{#set:NewsTitle={{{NewsTitle|}}}}}
</noinclude><includeonly>{{#set:NewsTitle={{{NewsTitle|}}}}}
<p class="extractsummary3">{{#sub:{{{NewsBody|}}}|0|300}}</p>
    <div class="row">
        <div class="col-md-8">
=={{{NewsTitle}}}==
=={{{NewsTitle}}}==
[[NewsDate::{{{NewsDate|}}}]]
[[NewsDate::{{{NewsDate|}}}]]
[[NewsHighlightPhoto::{{{NewsHighlightPhoto|}}}|240px]]  
[[NewsHighlightPhoto::{{{NewsHighlightPhoto|}}}|240px]]  
{{{NewsBody|}}}
{{{NewsBody|}}}


<div class="container">   
 
    <div class="row">
{{#if:{{{CastlesReferenced|}}}|
        <div class="col-md-6">
{{#ask:
{{#ask:
  {{{CastlesReferenced|}}}
  {{{CastlesReferenced|}}}
Line 29: Line 34:
  |template=newslist
  |template=newslist
}}
}}
{{#ask:
{{#ask:
  {{{CastlesReferenced|}}}
  {{{CastlesReferenced|}}}
Line 36: Line 40:
  |type=terrain
  |type=terrain
  |icon=Darkred18.png
  |icon=Darkred18.png
|width=450px
  |height=350px
  |height=350px
}}
}}
}}
</div>
</div>


<div class="col-md-6">
<div class="col-md-4">
 
<div class="card">
<h5 class="card-header">Recent News</h5>
<div class="card-body">
{{#ask:
{{#ask:
  [[Category:News]]  
  [[Category:News]]  
  |?NewsDate#-F[M j]
  |?NewsDate#-F[M j, Y]
  |limit=5
  |limit=20
  |sort=NewsDate
  |sort=NewsDate
  |order=descending
  |order=descending
  |format=template
  |format=template
  |template=newslisthome
  |template=newslist2
}}
}}
  </div>
</div>
</div>
</div>
</div>
</div>
</div>


<div class="clear fix"> &nbsp; </div>
 
<div class="row">
<div class="col-md-12">
<vote />
<vote />
<comments />
<comments />
</div>
</div>
__NOTITLE__
__NOTITLE__
__NOTOC__
__NOTOC__

Latest revision as of 22:26, 1 December 2024

This is the "news" template. It should be called in the following format:

{{news
|NewsTitle=
|NewsDate=
|NewsHighlightPhoto=
|NewsBody=
|CastlesReferenced=
}}

Edit the page to see the template text.