Template: Publication-card: Difference between revisions

From Dreams Knowledge Platform
Jump to: navigation, search
(Created page with "<noinclude> This template renders a single publication card. Used by Template:semorg-publication-overview. </noinclude><includeonly><div style="border:1px solid #dde;border-radius:6px;padding:1em 1.2em;background:#f9f9fc;width:280px;min-height:120px;display:flex;flex-direction:column;gap:0.4em;"> <div style="font-weight:bold;font-size:1em;line-height:1.3em;"> {{#if: {{{link|}}} | [{{{link|}}} {{{title|{{{1|}}}}}}] | {{#if: {{{file|}}} | {{{file|}}}|{{{title|...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<includeonly><div style="border:1px solid #dde;border-radius:6px;padding:1em 1.2em;background:#f9f9fc;width:280px;display:flex;flex-direction:column;gap:0.4em;box-sizing:border-box;">
This template renders a single publication card. Used by [[Template:semorg-publication-overview]].
<div style="font-weight:bold;font-size:1em;line-height:1.4;">[[{{{1|}}}|{{{2|{{{1|}}}}}}]]</div>
</noinclude><includeonly><div style="border:1px solid #dde;border-radius:6px;padding:1em 1.2em;background:#f9f9fc;width:280px;min-height:120px;display:flex;flex-direction:column;gap:0.4em;">
{{#if:{{{7|}}}|<div style="font-size:0.85em;color:#444;line-height:1.4;">{{{7|}}}</div>}}
<div style="font-weight:bold;font-size:1em;line-height:1.3em;">
{{#if:{{{3|}}}|<div style="font-size:0.8em;color:#666;font-style:italic;">{{#ifeq:{{#explode:{{{3|}}}|;|3}}||{{{3|}}}|{{#explode:{{{3|}}}|;|0}}; {{#explode:{{{3|}}}|;|1}}; {{#explode:{{{3|}}}|;|2}} ''et al.''}}</div>}}
{{#if: {{{link|}}}  
{{#if:{{{4|}}}|<div style="font-size:0.78em;color:#888;">{{{4|}}}</div>}}
| [{{{link|}}} {{{title|{{{1|}}}}}}]
<div style="margin-top:auto;padding-top:0.6em;display:flex;gap:0.8em;font-size:0.85em;">{{#if:{{{5|}}}|<span><i class="fas fa-download"></i> [[{{{5|}}}|Download the file]]</span>}}{{#if:{{{6|}}}|<span>[{{{6|}}} <i class="fas fa-external-link-alt"></i> To the resource]</span>}}</div>
| {{#if: {{{file|}}}  
  | [[{{{file|}}}|{{{title|{{{1|}}}}}}]]
  | [[{{{1|}}}|{{{title|{{{1|}}}}}}]]
}}
}}
</div>
{{#if: {{{authors|}}} | <div style="font-size:0.85em;color:#555;">{{{authors|}}}</div> }}
{{#if: {{{date|}}} | <div style="font-size:0.8em;color:#888;">{{{date|}}}</div> }}
<div style="margin-top:auto;padding-top:0.5em;display:flex;gap:0.8em;font-size:0.85em;">
{{#if: {{{file|}}} | <span>[[{{{file|}}}|&#128196; Download]]</span> }}
{{#if: {{{link|}}} | <span>[{{{link|}}} &#128279; Link]</span> }}
</div>
</div></includeonly>
</div></includeonly>

Latest revision as of 13:37, 4 March 2026