Template: ResearchProject: Difference between revisions
From Innovation
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
A | A vertical, sidebar-style infobox for research project pages. Floats to the right; body content (== 개요 ==, == 연구 내용 == etc.) flows around it on the left. | ||
<pre> | <pre> | ||
| Line 16: | Line 16: | ||
The status badge (진행 중 / 종료 / 예정) is computed automatically from <code>StartDate</code> and <code>EndDate</code> by comparing them to the current year/month. <code>YYYY-MM</code> format is required. | The status badge (진행 중 / 종료 / 예정) is computed automatically from <code>StartDate</code> and <code>EndDate</code> by comparing them to the current year/month. <code>YYYY-MM</code> format is required. | ||
The displayed title shows <code>ProjectName</code> | The displayed title shows <code>ProjectName</code> as a link to the project page. 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. | ||
This template requires only the standard [[mw:Extension:ParserFunctions|ParserFunctions]] extension. | This template requires only the standard [[mw:Extension:ParserFunctions|ParserFunctions]] extension. | ||
| Line 29: | Line 29: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude><includeonly><div style="background:#ffffff; border:1px solid #e5e5e0; border-radius:12px; padding: | </noinclude><includeonly><div style="float:right; clear:right; width:280px; background:#ffffff; border:1px solid #e5e5e0; border-radius:12px; padding:20px 22px; margin:0 0 1em 1.5em; font-size:13px;">{{#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: | | active = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#E1F5EE; color:#0F6E56; margin-bottom:10px;">● 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: | | ended = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#f1efe8; color:#5F5E5A; margin-bottom:10px;">● 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: | | upcoming = <span style="display:inline-block; padding:3px 10px; font-size:11px; font-weight:500; border-radius:999px; background:#FAEEDA; color:#854F0B; margin-bottom:10px;">● Expected Project</span> | ||
}} | }} | ||
<div style="font-size: | <div style="font-size:15px; font-weight:500; line-height:1.4; color:#1a1a1a; margin:0 0 4px;">[[{{PAGENAME}}|{{{ProjectName|{{PAGENAME}}}}}]]</div>{{#set: ProjectName={{{ProjectName|{{PAGENAME}}}}} }} | ||
<div style="font-size: | <div style="font-size:12px; color:#888; margin:0 0 14px; padding-bottom:14px; border-bottom:1px solid #f1efe8;">[[StartDate::{{{StartDate|}}}]] ~ [[EndDate::{{{EndDate|}}}]]</div> | ||
<div style=" | <div style="padding:10px 0; border-bottom:1px solid #f1efe8;"> | ||
<div style="font-size:11px; color:#888780; margin:0 0 2px;">Funding Agency</div> | |||
<div style="font-size:11px; color:#888780; margin:0 0 | <div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.4;">[[FundingAgency::{{{FundingAgency|}}}]]</div> | ||
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1. | |||
</div> | </div> | ||
<div style=" | <div style="padding:10px 0; border-bottom:1px solid #f1efe8;"> | ||
<div style="font-size:11px; color:#888780; margin:0 0 | <div style="font-size:11px; color:#888780; margin:0 0 2px;">Funding Program</div> | ||
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1. | <div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.4;">[[FundingProgram::{{{FundingProgram|}}}]]</div> | ||
</div> | </div> | ||
<div style="padding:10px 0;"> | |||
<div style="font-size:11px; color:#888780; margin:0 0 2px;">Government Minstry</div> | |||
<div style="font-size:13px; font-weight:500; color:#1a1a1a; line-height:1.4;">[[GovernmentMinistry::{{{GovernmentMinistry|}}}]]</div> | |||
</div> | </div> | ||
</div>[[Category:Research project]]</includeonly> | </div>[[Category:Research project]]</includeonly> | ||
Latest revision as of 00:50, 4 May 2026
Usage
A vertical, sidebar-style infobox for research project pages. Floats to the right; body content (== 개요 ==, == 연구 내용 == etc.) flows around it on the left.
{{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 as a link to the project page. 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.
This template requires only the standard ParserFunctions extension.
SMW properties
- Property:ProjectName (Text) — 연구과제명
- Property:StartDate (Date) — 연구시작일
- Property:EndDate (Date) — 연구종료일
- Property:FundingAgency (Page) — 연구비지원기관
- Property:FundingProgram (Page) — 연구비지원사업
- Property:GovernmentMinistry (Page) — 소관정부부처명