Template: ResearchProject: Difference between revisions

From Innovation
Jump to: navigation, search
No edit summary
No edit summary
Line 30: Line 30:
[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly><div style="background:#ffffff; border:1px solid #e5e5e0; border-radius:12px; padding:24px 26px; margin:0 0 1.5em; max-width:760px;">{{#switch: {{#ifexpr: {{#time:Ym|{{{StartDate|1900-01}}}}} > {{#time:Ym}} | upcoming | {{#ifexpr: {{#time:Ym|{{{EndDate|1900-01}}}}} < {{#time:Ym}} | ended | active }} }}
</noinclude><includeonly><div style="background:#ffffff; border:1px solid #e5e5e0; border-radius:12px; padding:24px 26px; margin:0 0 1.5em; max-width:760px;">{{#switch: {{#ifexpr: {{#time:Ym|{{{StartDate|1900-01}}}}} > {{#time:Ym}} | upcoming | {{#ifexpr: {{#time:Ym|{{{EndDate|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 Project</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 Project</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 Project</span>
}}
}}


Line 41: Line 41:
<div style="display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px;">
<div style="display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px;">
<div style="background:#f1efe8; border-radius:8px; padding:12px 14px;">
<div style="background:#f1efe8; border-radius:8px; padding:12px 14px;">
<div style="font-size:11px; color:#888780; margin:0 0 4px;">지원기관</div>
<div style="font-size:11px; color:#888780; margin:0 0 4px;">Funding Agency</div>
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.35;">[[FundingAgency::{{{FundingAgency|}}}]]</div>
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.35;">[[FundingAgency::{{{FundingAgency|}}}]]</div>
</div>
</div>
<div style="background:#f1efe8; border-radius:8px; padding:12px 14px;">
<div style="background:#f1efe8; border-radius:8px; padding:12px 14px;">
<div style="font-size:11px; color:#888780; margin:0 0 4px;">지원사업</div>
<div style="font-size:11px; color:#888780; margin:0 0 4px;">Funding Program</div>
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.35;">[[FundingProgram::{{{FundingProgram|}}}]]</div>
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.35;">[[FundingProgram::{{{FundingProgram|}}}]]</div>
</div>
</div>
<div style="background:#f1efe8; border-radius:8px; padding:12px 14px;">
<div style="background:#f1efe8; border-radius:8px; padding:12px 14px;">
<div style="font-size:11px; color:#888780; margin:0 0 4px;">소관부처</div>
<div style="font-size:11px; color:#888780; margin:0 0 4px;">Government Minstry</div>
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.35;">[[GovernmentMinistry::{{{GovernmentMinistry|}}}]]</div>
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.35;">[[GovernmentMinistry::{{{GovernmentMinistry|}}}]]</div>
</div>
</div>
</div>
</div>
</div>[[Category:Research project]]</includeonly>
</div>[[Category:Research project]]</includeonly>

Revision as of 00:38, 4 May 2026

Usage

A modern, badge-styled infobox for research project pages.

{{ResearchProject
| ProjectName        = Full official project name
| StartDate          = 2024-06
| EndDate            = 2025-01
| FundingAgency      = National Research Foundation of Korea
| FundingProgram     = LINC 3.0
| GovernmentMinistry = Ministry of Education
}}

The status badge (진행 중 / 종료 / 예정) is computed automatically from StartDate and EndDate by comparing them to the current year/month. YYYY-MM format is required.

The displayed title shows ProjectName (not the page name). On the project's own page MediaWiki renders this as bold (self-links are not clickable). When this template is transcluded onto another page, the title becomes a clickable link to the project page.

This template requires only the standard ParserFunctions extension.

SMW properties