Template:News: Difference between revisions
From Jcastle.info
					No edit summary  | 
				No edit summary  | 
				||
| (43 intermediate revisions by the same user not shown) | |||
| Line 12: | Line 12: | ||
</pre>  | </pre>  | ||
Edit the page to see the template text.  | Edit the page to see the template text.  | ||
</noinclude><includeonly>  | </noinclude><includeonly>{{#set:NewsTitle={{{NewsTitle|}}}}}  | ||
=  | <p class="extractsummary3">{{#sub:{{{NewsBody|}}}|0|300}}</p>  | ||
{{{NewsDate|}}}  |     <div class="row">  | ||
        <div class="col-md-8">  | |||
=={{{NewsTitle}}}==  | |||
[[NewsDate::{{{NewsDate|}}}]]  | |||
[[NewsHighlightPhoto::{{{NewsHighlightPhoto|}}}|240px]]    | [[NewsHighlightPhoto::{{{NewsHighlightPhoto|}}}|240px]]    | ||
| Line 21: | Line 24: | ||
{{{NewsBody|}}}  | {{{NewsBody|}}}  | ||
{{#if:{{{CastlesReferenced|}}}|  | |||
{{#ask:  | {{#ask:  | ||
  {{{CastlesReferenced|}}}  |   {{{CastlesReferenced|}}}  | ||
  |?Japanese Name  |   |?Japanese Name  | ||
 |?Notes  | |||
  |link=none  |   |link=none  | ||
  |format=template  |   |format=template  | ||
  |template=newslist  |   |template=newslist  | ||
}}  | }}  | ||
{{#ask:  | {{#ask:  | ||
  {{{CastlesReferenced|}}}  |   {{{CastlesReferenced|}}}  | ||
  |?GPSLocation  |   |?GPSLocation  | ||
  |format=googlemaps  |   |format=googlemaps  | ||
  |  |   |type=terrain  | ||
  |height=  |  |icon=Darkred18.png  | ||
  |height=350px  | |||
}}  | |||
}}  | }}  | ||
</div>  | </div>  | ||
<div class="col-md-4">  | |||
<div class="card">  | |||
<h5 class="card-header">Recent News</h5>  | |||
<div class="card-body">  | |||
{{#ask:  | |||
 [[Category:News]]   | |||
 |?NewsDate#-F[M j, Y]  | |||
 |limit=20  | |||
 |sort=NewsDate  | |||
 |order=descending  | |||
 |format=template  | |||
 |template=newslist2  | |||
}}  | |||
  </div>  | |||
</div>  | </div>  | ||
<div class="  | </div>  | ||
</div>  | |||
<div class="row">  | |||
<div class="col-md-12">  | |||
<vote />  | |||
<comments />  | |||
</div>  | |||
</div>  | |||
__NOTITLE__  | __NOTITLE__  | ||
__NOTOC__  | |||
__NOEDITSECTION__  | |||
[[Category:News]]  | [[Category:News]]  | ||
</includeonly>  | </includeonly>  | ||
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.
