Difference between revisions of "Template:Youtube-box"
Jump to navigation
Jump to search
m |
m (Protected "Template:Youtube-box": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{|class="youtube textbox video {{{1|}}}" style="border:0 none" |
− | {| class="youtube textbox video {{{1|}}}" | + | {{#if:{{{3}}}|{{!}}+}}{{{3|Video}}} |
− | |+ {{{3|Video}}} | + | |style=padding:0;line-height:0|{{#widget:YouTube|id={{{2}}}|width={{{width|400}}}|height={{{height|225}}}}} |
− | | style= | + | |}<!-- |
− | |}</ | + | -->{{#switch:{{{1|}}}|blue|blue left|left|left blue=[[Category:Youtube-box/blue left]]}}<!-- |
− | + | -->{{#if:{{#pos:{{{3|}}}|Dolphin}}|[[Category:Youtube-box/Dolphin]]}}<!-- | |
− | * '''textbox_attributes''' | + | --></includeonly><noinclude> |
− | ** '''bug''' | + | == Usage == |
− | ** '''original''' | + | <nowiki>{{youtube-box|textbox_attributes|youtube_id|title text}}</nowiki> |
− | ** '''tutorial''' | + | * '''textbox_attributes:''' attributes for [[Template:Textbox]], one of: |
+ | ** '''bug:''' videos about bugs and glitches | ||
+ | ** '''original:''' videos of original tracks. | ||
+ | ** '''tutorial:''' tutorial videos. | ||
** empty for all other kinds of videos (standard video) | ** empty for all other kinds of videos (standard video) | ||
− | * '''youtube_id''' | + | * '''youtube_id:''' ID of YouTube video |
− | * '''title text''' | + | * '''title text:''' text of header line |
== Examples == | == Examples == | ||
<pre><nowiki> | <pre><nowiki> | ||
− | + | {{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]}} | |
− | + | {{youtube-box|bug|3T7ieq27WMc|bug}} | |
− | + | {{youtube-box|original|3T7ieq27WMc|original}} | |
− | + | {{youtube-box|tutorial|3T7ieq27WMc|tutorial}} | |
</nowiki></pre> | </nowiki></pre> | ||
Line 25: | Line 28: | ||
{{youtube-box|original|3T7ieq27WMc|original}} | {{youtube-box|original|3T7ieq27WMc|original}} | ||
{{youtube-box|tutorial|3T7ieq27WMc|tutorial}} | {{youtube-box|tutorial|3T7ieq27WMc|tutorial}} | ||
− | </noinclude> | + | |
+ | [[Category:Template/Include]]</noinclude> |
Revision as of 22:42, 18 August 2016
Usage
{{youtube-box|textbox_attributes|youtube_id|title text}}
- textbox_attributes: attributes for Template:Textbox, one of:
- bug: videos about bugs and glitches
- original: videos of original tracks.
- tutorial: tutorial videos.
- empty for all other kinds of videos (standard video)
- youtube_id: ID of YouTube video
- title text: text of header line
Examples
{{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]}} {{youtube-box|bug|3T7ieq27WMc|bug}} {{youtube-box|original|3T7ieq27WMc|original}} {{youtube-box|tutorial|3T7ieq27WMc|tutorial}}
{{#widget:YouTube|id=3T7ieq27WMc|width=400|height=225}} |
{{#widget:YouTube|id=3T7ieq27WMc|width=400|height=225}} |
{{#widget:YouTube|id=3T7ieq27WMc|width=400|height=225}} |
{{#widget:YouTube|id=3T7ieq27WMc|width=400|height=225}} |