Jump to content

Template:Presentation: Difference between revisions

From LabVIEW Wiki
Change YouTube extension for the YouTube widget
m Add missing space
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><div style="display: block">'''{{{title|{{SUBPAGENAME}}}}}''' {{#if:{{{presenters|{{{presentors|}}}}}}|by {{{presenters|{{{presentors}}}}}}|[[Category:Presentations without presenters]]}}
'''{{{title}}}''' by {{{presentors}}}


{{#if: {{{abstract|}}}| ''{{{abstract}}}'' <br /><br />| }}
{{#if:{{{abstract|}}}|<blockquote><i>{{{abstract}}}</i></blockquote><br><br>|}}
<div style="text-align:center;">{{#widget:YouTube|id={{{youtubetag}}}|width=800|height=600}}</div>
{{#if:{{{youtube-id|{{{youtubetag|}}}}}}|<div style="text-align: center;">{{#widget:YouTube|id={{{youtube-id|{{{youtubetag|}}}}}}|width=640|height=360|start={{{youtube-start|0}}}}}</div>|[[Category:Presentations without video recording]]}}
 
</div></includeonly><noinclude>{{documentation}}</noinclude>
</includeonly>
<noinclude>
 
== Usage ==
 
Use this at the start of presentation pages to properly format the Title, Presentor(s), Abstract, and to embed the YouTube video on the page.
 
Syntax is as follows:
 
<code>
<nowiki>
{{presentation|title=Title Goes Here|presentors=John Doe and David B. Smith|abstract=This is an example of how to use the Presentation template|youtubetag=3iuHMHWVAGM}}
</nowiki>
</code>
 
where:
 
{| class="wikitable"
! Parameter
! Description
! Default
|-
| <code>title</code>
| Title of the Presentation.
| <code></code>
|-
| <code>presentors</code>
| Presentor or Presentors of the Presentation.
| <code></code>
|-
| <code>abstract</code> (optional)
| Abstract of the Presentation. Can be multiple lines or paragraphs.
| <code></code>
|-
| <code>youtubetag</code>
| The tag from YouTube for the view.  The tag can be found as the last group of characters when clicking on the "Share" link ona YouTube video page. Example: <code><nowiki>https://youtu.be/</nowiki>'''3iuHMHWVAGM'''</code> (the YouTube tag is in '''bold'''.
| <code></code>
|}
 
==Example==
 
===With an Abstract===
 
<code>
<nowiki>
{{presentation|title=Introducing GCentral: G Idea Exchange|presentors=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.|youtubetag=3iuHMHWVAGM}}
</nowiki>
</code>
 
{{presentation|title=Introducing GCentral: G Idea Exchange|presentors=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.|youtubetag=3iuHMHWVAGM}}
 
===Without an Abstract===
 
<code>
<nowiki>
{{presentation|title=Introducing GCentral: G Idea Exchange|presentors=Quentin "Q" Alldredge|youtubetag=3iuHMHWVAGM}}
</nowiki>
</code>
 
{{presentation|title=Introducing GCentral: G Idea Exchange|presentors=Quentin "Q" Alldredge|youtubetag=3iuHMHWVAGM}}
 
[[Category:Templates]]

Latest revision as of 07:46, 31 August 2024