Template:NewsItemCard: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Created page with "<includeonly> {{#vardefine:page | {{{page|{{PAGENAME}}}}} }} {{#vardefine:type_raw | {{{event_type|{{#show:{{#var:page}}|?Has event type}}}}} }} {{#vardefine:type | {{lc:{{#var:type_raw}}}} }} {{#vardefine:date_raw | {{{event_date|{{#show:{{#var:page}}|?Has event date}}}}} }} {{#vardefine:date_fmt | {{#time:F j, Y|{{#var:date_raw}}}} }} {{#vardefine:region_gr | {{{growing_region|{{#show:{{#var:page}}|?Has growing region}}}}} }} {{#vardefine:region_app | {{{appellation|..." |
Eloise Zomia (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="news-card news-card--{{lc:{{{Has event type|community}}}}}"> | |||
<div class="news-card news-card--{{ | |||
}}"> | |||
<div class="news-card__header"> | <div class="news-card__header"> | ||
<div class="news-card__date">{{ | <div class="news-card__date"> | ||
<div class="news-card__category-badge news-card__category-badge--{{ | {{{Has event date|}}} | ||
</div> | |||
<div class="news-card__category-badge news-card__category-badge--{{lc:{{{Has event type|community}}}}}"> | |||
{{{Has event type|Community}}} | |||
{{ | |||
</div> | </div> | ||
</div> | </div> | ||
{{#if:{{ | {{#if:{{{Has growing region|}}}{{{Has country|}}}| | ||
<div class="news-card__region"> | <div class="news-card__region"> | ||
{{#if:{{ | {{#if:{{{Has growing region|}}}|[[{{{Has growing region}}}]]}} | ||
{{#if:{{ | {{#if:{{{Has country|}}}|{{#if:{{{Has growing region|}}}| · }}[[{{{Has country}}}]]}} | ||
</div> | </div> | ||
}} | }} | ||
<h3 class="news-card__title">[[{{ | <h3 class="news-card__title"> | ||
[[{{{fullpage name}}}|{{{Has event headline|{{PAGENAME}}}}}]] | |||
</h3> | |||
{{#if:{{ | {{#if:{{{Has event summary|}}}| | ||
<div class="news-card__summary"> | <div class="news-card__summary"> | ||
{{ | {{{Has event summary}}} | ||
</div> | </div> | ||
}} | }} | ||
{{#if:{{{Has source URL|}}}| | |||
<div class="news-card__footer"> | <div class="news-card__footer"> | ||
<div class="news-card__links"> | <div class="news-card__links"> | ||
[ | [{{{Has source URL}}} Source] | ||
{{#if:{{{ | {{#if:{{{Has event page|}}}| • [[{{{Has event page}}}|Full story]]}} | ||
</div> | </div> | ||
</div> | </div> | ||
}} | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||