Template: ResearchProjectCard: Difference between revisions
From Innovation
Created page with "<noinclude> == Usage == A display-only card used by Research projects to render each row of an SMW <code>#ask</code> query as a modern card. This template does '''not''' set any SMW properties — it is purely for presentation. The properties are set on each project page via Template:ResearchProject. This template is called automatically by the SMW query in Research projects using <code>format=template</code>. You generally do not need to call it directly...." |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
A display-only card used by [[Research projects]] to render each row of an SMW <code>#ask</code> query as a modern card. This template does '''not''' set any SMW properties — it is purely for presentation | A display-only card used by [[Research projects]] to render each row of an SMW <code>#ask</code> query as a modern card. This template does '''not''' set any SMW properties — it is purely for presentation. | ||
This template is called automatically by the SMW query in [[Research projects]] using <code>format=template</code>. You generally do not need to call it directly. | This template is called automatically by the SMW query in [[Research projects]] using <code>format=template</code>. You generally do not need to call it directly. | ||
Parameter order (positional, as supplied by SMW): | Parameter order (positional, as supplied by SMW): | ||
# Page name ( | # Page name (used for the link target) | ||
# ProjectName (display text — Korean full title) | |||
# StartDate | # StartDate | ||
# EndDate | # EndDate | ||
| Line 12: | Line 13: | ||
# FundingProgram | # FundingProgram | ||
# GovernmentMinistry | # GovernmentMinistry | ||
The card title shows <code>ProjectName</code> as a clickable link that jumps to the page named in parameter 1. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude><includeonly><div style="background:#ffffff; border:1px solid #e5e5e0; border-radius:12px; padding:20px 22px; margin:0 0 12px;">{{#switch: {{#ifexpr: {{#time:Ym|{{{ | </noinclude><includeonly><div style="background:#ffffff; border:1px solid #e5e5e0; border-radius:12px; padding:20px 22px; margin:0 0 12px;">{{#switch: {{#ifexpr: {{#time:Ym|{{{3|1900-01}}}}} > {{#time:Ym}} | upcoming | {{#ifexpr: {{#time:Ym|{{{4|1900-01}}}}} < {{#time:Ym}} | ended | active }} }} | ||
| active = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#E1F5EE; color:#0F6E56; margin-bottom:8px;">● 진행 중</span> | | active = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#E1F5EE; color:#0F6E56; margin-bottom:8px;">● 진행 중</span> | ||
| ended = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#f1efe8; color:#5F5E5A; margin-bottom:8px;">● 종료</span> | | ended = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#f1efe8; color:#5F5E5A; margin-bottom:8px;">● 종료</span> | ||
| Line 20: | Line 23: | ||
}} | }} | ||
<div style="font-size:16px; font-weight:500; line-height:1.4; margin:0 0 4px; color:#1a1a1a;">[[{{{1|}}}]]</div> | <div style="font-size:16px; font-weight:500; line-height:1.4; margin:0 0 4px; color:#1a1a1a;">[[{{{1|}}}|{{{2|{{{1|}}}}}}]]</div> | ||
<div style="font-size:13px; color:#666; margin:0 0 14px;">{{{ | <div style="font-size:13px; color:#666; margin:0 0 14px;">{{{3|}}} ~ {{{4|}}}</div> | ||
<div style="display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:8px;"> | <div style="display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:8px;"> | ||
<div style="background:#f1efe8; border-radius:8px; padding:10px 12px;"> | <div style="background:#f1efe8; border-radius:8px; padding:10px 12px;"> | ||
<div style="font-size:11px; color:#888780; margin:0 0 4px;">지원기관</div> | <div style="font-size:11px; color:#888780; margin:0 0 4px;">지원기관</div> | ||
<div style="font-size:12px; font-weight:500; color:#1a1a1a; line-height:1.35;">{{{ | <div style="font-size:12px; font-weight:500; color:#1a1a1a; line-height:1.35;">{{{5|}}}</div> | ||
</div> | </div> | ||
<div style="background:#f1efe8; border-radius:8px; padding:10px 12px;"> | <div style="background:#f1efe8; border-radius:8px; padding:10px 12px;"> | ||
<div style="font-size:11px; color:#888780; margin:0 0 4px;">지원사업</div> | <div style="font-size:11px; color:#888780; margin:0 0 4px;">지원사업</div> | ||
<div style="font-size:12px; font-weight:500; color:#1a1a1a; line-height:1.35;">{{{ | <div style="font-size:12px; font-weight:500; color:#1a1a1a; line-height:1.35;">{{{6|}}}</div> | ||
</div> | </div> | ||
<div style="background:#f1efe8; border-radius:8px; padding:10px 12px;"> | <div style="background:#f1efe8; border-radius:8px; padding:10px 12px;"> | ||
<div style="font-size:11px; color:#888780; margin:0 0 4px;">소관부처</div> | <div style="font-size:11px; color:#888780; margin:0 0 4px;">소관부처</div> | ||
<div style="font-size:12px; font-weight:500; color:#1a1a1a; line-height:1.35;">{{{ | <div style="font-size:12px; font-weight:500; color:#1a1a1a; line-height:1.35;">{{{7|}}}</div> | ||
</div> | </div> | ||
</div> | </div> | ||
</div></includeonly> | </div></includeonly> | ||
Revision as of 00:27, 4 May 2026
Usage
A display-only card used by Research projects to render each row of an SMW #ask query as a modern card. This template does not set any SMW properties — it is purely for presentation.
This template is called automatically by the SMW query in Research projects using format=template. You generally do not need to call it directly.
Parameter order (positional, as supplied by SMW):
- Page name (used for the link target)
- ProjectName (display text — Korean full title)
- StartDate
- EndDate
- FundingAgency
- FundingProgram
- GovernmentMinistry
The card title shows ProjectName as a clickable link that jumps to the page named in parameter 1.