메뉴 여닫기
환경 설정 메뉴 여닫기
개인 메뉴 여닫기
로그인하지 않음
지금 편집한다면 당신의 IP 주소가 공개될 수 있습니다.
편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
<includeonly>
<includeonly><!--
<table class="tg-infobox floatright">
<!-- Image -->
{{Infobox image row
| image = {{{image|}}}
| caption = {{{caption|}}}
| imageWidth = {{{imageWidth|}}}
| imageHeight = {{{imageHeight|}}}
}}


<!-- Youtube -->
Template
{{#if:{{{youtube|}}}
--><table class="tg-infobox floatright"><!--
| <div class="video-container">
-->{{#if:{{{youtube|}}}
    {{#tag:iframe
| <tr><td colspan="2">
      |  
<div class="video-container">
      | width="320" height="180"  
{{#tag:iframe
        src="https://www.youtube.com/embed/{{#invoke:URLDecode|decode|{{#replace:{{{youtube}}}|https://www.youtube.com/watch?v=|}}}}"  
|  
        frameborder="0" allowfullscreen
| width="{{{imageWidth|320}}}" height="{{{imageHeight|180}}}"
    }}
  src="https://www.youtube.com/embed/{{#invoke:String|replace|source={{{youtube}}}|pattern=^.*v=([^&]+).*$|replacement=\1}}"
  </div>
  frameborder="0" allowfullscreen
| {{Infobox image row
}}
    | image = {{{image|}}}
</div>
    | caption = {{{caption|}}}
  </td></tr>
    | imageWidth = {{{imageWidth|}}}
| {{Infobox image row
    | imageHeight = {{{imageHeight|}}}
|image = {{{image|}}}
  }}
|caption = {{{caption|}}}
}}
|imageWidth = {{{imageWidth|}}}
|imageHeight = {{{imageHeight|}}}
  }}
}}<!--
-->{{Infobox row
|colspan = 2
|header = {{{title|{{#explode:{{PAGENAME}}| (|0}}}}}
|headerClass = tg-infobox-title
}}<!--
-->{{Infobox row
|colspan = 2
|condition = {{{author|}}}{{{conference|}}}{{{institution|}}}{{{advisor|}}}{{{date|}}}{{{pages|}}}{{{doi|}}}{{{arxiv|}}}{{{series|}}}{{{publisher|}}}{{{calendarlookup|{{usablenext}}}}}
|header = Paper Information
}}<!--
-->{{Infobox row
|label = Author
|data = {{{author|}}}
}}<!--
-->{{Infobox row
|condition = {{{advisor|}}}
|label = Advisor
|data = {{{advisor|}}}
}}<!--
-->{{Infobox row
|condition = {{{institution|}}}
|label = Institution
|data = {{{institution|}}}
}}<!--
-->{{Infobox row
|condition = {{{conference|}}}
|label = Conference
|data = {{{conference|}}}
}}<!--
-->{{Infobox row
|condition = {{{publisher|}}}
|label = Publisher
|data = {{{publisher|}}}
}}<!--
-->{{Infobox row
|condition = {{{date|}}}
|label = Published
|data = {{{date|}}}
}}<!--
-->{{Infobox row
|condition = {{{pages|}}}
|label = Pages
|data = {{{pages|}}}
}}<!--
-->{{Infobox row
|condition = {{{doi|}}}
|label = DOI
|data = [https://doi.org/{{{doi}}} {{{doi}}}]
}}<!--
-->{{Infobox row
|condition = {{{arxiv|}}}
|label = arXiv
|data = [https://arxiv.org/abs/{{{arxiv}}} arXiv:{{{arxiv}}}]
}}<!--
-->{{Infobox row
|condition = {{{series|}}}
|label = Series
|data = {{{series|}}}
}}<!--
--></table>


<!-- Title -->
<templatestyles src="Template:Infobox/styles.css"/>
{{Infobox row
| colspan = 2
| header = {{{title|{{PAGENAME}}}}}
| headerClass = tg-infobox-title
}}


<!-- Publication Info Header -->
<style>
{{Infobox row
.video-container {
| colspan = 2
  position: relative;
| condition = {{{authors|}}}{{{conference|}}}{{{journal|}}}{{{year|}}}{{{doi|}}}{{{pages|}}}{{{publisher|}}}
  padding-bottom: 56.25%;
| header = Publication Information
  height: 0;
}}
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
</style>


<!-- Authors -->
</includeonly><!--
{{Infobox row
| label = Authors
| data = {{{authors|}}}
}}


<!-- Conference -->
Documentation
{{Infobox row
-------------
| condition = {{{conference|}}}
--><noinclude>
| label = Conference
| data = {{{conference|}}}
}}
 
<!-- Journal -->
{{Infobox row
| condition = {{{journal|}}}
| label = Journal
| data = {{{journal|}}}
}}
 
<!-- Year -->
{{Infobox row
| condition = {{{year|}}}
| label = Year
| data = {{{year|}}}
}}
 
<!-- DOI -->
{{Infobox row
| condition = {{{doi|}}}
| label = DOI
| data = [https://doi.org/{{{doi}}} {{{doi}}}]
}}
 
<!-- Pages -->
{{Infobox row
| condition = {{{pages|}}}
| label = Pages
| data = {{{pages|}}}
}}
 
<!-- Publisher -->
{{Infobox row
| condition = {{{publisher|}}}
| label = Publisher
| data = {{{publisher|}}}
}}
 
<!-- PDF / Link -->
{{Infobox row
| condition = {{{pdf|}}}
| label = PDF
| data = [{{{pdf}}} Full Text]
}}
</table>
 
<templatestyles src="Template:Infobox/styles.css"/>
</includeonly>
 
<noinclude>
{{paper
{{paper
| title={{{title}}}
| title={{{title}}}
| youtube={{{youtube}}}
| youtube={{{youtube}}}
| caption={{{caption}}}
| image={{{image}}}
| imageWidth={{{imageWidth}}}
| imageWidth={{{imageWidth}}}
| imageHeight={{{imageHeight}}}
| imageHeight={{{imageHeight}}}
| authors={{{authors}}}
| caption={{{caption}}}
| author={{{author}}}
| advisor={{{advisor}}}
| institution={{{institution}}}
| conference={{{conference}}}
| conference={{{conference}}}
| journal={{{journal}}}
| publisher={{{publisher}}}
| year={{{year}}}
| date={{{date}}}
| pages={{{pages}}}
| doi={{{doi}}}
| doi={{{doi}}}
| pages={{{pages}}}
| arxiv={{{arxiv}}}
| publisher={{{publisher}}}
| series={{{series}}}
| pdf={{{pdf}}}
}}
}}


121번째 줄: 128번째 줄:
{{paper
{{paper
| title=
| title=
| youtube=https://www.youtube.com/watch?v=...
| youtube=https://www.youtube.com/watch?v=xxxxxxxxxxx
| caption=
| image=
| imageWidth=320
| imageWidth=320
| imageHeight=180
| imageHeight=180
| authors=
| caption=
| author=
| advisor=
| institution=
| conference=
| conference=
| journal=
| publisher=
| year=
| date=
| pages=
| doi=
| doi=
| pages=
| arxiv=
| publisher=
| series=
| pdf=https://example.com/paper.pdf
}}
}}
</pre>
</pre>
140번째 줄: 150번째 줄:
{
{
   "params": {
   "params": {
    "title": {
      "label": "Title",
      "type": "string",
      "required": true
    },
     "youtube": {
     "youtube": {
       "label": "YouTube link",
       "label": "YouTube link",
       "description": "Link to a YouTube video (e.g. presentation)",
       "description": "A YouTube video to embed if no image is provided",
       "type": "string"
       "type": "string"
    },
    "image": {
      "label": "Image",
      "type": "wiki-file-name",
      "suggested": true
     },
     },
     "caption": {
     "caption": {
       "label": "Video caption",
       "label": "Caption",
      "description": "Caption for image or video",
       "type": "string"
       "type": "string"
     },
     },
     "imageWidth": {
     "imageWidth": {
       "label": "Video width",
       "label": "Image width",
      "description": "Width in px",
       "type": "number",
       "type": "number",
       "default": 320
       "default": "320"
     },
     },
     "imageHeight": {
     "imageHeight": {
       "label": "Video height",
       "label": "Image height",
      "description": "Height in px",
       "type": "number",
       "type": "number",
       "default": 180
       "default": "180"
    },
    "authors": {
      "label": "Authors",
      "type": "string"
    },
    "conference": {
      "label": "Conference",
      "type": "string"
    },
    "journal": {
      "label": "Journal",
      "type": "string"
    },
    "year": {
      "label": "Year",
      "type": "number"
    },
    "doi": {
      "label": "DOI",
      "type": "string"
    },
    "pages": {
      "label": "Pages",
      "type": "string"
    },
    "publisher": {
      "label": "Publisher",
      "type": "string"
     },
     },
     "pdf": {
     "title": {},
      "label": "PDF Link",
    "author": {},
      "type": "url"
    "advisor": {},
     }
    "institution": {},
    "conference": {},
    "publisher": {},
     "date": {},
    "pages": {},
    "doi": {},
    "arxiv": {},
    "series": {}
   },
   },
   "paramOrder": [
   "paramOrder": [
     "title",
     "title", "youtube", "image", "imageWidth", "imageHeight", "caption",
    "youtube",
     "author", "advisor", "institution", "conference", "publisher", "date",
    "caption",
     "pages", "doi", "arxiv", "series"
    "imageWidth",
    "imageHeight",
     "authors",
    "conference",
    "journal",
    "year",
     "doi",
    "pages",
    "publisher",
    "pdf"
   ],
   ],
   "format": "block"
   "format": "block"

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

<iframe width=""{{{imageWidth}}}" height="{{{imageHeight}}}" src="https://www.youtube.com/embed/{{#invoke:String%7Creplace%7Csource={{{youtube}}}%7Cpattern=^.*v=([^&]+).*$|replacement=\1}}" frameborder="0" allowfullscreen"> </iframe>

{{{title}}}
Paper Information
Author{{{author}}}
Advisor{{{advisor}}}
Institution{{{institution}}}
Conference{{{conference}}}
Publisher{{{publisher}}}
Published{{{date}}}
Pages{{{pages}}}
DOI{{{doi}}}
arXivarXiv:{{{arxiv}}}
Series{{{series}}}

<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>


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>