Toggle menu
17
24
14
1.7K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:NewsItem: Difference between revisions

Template page
No edit summary
No edit summary
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>__NOTOC____NOEDITSECTION__<div style="display:none;">
<includeonly>__NOTOC__ __NOEDITSECTION__
<div style="display:none;">
[[Has event date::{{{date|}}}]]
[[Has event date::{{{date|}}}]]
[[Has event category::{{{category|}}}]]
[[Has event category::{{{category|}}}]]
[[Has event headline::{{{title|}}}]]
[[Has event summary::{{{summary|}}}]]
[[Has gene pool::{{{gene_pool|}}}]]
[[Has gene pool::{{{gene_pool|}}}]]
[[Has growing region::{{{growing_region|}}}]]
[[Has growing region::{{{growing_region|}}}]]
Line 9: Line 12:
[[Has parent story::{{{parent_story|}}}]]
[[Has parent story::{{{parent_story|}}}]]
[[Has event status::{{{status|Single-day}}}]]
[[Has event status::{{{status|Single-day}}}]]
</div><templatestyles src="Template:NewsItem/styles.css" />
</div>
<article 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|}}">
  <header class="news-card__header">
<div class="news-card__header">
    <time class="news-card__date">{{#time:j F Y|{{{date}}}}}</time>
<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}}}</div>
      {{{category|Policy}}}
</div>
    </div>
{{#if:{{{region_label|}}}|<div class="news-card__region">{{{region_label}}}</div>}}
  </header>
<h3 class="news-card__title">
 
{{#if:{{{parent_story|}}}
  {{#if:{{{region_label|}}}|<div class="news-card__region">{{{region_label}}}</div>}}
|[[{{{parent_story}}}|{{{title|{{PAGENAME}}}}}]]
 
|{{#if:{{{page|}}}
  <h1 class="news-card__title">{{{title}}}</h1>
  |{{{page}}}|{{{title|{{PAGENAME}}}}}
 
  |{{{title|{{PAGENAME}}}}}
  {{#if:{{{summary|}}}|
  <div class="news-card__summary">{{{summary}}}</div>
   }}
   }}
 
}}
  <footer class="news-card__footer">
</h3>
    {{#if:{{{links|}}}|<div class="news-card__links">{{{links}}}</div>}}
{{#if:{{{summary|}}}|<div class="news-card__summary">{{{summary}}}</div>}}
  </footer>
{{#if:{{{links|}}}|<div class="news-card__footer"><div class="news-card__links">{{{links}}}</div></div>}}
</article>
</div>
</includeonly>
</includeonly>
<noinclude>
{{Documentation}}
[[Category:News Templates]]
</noinclude>

Latest revision as of 08:24, 23 November 2025