Template:NewsItem: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 9: | Line 9: | ||
[[Has parent story::{{{parent_story|}}}]] | [[Has parent story::{{{parent_story|}}}]] | ||
[[Has event status::{{{status|Single-day}}}]] | [[Has event status::{{{status|Single-day}}}]] | ||
</div> | </div><templatestyles src="Template:NewsItem/styles.css" /> | ||
< | <article class="news-card news-card--{{lc:{{{category|policy}}}}}"> | ||
< | <header class="news-card__header"> | ||
< | <time class="news-card__date">{{#time:j F Y|{{{date}}}}}</time> | ||
{{#if:{{{region_label|}}}|< | <div class="news-card__category-badge news-card__category-badge--{{lc:{{{category|policy}}}}}}"> | ||
{{{category|Policy}}} | |||
< | </div> | ||
{{#if:{{{summary|}}}|<div class=" | </header> | ||
{{#if:{{{links|}}}|<div class=" | |||
</ | {{#if:{{{region_label|}}}|<div class="news-card__region">{{{region_label}}}</div>}} | ||
<h1 class="news-card__title">{{{title}}}</h1> | |||
{{#if:{{{summary|}}}| | |||
<div class="news-card__summary">{{{summary}}}</div> | |||
}} | |||
<footer class="news-card__footer"> | |||
{{#if:{{{links|}}}|<div class="news-card__links">{{{links}}}</div>}} | |||
</footer> | |||
</article> | |||
</includeonly> | </includeonly> | ||
<noinclude> | |||
{{Documentation}} | |||
[[Category:News Templates]] | |||
</noinclude> | |||