다른 명령
편집 요약 없음 |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
<includeonly> | <includeonly><!-- | ||
<!-- | |||
<!-- | Template | ||
{{#if:{{{youtube|}}} | --><table class="tg-infobox floatright"><!-- | ||
-->{{#if:{{{youtube|}}} | |||
| <tr><td colspan="2"> | |||
<div class="video-container"> | |||
{{#tag:iframe | |||
| | |||
| 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 | |||
|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> | |||
< | <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><!-- | ||
Documentation | |||
------------- | |||
--><noinclude> | |||
<noinclude> | |||
{{paper | {{paper | ||
| title={{{title}}} | | title={{{title}}} | ||
| youtube={{{youtube}}} | | youtube={{{youtube}}} | ||
| | | image={{{image}}} | ||
| imageWidth={{{imageWidth}}} | | imageWidth={{{imageWidth}}} | ||
| imageHeight={{{imageHeight}}} | | imageHeight={{{imageHeight}}} | ||
| | | caption={{{caption}}} | ||
| author={{{author}}} | |||
| advisor={{{advisor}}} | |||
| institution={{{institution}}} | |||
| conference={{{conference}}} | | conference={{{conference}}} | ||
| | | publisher={{{publisher}}} | ||
| | | date={{{date}}} | ||
| pages={{{pages}}} | |||
| doi={{{doi}}} | | doi={{{doi}}} | ||
| | | arxiv={{{arxiv}}} | ||
| | | series={{{series}}} | ||
}} | }} | ||
121번째 줄: | 128번째 줄: | ||
{{paper | {{paper | ||
| title= | | title= | ||
| youtube=https://www.youtube.com/watch?v= | | youtube=https://www.youtube.com/watch?v=xxxxxxxxxxx | ||
| | | image= | ||
| imageWidth=320 | | imageWidth=320 | ||
| imageHeight=180 | | imageHeight=180 | ||
| | | caption= | ||
| author= | |||
| advisor= | |||
| institution= | |||
| conference= | | conference= | ||
| | | publisher= | ||
| | | date= | ||
| pages= | |||
| doi= | | doi= | ||
| | | arxiv= | ||
| | | series= | ||
}} | }} | ||
</pre> | </pre> | ||
140번째 줄: | 150번째 줄: | ||
{ | { | ||
"params": { | "params": { | ||
"youtube": { | "youtube": { | ||
"label": "YouTube link", | "label": "YouTube link", | ||
"description": " | "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": " | "label": "Caption", | ||
"description": "Caption for image or video", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
"imageWidth": { | "imageWidth": { | ||
"label": " | "label": "Image width", | ||
"description": "Width in px", | |||
"type": "number", | "type": "number", | ||
"default": 320 | "default": "320" | ||
}, | }, | ||
"imageHeight": { | "imageHeight": { | ||
"label": " | "label": "Image height", | ||
"description": "Height in px", | |||
"type": "number", | "type": "number", | ||
"default": 180 | "default": "180" | ||
}, | }, | ||
" | "title": {}, | ||
"author": {}, | |||
"advisor": {}, | |||
} | "institution": {}, | ||
"conference": {}, | |||
"publisher": {}, | |||
"date": {}, | |||
"pages": {}, | |||
"doi": {}, | |||
"arxiv": {}, | |||
"series": {} | |||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"title", | "title", "youtube", "image", "imageWidth", "imageHeight", "caption", | ||
"author", "advisor", "institution", "conference", "publisher", "date", | |||
"pages", "doi", "arxiv", "series" | |||
" | |||
" | |||
], | ], | ||
"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}}} |
arXiv | arXiv:{{{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>