Template: ResearchProject: Difference between revisions
From Innovation
No edit summary |
No edit summary |
||
| 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. | ||
This template requires only the standard [[mw:Extension:ParserFunctions|ParserFunctions]] extension | The displayed title shows <code>ProjectName</code> (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 [[mw:Extension:ParserFunctions|ParserFunctions]] extension. | |||
== SMW properties == | == SMW properties == | ||
| Line 33: | Line 35: | ||
}} | }} | ||
<div style="font-size:18px; font-weight:500; line-height:1.4; margin:0 0 4px; color:#1a1a1a;">[[ | <div style="font-size:18px; font-weight:500; line-height:1.4; margin:0 0 4px; color:#1a1a1a;">[[{{PAGENAME}}|{{{ProjectName|{{PAGENAME}}}}}]]</div>{{#set: ProjectName={{{ProjectName|{{PAGENAME}}}}} }} | ||
<div style="font-size:13px; color:#666; margin:0 0 22px;">[[StartDate::{{{StartDate|}}}]] ~ [[EndDate::{{{EndDate|}}}]]</div> | <div style="font-size:13px; color:#666; margin:0 0 22px;">[[StartDate::{{{StartDate|}}}]] ~ [[EndDate::{{{EndDate|}}}]]</div> | ||
Revision as of 00:27, 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
- Property:ProjectName (Text) — 연구과제명
- Property:StartDate (Date) — 연구시작일
- Property:EndDate (Date) — 연구종료일
- Property:FundingAgency (Page) — 연구비지원기관
- Property:FundingProgram (Page) — 연구비지원사업
- Property:GovernmentMinistry (Page) — 소관정부부처명