Template: CitePub: Difference between revisions

From Innovation
Jump to: navigation, search
No edit summary
No edit summary
Line 2: Line 2:
이 템플릿은 SMW 쿼리에서 한 논문 항목을 BibTeX 스타일로 렌더링하는 데 사용됩니다.
이 템플릿은 SMW 쿼리에서 한 논문 항목을 BibTeX 스타일로 렌더링하는 데 사용됩니다.


==사용법==
== 사용법 ==
<pre>
<pre>
{{#ask: [[Year::2026]]
{{#ask: [[Category:Publication]] [[Year::2026]]
  | ?Author
  | ?Author
  | valuesep = ;&nbsp;
  | valuesep=;&nbsp;
  | ?Title
  | ?Title
  | ?Venue
  | ?Venue
Line 14: Line 14:
  | ?Year
  | ?Year
  | ?DOI
  | ?DOI
| ?Type
  | sort=Title
  | sort=Title
  | order=asc
  | order=asc
Line 25: Line 26:


쿼리에서 다음 properties를 넘기면 named argument로 매핑됩니다:
쿼리에서 다음 properties를 넘기면 named argument로 매핑됩니다:
?Author, ?Title, ?Venue, ?Volume, ?Issue, ?Pages, ?Year, ?DOI, ?Type


* Author
* Title
* Venue
* Volume
* Issue
* Pages
* Year
* DOI
* Type


* '''Type''' (선택): Journal / Conference / Workshop / Preprint — 논문 종류에 따라 색상 뱃지 표시
== Type ==
'''Type'''은 다음 값을 사용합니다.
 
* <code>Journal</code> — 녹색
* <code>Conference</code> — 주황색
* <code>Workshop</code> — 황갈색
* <code>Preprint</code> — 회색
 
Publication 페이지에서는 공백 없이 다음과 같이 입력합니다.
 
<pre>
[[Type::Journal]]
[[Type::Conference]]
</pre>


== 함께 쓰는 템플릿 ==
== 함께 쓰는 템플릿 ==
* [[Template:CitePat]] — 특허, 소프트웨어 저작권
* [[Template:CitePat]] — 특허, 소프트웨어 저작권


</noinclude><includeonly><div class="cite-pub"
</noinclude>
  style="margin:8px 0;
 
<includeonly>
<div class="cite-pub"
  style="
margin:8px 0;
  padding:12px 12px;
  padding:12px 12px;
  border-left:4px solid {{#switch:{{lc:{{{Type|}}}}}
  border-left:4px solid {{#switch:{{lc:{{{Type|}}}}}
   |journal=#1ea84a
   |journal=#1ea84a
   |conference=#e8741a
   |conference=#e8741a
   |workshop=#a89a1a
   |workshop=#b08a00
   |preprint=#888
   |preprint=#888888
   |#default=#1a73e8
   |#default=#1a73e8
  }};
  }};
  background:#fafbfd;
  background:#fafbfd;
  border-radius:0 4px 4px 0;
  border-radius:0 4px 4px 0;
  line-height:1.6;">
  line-height:1.6;
">


<div class="cite-pub-title" style="font-size:105%; font-weight:bold; color:#1a3a6c; margin-bottom:4px;">{{#if:{{{DOI|}}}|[https://doi.org/{{{DOI}}} {{{Title|}}}]|{{{Title|}}}}}</div>
<!-- Title -->
<div class="cite-pub-title"
style="
font-size:105%;
font-weight:bold;
color:#1a3a6c;
margin-bottom:4px;
">
{{#if:{{{DOI|}}}
| [https://doi.org/{{{DOI}}} {{{Title|}}}]
| {{{Title|}}}
}}
</div>


<div class="cite-pub-authors" style="font-size:93%; color:#444; margin-bottom:4px;">{{{Author|}}}</div>
<!-- Authors -->
<div class="cite-pub-authors"
style="
font-size:93%;
color:#444;
margin-bottom:4px;
">
{{{Author|}}}
</div>


<div class="cite-pub-meta" style="font-size:90%; color:#555;">{{#if:{{{Venue|}}}|<span style="font-style:italic; color:#7a3a1a;">{{{Venue}}}</span>}}{{#if:{{{Volume|}}}|, vol. {{{Volume}}}{{#if:{{{Issue|}}}|, no. {{{Issue}}}}}}}{{#if:{{{Pages|}}}|, pp. {{{Pages}}}}}{{#if:{{{Year|}}}| <span style="display:inline-block; background:#1a73e8; color:#fff; padding:1px 1px; border-radius:10px; font-size:85%; font-weight:bold; margin-left:6px;">{{{Year}}}</span>}}{{#if:{{{Type|}}}| <span class="cite-pub-type cite-pub-type-{{lc:{{{Type}}}}}" style="display:inline-block; padding:1px 1px; border-radius:10px; font-size:80%; font-weight:bold; margin-left:4px; {{#switch:{{lc:{{{Type}}}}}
<!-- Publication metadata -->
|journal=background:#1ea84a; color:#fff;
<div class="cite-pub-meta"
|conference=background:#e8741a; color:#fff;
style="
|workshop=background:#a89a1a; color:#fff;
font-size:90%;
|preprint=background:#888; color:#fff;
color:#555;
|#default=background:#888; color:#fff;
">
}}">{{{Type}}}</span>}}</div>


{{#if:{{{DOI|}}}|<div class="cite-pub-doi" style="font-size:82%; color:#888; margin-top:4px;">DOI: [https://doi.org/{{{DOI}}} {{{DOI}}}]</div>}}
{{#if:{{{Venue|}}}
| <span style="font-style:italic; color:#7a3a1a;">{{{Venue}}}</span>
}}
 
{{#if:{{{Volume|}}}
| , vol. {{{Volume}}}
  {{#if:{{{Issue|}}}
    | , no. {{{Issue}}}
  }}
}}
 
{{#if:{{{Pages|}}}
| , pp. {{{Pages}}}
}}
 
<!-- Year badge -->
{{#if:{{{Year|}}}
| <span style="
    display:inline-block;
    background:#1a73e8;
    color:#fff;
    padding:1px 6px;
    border-radius:10px;
    font-size:85%;
    font-weight:bold;
    margin-left:6px;
  ">{{{Year}}}</span>
}}
 
<!-- Type badge -->
{{#if:{{{Type|}}}
| <span
    class="cite-pub-type cite-pub-type-{{lc:{{{Type}}}}}"
    style="
      display:inline-block;
      padding:1px 7px;
      border-radius:10px;
      font-size:80%;
      font-weight:bold;
      margin-left:4px;
      {{#switch:{{lc:{{{Type}}}}}
        |journal=background:#1ea84a; color:#fff;
        |conference=background:#e8741a; color:#fff;
        |workshop=background:#b08a00; color:#fff;
        |preprint=background:#888888; color:#fff;
        |#default=background:#777777; color:#fff;
      }}
    "
  >{{{Type}}}</span>
}}
 
</div>
 
<!-- DOI -->
{{#if:{{{DOI|}}}
| <div class="cite-pub-doi"
    style="
      font-size:82%;
      color:#888;
      margin-top:4px;
    ">
    DOI: [https://doi.org/{{{DOI}}} {{{DOI}}}]
  </div>
}}


</div></includeonly>
</div>
</includeonly>

Revision as of 20:52, 4 September 2026

이 템플릿은 SMW 쿼리에서 한 논문 항목을 BibTeX 스타일로 렌더링하는 데 사용됩니다.

사용법

{{#ask: [[Category:Publication]] [[Year::2026]]
 | ?Author
 | valuesep=; 
 | ?Title
 | ?Venue
 | ?Volume
 | ?Issue
 | ?Pages
 | ?Year
 | ?DOI
 | ?Type
 | sort=Title
 | order=asc
 | format=template
 | template=CitePub
 | named args=yes
 | limit=200
 | default=
}}

쿼리에서 다음 properties를 넘기면 named argument로 매핑됩니다:

  • Author
  • Title
  • Venue
  • Volume
  • Issue
  • Pages
  • Year
  • DOI
  • Type

Type

Type은 다음 값을 사용합니다.

  • Journal — 녹색
  • Conference — 주황색
  • Workshop — 황갈색
  • Preprint — 회색

Publication 페이지에서는 공백 없이 다음과 같이 입력합니다.

[[Type::Journal]]
[[Type::Conference]]

함께 쓰는 템플릿