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
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|}}}|{{{title|{{{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:{{{authors|}}}|<div style="font-size:0.82em;color:#555;">{{{authors|}}}</div>}}
<div style="font-weight:bold;font-size:1em;line-height:1.3em;">
{{#if:{{{date|}}}|<div style="font-size:0.8em;color:#888;">{{{date|}}}</div>}}
{{#if: {{{link|}}}
<div style="margin-top:auto;padding-top:0.6em;display:flex;gap:0.8em;font-size:0.85em;">{{#if:{{{file|}}}|<span>{{{file|}}}</span>}}{{#if:{{{link|}}}|<span>[{{{link|}}} &#128279; View online]</span>}}</div>
| [{{{link|}}} {{{title|{{{1|}}}}}}]
| {{#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>

Revision as of 12:45, 4 March 2026