Template:NewsItem: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>__NOTOC__ | <includeonly>__NOTOC__ __NOEDITSECTION__ | ||
__NOEDITSECTION__ | |||
<div style="display:none;"> | <div style="display:none;"> | ||
[[Has event date::{{{date|}}}]] | [[Has event date::{{{date|}}}]] | ||
| Line 14: | Line 13: | ||
[[Has event status::{{{status|Single-day}}}]] | [[Has event status::{{{status|Single-day}}}]] | ||
</div> | </div> | ||
<div class="news-card news-card--{{lc:{{{category|policy}}}}}"> | <div class="news-card news-card--{{lc:{{{category|policy}}}}} {{#ifeq:{{{summary|}}}||news-card--compact|}} {{#ifeq:{{{links|}}}||news-card--compact|}}"> | ||
<div class="news-card__header"> | <div class="news-card__header"> | ||
<div class="news-card__date">{{#time:j F Y|{{{date}}}}}</div> | <div class="news-card__date">{{#time:j F Y|{{{date}}}}}</div> | ||
| Line 20: | Line 19: | ||
</div> | </div> | ||
{{#if:{{{region_label|}}}|<div class="news-card__region">{{{region_label}}}</div>}} | {{#if:{{{region_label|}}}|<div class="news-card__region">{{{region_label}}}</div>}} | ||
<h3 class="news-card__title"> | |||
< | {{#if:{{{parent_story|}}} | ||
[[{{{page|{{ | |[[{{{parent_story}}}|{{{title|{{PAGENAME}}}}}]] | ||
</ | |{{#if:{{{page|}}} | ||
|{{{page}}}|{{{title|{{PAGENAME}}}}} | |||
|{{{title|{{PAGENAME}}}}} | |||
}} | |||
}} | |||
</h3> | |||
{{#if:{{{summary|}}}|<div class="news-card__summary">{{{summary}}}</div>}} | {{#if:{{{summary|}}}|<div class="news-card__summary">{{{summary}}}</div>}} | ||
{{#if:{{{links|}}}|<div class="news-card__footer"><div class="news-card__links">{{{links}}}</div></div>}} | {{#if:{{{links|}}}|<div class="news-card__footer"><div class="news-card__links">{{{links}}}</div></div>}} | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||