|
|
| (9 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <includeonly> | | <includeonly> |
| <templatestyles src="Template:ResearchItem/styles.css" /> | | <templatestyles src="Template:ResearchItem/styles.css" /> |
| | | <div class="news-card news-card--research"> |
| <div class="research-item"> | | <div class="news-card__header"> |
| <div class="research-item__meta">
| | <span class="news-card__date">{{#time:j M Y|{{{date|}}}}}</span> |
| {{#if:{{{date|}}}|<span class="research-item__date">{{#time:j M Y|{{{date}}}}}</span>}}
| | {{#if:{{{type|}}}|<span class="news-card__badge">{{{type}}}</span>}} |
| {{#if:{{{type|}}}|<span class="research-item__type">{{{type}}}</span>}}
| |
| {{#if:{{{year|}}}|<span class="research-item__year">{{{year}}}</span>}}
| |
| </div>
| |
| | |
| <div class="research-item__title">
| |
| [[{{{page|{{PAGENAME}}}}}|{{{title|{{PAGENAME}}}}}]]
| |
| </div>
| |
| | |
| {{#if:{{{authors|}}}|<div class="research-item__authors">{{{authors}}}</div>}}
| |
| {{#if:{{{venue|}}}|<div class="research-item__venue">{{{venue}}}</div>}}
| |
| | |
| {{#if:{{{summary|}}}|<div class="research-item__summary">{{{summary}}}</div>}}
| |
| | |
| <div class="research-item__links">
| |
| {{#if:{{{doi|}}}|<span class="research-item__link">DOI: [https://doi.org/{{{doi}}} {{{doi}}}]</span>}}
| |
| {{#if:{{{source|}}}|<span class="research-item__link">Source: [{{{source}}} link]</span>}}
| |
| {{#if:{{{pdf|}}}|<span class="research-item__link">PDF: [{{{pdf}}} pdf]</span>}}
| |
| </div>
| |
| | |
| {{#if:{{{country|}}}{{{growing_region|}}}{{{appellation|}}}|
| |
| <div class="research-item__context">
| |
| {{#if:{{{country|}}}|{{{country}}}}}
| |
| {{#if:{{{country|}}}{{{growing_region|}}}| · }}
| |
| {{#if:{{{growing_region|}}}|{{{growing_region}}}}}
| |
| {{#if:{{{growing_region|}}}{{{appellation|}}}| · }}
| |
| {{#if:{{{appellation|}}}|{{{appellation}}}}}
| |
| </div>
| |
| }}
| |
| | |
| {{#ifeq:{{NAMESPACE}}|Research|[[Category:Research Item]]|}}
| |
| <div style="display:none;">
| |
| [[Has research date::{{{date|}}}]]
| |
| [[Has record created::{{{record_created|}}}]]
| |
| [[Has research title::{{{title|}}}]]
| |
| [[Has research type::{{{type|}}}]]
| |
| [[Has research authors::{{{authors|}}}]]
| |
| [[Has research venue::{{{venue|}}}]]
| |
| [[Has research year::{{{year|}}}]]
| |
| [[Has DOI::{{{doi|}}}]]
| |
| [[Has source URL::{{{source|}}}]]
| |
| [[Has PDF URL::{{{pdf|}}}]]
| |
| [[Has research summary::{{{summary|}}}]]
| |
| {{#if:{{{country|}}}|[[Has country::{{{country}}}]]}}
| |
| {{#if:{{{growing_region|}}}|[[Has growing region::{{{growing_region}}}]]}}
| |
| {{#if:{{{appellation|}}}|[[Has appellation::{{{appellation}}}]]}}
| |
| </div> | | </div> |
| | | {{#if:{{{country|}}}{{{growing_region|}}}{{{appellation|}}}|<div class="news-card__region">{{#if:{{{country|}}}|{{{country}}}}}{{#if:{{{growing_region|}}}| · {{{growing_region}}}}}{{#if:{{{appellation|}}}| · {{{appellation}}}}}</div>}} |
| | <div class="news-card__title">{{#if:{{{page|}}}|[[{{{page}}}|{{{title|}}}]]|{{{title|}}}}}</div> |
| | {{#if:{{{authors|}}}|<div class="news-card__byline">{{{authors}}}</div>}} |
| | {{#if:{{{venue|}}}{{{year|}}}|<div class="news-card__publine">{{#if:{{{venue|}}}|{{{venue}}}}}{{#if:{{{year|}}}| · {{{year}}}}}</div>}} |
| | {{#if:{{{summary|}}}|<div class="news-card__summary">{{{summary}}}</div>}} |
| | <div class="news-card__footer"> |
| | {{#if:{{{source|}}}|<span class="news-card__btn news-card__btn--source">[{{{source}}} Source]</span>}} |
| | {{#if:{{{doi|}}}|<span class="news-card__btn news-card__btn--source">[https://doi.org/{{{doi}}} DOI]</span>}} |
| | {{#if:{{{pdf|}}}|<span class="news-card__btn news-card__btn--source">[{{{pdf}}} PDF]</span>}} |
| </div> | | </div> |
| </includeonly> | | </div></includeonly> |