Difference between revisions of "Template:Youtube-box"
Jump to navigation
Jump to search
(Created page with "{| class="youtube textbox {{1}}" |+ {{2}} | {{#ev:youtube|{{{3}}}|400||}} |}<noinclude>category:Template/Include Usage: <nowiki>{{youtube-box|textbox_attributes|youtube_id|...") |
m (Protected "Template:Youtube-box": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(38 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {| class="youtube textbox {{1}}" | + | <includeonly>{|class="youtube textbox video {{{1|}}}" style="border:0 none" |
− | |+ {{ | + | {{#if:{{{3}}}|{{!}}+}}{{{3|Video}}} |
− | | {{# | + | |style=padding:0;line-height:0|{{#widget:YouTube|id={{{2}}}|width={{{width|400}}}|height={{{height|225}}}}} |
− | |}< | + | |}<!-- |
− | 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''' | + | * '''textbox_attributes:''' attributes for [[Template:Textbox]], one of: |
− | * '''youtube_id''' | + | ** '''bug:''' videos about bugs and glitches |
− | * '''title text''' | + | ** '''original:''' videos of original tracks. |
− | </noinclude> | + | ** '''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||3T7ieq27WMc|[[N64 Yoshi Valley]]}} | ||
+ | {{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}} |