Template:Presentation: Difference between revisions
Appearance
m Wrap content in a block container to ensure content alignment in relation to each other (e.g., video is centered below abstract when there is another element forcing a wrap) |
Make youtube-id optional (some videos may not yet be online) |
||
| Line 2: | Line 2: | ||
{{#if:{{{abstract|}}}| ''{{{abstract}}}'' <br><br>|}} | {{#if:{{{abstract|}}}| ''{{{abstract}}}'' <br><br>|}} | ||
<div style="text-align: center;"> | {{#if:{{{youtube-id|{{{youtubetag}}}}}} | ||
{{#widget:YouTube | | <div style="text-align: center;"> | ||
|id={{{youtube-id|{{{youtubetag}}}}}} | {{#widget:YouTube | ||
|width=640 | |id={{{youtube-id|{{{youtubetag}}}}}} | ||
|height=360 | |width=640 | ||
}} | |height=360 | ||
</div></div></includeonly><noinclude>{{documentation}}</noinclude> | }} | ||
</div> | |||
}}</div></includeonly><noinclude>{{documentation}}</noinclude> | |||
Revision as of 17:20, 15 August 2024
This documentation is transcluded from Template:Presentation/doc (history).
Usage
Use this at the start of presentation pages to properly format the Title, Presenter(s), Abstract, and to embed the YouTube video on the page.
{{presentation
|presenters=
|abstract=
|youtube-id=
}}
Parameters
| Parameter | Description |
|---|---|
title (optional)
|
Title of the Presentation. This is the page name by default. |
presenters (optional)
|
Presenter or Presenters of the Presentation. |
abstract (optional)
|
Abstract of the Presentation. Can be multiple lines or paragraphs. |
youtube-id
|
The YouTube video ID. It can be found as the last group of characters when clicking on the "Share" link on a YouTube video page. Example: https://youtu.be/3iuHMHWVAGM (the video ID is in bold).
|
youtube-start
|
The start time of the video in seconds. This is zero by default. |
Examples
With abstract
{{presentation
|title=Introducing GCentral: G Idea Exchange
|presenters=Quentin "Q" Alldredge
|abstract=This is an introduction to [[GCentral|GCentral's]] new crowd funding initiative [https://gie.gcentral.org The G Idea Exchange]. Its mission is to help get more tools developed for the LabVIEW Community.
|youtube-id=3iuHMHWVAGM
}}
Introducing GCentral: G Idea Exchange by Quentin "Q" Alldredge
This is an introduction to GCentral's new crowd funding initiative The G Idea Exchange. Its mission is to help get more tools developed for the LabVIEW Community.
Without abstract
{{presentation
|title=Introducing GCentral: G Idea Exchange
|presenters=Quentin "Q" Alldredge
|youtube-id=3iuHMHWVAGM
}}
Introducing GCentral: G Idea Exchange by Quentin "Q" Alldredge