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