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