Difference between revisions of "Template:Youtube-box"
Jump to navigation
Jump to search
m (Protected "Template:Youtube-box": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
|||
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{|class="youtube textbox video {{{1|}}}" style="border:0 none" |
− | {| class="youtube textbox {{{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> |
− | * '''youtube_id''' | + | == Usage == |
− | * '''title text''' | + | <nowiki>{{youtube-box|textbox_attributes|youtube_id|title text}}</nowiki> |
+ | * '''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 == |
− | + | <pre><nowiki> | |
− | {{youtube-box| | + | {{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]}} |
− | </noinclude> | + | {{youtube-box|bug|3T7ieq27WMc|bug}} |
+ | {{youtube-box|original|3T7ieq27WMc|original}} | ||
+ | {{youtube-box|tutorial|3T7ieq27WMc|tutorial}} | ||
+ | </nowiki></pre> | ||
+ | |||
+ | {{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]}} | ||
+ | {{youtube-box|bug|3T7ieq27WMc|bug}} | ||
+ | {{youtube-box|original|3T7ieq27WMc|original}} | ||
+ | {{youtube-box|tutorial|3T7ieq27WMc|tutorial}} | ||
+ | |||
+ | [[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}} |