Difference between revisions of "Template:Youtube-box"
Jump to navigation
Jump to search
Maczkopeti (talk | contribs) m |
m (Protected "Template:Youtube-box": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(15 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{|class="youtube textbox video {{{1|}}}" | + | <includeonly>{|class="youtube textbox video {{{1|}}}" style="border:0 none" |
{{#if:{{{3}}}|{{!}}+}}{{{3|Video}}} | {{#if:{{{3}}}|{{!}}+}}{{{3|Video}}} | ||
− | |style= | + | |style=padding:0;line-height:0|{{#widget:YouTube|id={{{2}}}|width={{{width|400}}}|height={{{height|225}}}}} |
− | |}{{#switch:{{{1|}}}|blue|left|blue | + | |}<!-- |
− | ==Usage== | + | -->{{#switch:{{{1|}}}|blue|blue left|left|left blue=[[Category:Youtube-box/blue left]]}}<!-- |
+ | -->{{#if:{{#pos:{{{3|}}}|Dolphin}}|[[Category:Youtube-box/Dolphin]]}}<!-- | ||
+ | --></includeonly><noinclude> | ||
+ | == Usage == | ||
<nowiki>{{youtube-box|textbox_attributes|youtube_id|title text}}</nowiki> | <nowiki>{{youtube-box|textbox_attributes|youtube_id|title text}}</nowiki> | ||
* '''textbox_attributes:''' attributes for [[Template:Textbox]], one of: | * '''textbox_attributes:''' attributes for [[Template:Textbox]], one of: | ||
Line 13: | Line 16: | ||
* '''title text:''' text of header line | * '''title text:''' text of header line | ||
− | ==Examples== | + | == Examples == |
<pre><nowiki> | <pre><nowiki> | ||
{{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]}} | {{youtube-box||3T7ieq27WMc|[[N64 Yoshi Valley]]}} |
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}} |