Template:News: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(9 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="row">
         <div class="col-md-8">
         <div class="col-md-8">
Line 24: Line 26:


{{#if:{{{CastlesReferenced|}}}|
{{#if:{{{CastlesReferenced|}}}|
A|B
{{#ask:
{{{CastlesReferenced|}}}
|?Japanese Name
|?Notes
|link=none
|format=template
|template=newslist
}}
{{#ask:
{{{CastlesReferenced|}}}
|?GPSLocation
|format=googlemaps
|type=terrain
|icon=Darkred18.png
|height=350px
}}
}}
}}
</div>
</div>
Line 30: Line 47:
<div class="col-md-4">
<div class="col-md-4">


<div class="panel panel-info" style="margin:10px">
<div class="card">
<div class="panel-heading">'''Recent News''' </div>
<h5 class="card-header">Recent News</h5>
<div class="panel-body">
<div class="card-body">
{{#ask:
{{#ask:
  [[Category:News]]  
  [[Category:News]]  
  |?NewsDate#-F[M j]
  |?NewsDate#-F[M j, Y]
  |limit=20
  |limit=20
  |sort=NewsDate
  |sort=NewsDate
Line 47: Line 64:
</div>
</div>
</div>
</div>


<div class="row">
<div class="row">

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.