Difference between revisions of "Template:Youtube-box"
Jump to navigation
Jump to search
Maczkopeti (talk | contribs) m |
|||
Line 3: | Line 3: | ||
|+ {{{3|Video}}} | |+ {{{3|Video}}} | ||
| style="padding:0 1pt" | {{#widget:YouTube|id={{{2}}}|width=480|height=270}} | | style="padding:0 1pt" | {{#widget:YouTube|id={{{2}}}|width=480|height=270}} | ||
− | |}</includeonly><noinclude> | + | |}{{#ifeq:{{{1|}}}|blue_left|[[Category:Youtube-box/blue_left]]}}</includeonly><noinclude> |
− | + | ==Usage== | |
− | * '''textbox_attributes''' | + | <nowiki>{{youtube-box|textbox_attributes|youtube_id|title text}}</nowiki> |
− | ** '''bug''' | + | * '''textbox_attributes:''' attributes for [[Template:Textbox]], one of: |
− | ** '''original''' | + | ** '''bug:''' videos about bugs and glitches |
− | ** '''tutorial''' | + | ** '''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||3T7ieq27WMc|[[N64 Yoshi Valley]]}} | ||
Line 25: | Line 26: | ||
{{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 17:03, 16 May 2015
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=480|height=270}} |
{{#widget:YouTube|id=3T7ieq27WMc|width=480|height=270}} |
{{#widget:YouTube|id=3T7ieq27WMc|width=480|height=270}} |
{{#widget:YouTube|id=3T7ieq27WMc|width=480|height=270}} |