Template: ResearchProjectCard: Difference between revisions

From Innovation
Jump to: navigation, search
No edit summary
No edit summary
Line 18: Line 18:
[[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|{{{3|1900-01}}}}} > {{#time:Ym}} | upcoming | {{#ifexpr: {{#time:Ym|{{{4|1900-01}}}}} < {{#time:Ym}} | ended | active }} }}
</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;">● On Going</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;">● Completed</span>
| upcoming = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#FAEEDA; color:#854F0B; margin-bottom:8px;">● 예정</span>
| upcoming = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#FAEEDA; color:#854F0B; margin-bottom:8px;">● Expected</span>
}}
}}



Revision as of 00:37, 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):

  1. Page name (used for the link target)
  2. ProjectName (display text — Korean full title)
  3. StartDate
  4. EndDate
  5. FundingAgency
  6. FundingProgram
  7. GovernmentMinistry

The card title shows ProjectName as a clickable link that jumps to the page named in parameter 1.