메뉴 여닫기
환경 설정 메뉴 여닫기
개인 메뉴 여닫기
로그인하지 않음
지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.
편집 요약 없음
편집 요약 없음
3번째 줄: 3번째 줄:
Template
Template
--><table class="tg-infobox floatright"><!--
--><table class="tg-infobox floatright"><!--
-->{{#if:{{{youtube|}}}
-->{{Infobox image row
| <tr><td colspan="2">
|image = {{{image|}}}
<div class="video-container">
|caption = {{{caption|}}}
{{#tag:iframe
|imageWidth = {{{imageWidth|}}}
|
|imageHeight = {{{imageHeight|}}}
| width="{{{imageWidth|320}}}" height="{{{imageHeight|180}}}"
  src="https://www.youtube.com/embed/{{#invoke:String|replace|source={{{youtube}}}|pattern=^.*v=([^&]+).*$|replacement=\1}}"
  frameborder="0" allowfullscreen
}}
</div>
  </td></tr>
| {{Infobox image row
|image = {{{image|}}}
|caption = {{{caption|}}}
|imageWidth = {{{imageWidth|}}}
|imageHeight = {{{imageHeight|}}}
  }}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
83번째 줄: 71번째 줄:


<templatestyles src="Template:Infobox/styles.css"/>
<templatestyles src="Template:Infobox/styles.css"/>
<style>
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
</style>


</includeonly><!--
</includeonly><!--

2025년 7월 2일 (수) 05:04 판

[[File:{{{image}}}|{{{imageWidth}}}x{{{imageHeight}}}px|thumb|center|{{{caption}}}]]
{{{title}}}
Paper Information
Author{{{author}}}
Advisor{{{advisor}}}
Institution{{{institution}}}
Conference{{{conference}}}
Publisher{{{publisher}}}
Published{{{date}}}
Pages{{{pages}}}
DOI{{{doi}}}
arXivarXiv:{{{arxiv}}}
Series{{{series}}}


Usage

{{paper
| title=
| youtube=https://www.youtube.com/watch?v=xxxxxxxxxxx
| image=
| imageWidth=320
| imageHeight=180
| caption=
| author=
| advisor=
| institution=
| conference=
| publisher=
| date=
| pages=
| doi=
| arxiv=
| series=
}}

TemplateData

<templatedata> {

 "params": {
   "youtube": {
     "label": "YouTube link",
     "description": "A YouTube video to embed if no image is provided",
     "type": "string"
   },
   "image": {
     "label": "Image",
     "type": "wiki-file-name",
     "suggested": true
   },
   "caption": {
     "label": "Caption",
     "description": "Caption for image or video",
     "type": "string"
   },
   "imageWidth": {
     "label": "Image width",
     "description": "Width in px",
     "type": "number",
     "default": "320"
   },
   "imageHeight": {
     "label": "Image height",
     "description": "Height in px",
     "type": "number",
     "default": "180"
   },
   "title": {},
   "author": {},
   "advisor": {},
   "institution": {},
   "conference": {},
   "publisher": {},
   "date": {},
   "pages": {},
   "doi": {},
   "arxiv": {},
   "series": {}
 },
 "paramOrder": [
   "title", "youtube", "image", "imageWidth", "imageHeight", "caption",
   "author", "advisor", "institution", "conference", "publisher", "date",
   "pages", "doi", "arxiv", "series"
 ],
 "format": "block"

} </templatedata>