- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Template:Videoframe: Difference between revisions
Jump to navigation
Jump to search
imported>JuniusThaddeus Repairing example. |
imported>Ld3105 workaround using MediaWiki's gallery slideshow elements |
||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><gallery mode="slideshow" style="display: none;"></gallery> | ||
<ul class="gallery mw-gallery-slideshow" style="margin: 0 auto; width: {{{width|570px}}}; {{{2|}}}"> | |||
-->{{#if:{{{5|}}}|< | {{#if:{{{4|}}}|<li class="gallerybox"><div class="gallerytext">{{{4}}}</div></li>|}}<!-- | ||
-->{{#if:{{{6|}}}|< | -->{{#if:{{{5|}}}|<li class="gallerybox"><div class="gallerytext">{{{5}}}</div></li>|}}<!-- | ||
-->{{#if:{{{7|}}}|< | -->{{#if:{{{6|}}}|<li class="gallerybox"><div class="gallerytext">{{{6}}}</div></li>|}}<!-- | ||
-->{{#if:{{{8|}}}|< | -->{{#if:{{{7|}}}|<li class="gallerybox"><div class="gallerytext">{{{7}}}</div></li>|}}<!-- | ||
-->{{#if:{{{9|}}}|< | -->{{#if:{{{8|}}}|<li class="gallerybox"><div class="gallerytext">{{{8}}}</div></li>|}}<!-- | ||
-->{{#if:{{{10|}}}|< | -->{{#if:{{{9|}}}|<li class="gallerybox"><div class="gallerytext">{{{9}}}</div></li>|}}<!-- | ||
-->{{#if:{{{11|}}}|< | -->{{#if:{{{10|}}}|<li class="gallerybox"><div class="gallerytext">{{{10}}}</div></li>|}}<!-- | ||
-->{{#if:{{{12|}}}|< | -->{{#if:{{{11|}}}|<li class="gallerybox"><div class="gallerytext">{{{11}}}</div></li>|}}<!-- | ||
-->{{#if:{{{13|}}}|< | -->{{#if:{{{12|}}}|<li class="gallerybox"><div class="gallerytext">{{{12}}}</div></li>|}}<!-- | ||
-->{{#if:{{{13|}}}|<li class="gallerybox"><div class="gallerytext">{{{13}}}</div></li>|}} | |||
</ul></includeonly><noinclude> | |||
Lets you create a frame with multiple videos and switch between them by using the "Previous" and "Next" buttons. | Lets you create a frame with multiple videos and switch between them by using the "Previous" and "Next" buttons. | ||
Line 24: | Line 24: | ||
==Examples== | ==Examples== | ||
<nowiki>{{videoframe|BOTDFvids|background-color: #FF6666;|font-weight: bold; | <nowiki>{{videoframe|BOTDFvids|background-color: #FF6666;|font-weight: bold; | ||
|<youtube>tCLBntJznsM</youtube>'''[[Dying Alone|Believe]]''' | |<youtube>tCLBntJznsM</youtube><center>'''[[Dying Alone|Believe]]'''</center> | ||
|<youtube>JVIwEGQiFUI</youtube>'''[[Hello Kitty|I <3 Hello Kitty]]''' | |<youtube>JVIwEGQiFUI</youtube><center>'''[[Hello Kitty|I <3 Hello Kitty]]'''</center> | ||
|<youtube>u9i-cphEtAM</youtube>'''[[Sexting]]''' | |<youtube>u9i-cphEtAM</youtube><center>'''[[Sexting]]'''</center> | ||
|<youtube>M2iDkf1SAWY</youtube>'''[[Blowjob|Scream For My Ice Cream]]''' | |<youtube>M2iDkf1SAWY</youtube><center>'''[[Blowjob|Scream For My Ice Cream]]'''</center> | ||
|<youtube>JbB51XglEuc</youtube>'''[[Almost Rape|Bitches Get Stitches]]'''}}</nowiki> | |<youtube>JbB51XglEuc</youtube><center>'''[[Almost Rape|Bitches Get Stitches]]'''</center>}}</nowiki> | ||
produces: | produces: | ||
{{videoframe|BOTDFvids|background-color: #FF6666;|font-weight: bold;|<youtube>tCLBntJznsM</youtube>'''[[Dying Alone|Believe]]'''|<youtube>JVIwEGQiFUI</youtube>'''[[Hello Kitty|I <3 Hello Kitty]]'''|<youtube>u9i-cphEtAM</youtube>'''[[Sexting]]'''|<youtube>M2iDkf1SAWY</youtube>'''[[Blowjob|Scream For My Ice Cream]]'''|<youtube>JbB51XglEuc</youtube>'''[[Almost Rape|Bitches Get Stitches]]'''}} | {{videoframe|BOTDFvids|background-color: #FF6666;|font-weight: bold;|<youtube>tCLBntJznsM</youtube><center>'''[[Dying Alone|Believe]]'''</center>|<youtube>JVIwEGQiFUI</youtube><center>'''[[Hello Kitty|I <3 Hello Kitty]]'''</center>|<youtube>u9i-cphEtAM</youtube><center>'''[[Sexting]]'''</center>|<youtube>M2iDkf1SAWY</youtube><center>'''[[Blowjob|Scream For My Ice Cream]]'''</center>|<youtube>JbB51XglEuc</youtube><center>'''[[Almost Rape|Bitches Get Stitches]]'''</center>}} | ||
===Rounded centered video frame=== | ===Rounded centered video frame=== | ||
<nowiki>{| style="margin: 0 auto" | <nowiki>{| style="margin: 0 auto" | ||
|{{frame|{{videoframe|RYTP|background-color: #FF4000;|font-weight: bold; | |{{frame|{{videoframe|RYTP|background-color: #FF4000;|font-weight: bold; | ||
|<youtube>LyM1UGD8sqM</youtube><br />'''5 words that will change your life forever''' | |<youtube>LyM1UGD8sqM</youtube><br /><center>'''5 words that will change your life forever'''</center> | ||
|<youtube>yBgnPMYHMTc</youtube><br />'''I like the part where he said "PINGAS"''' | |<youtube>yBgnPMYHMTc</youtube><br /><center>'''I like the part where he said "PINGAS"'''</center> | ||
|<youtube>23pXoyKBHd4</youtube><br />'''The [[YouTube Poop]] that started it all''' | |<youtube>23pXoyKBHd4</youtube><br /><center>'''The [[YouTube Poop]] that started it all'''</center> | ||
|<youtube>2_EwDlDr-FM</youtube><br />'''[[Sauce]] part 1''' | |<youtube>2_EwDlDr-FM</youtube><br /><center>'''[[Sauce]] part 1'''</center> | ||
|<youtube>d7gAtP6jhRs</youtube><br />'''Sauce part 2''' | |<youtube>d7gAtP6jhRs</youtube><br /><center>'''Sauce part 2'''</center> | ||
|<youtube>1QAQHxRo71g</youtube><br />'''Eggman goes back to his roots.'''}}|border=#FF4000|background=#FF4000}} | |<youtube>1QAQHxRo71g</youtube><br /><center>'''Eggman goes back to his roots.'''</center>}}|border=#FF4000|background=#FF4000}} | ||
|}</nowiki> | |}</nowiki> | ||
produces: | produces: | ||
{| style="margin: 0 auto" | {| style="margin: 0 auto" | ||
|{{frame|{{videoframe|RYTP|background-color: #FF4000;|font-weight: bold;|<youtube>LyM1UGD8sqM</youtube><br />'''5 words that will change your life forever'''|<youtube>yBgnPMYHMTc</youtube><br />'''I like the part where he said "PINGAS"'''|<youtube>23pXoyKBHd4</youtube><br />'''The [[YouTube Poop]] that started it all'''|<youtube>2_EwDlDr-FM</youtube><br />'''[[Sauce]] part 1'''|<youtube>d7gAtP6jhRs</youtube><br />'''Sauce part 2'''|<youtube>1QAQHxRo71g</youtube><br />'''Eggman goes back to his roots.'''}}|border=#FF4400|background=#FF4400}} | |{{frame|{{videoframe|RYTP|background-color: #FF4000;|font-weight: bold;|<youtube>LyM1UGD8sqM</youtube><br /><center>'''5 words that will change your life forever'''</center>|<youtube>yBgnPMYHMTc</youtube><br /><center>'''I like the part where he said "PINGAS"'''</center>|<youtube>23pXoyKBHd4</youtube><br /><center>'''The [[YouTube Poop]] that started it all'''</center>|<youtube>2_EwDlDr-FM</youtube><br /><center>'''[[Sauce]] part 1'''</center>|<youtube>d7gAtP6jhRs</youtube><br /><center>'''Sauce part 2'''</center>|<youtube>1QAQHxRo71g</youtube><br /><center>'''Eggman goes back to his roots.'''</center>}}|border=#FF4400|background=#FF4400}} | ||
|} | |} | ||
[[Category:Formatting Templates|{{PAGENAME}}]]</noinclude> | [[Category:Formatting Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 18:43, 14 March 2021
Lets you create a frame with multiple videos and switch between them by using the "Previous" and "Next" buttons.
Syntax
{{ videoframe | name | style | button styles | first youtube link | second one | etc. (max. 10 links) }}
- name - gives the frame a unique name, e.g. OBAMAvids1, OBAMAvids2 (you can't use the same name twice on one page)
- style - changes the frame style, e.g. background-color:red. See here for more.
- button styles - changes the font of prev/next buttons, e.g. font-size:125%. See here for more.
- youtube link - ID of a YouTube video enclosed in <youtube> tags, after ?v=
Note: remember to remove all whitespaces (except for the ones in links) and put everything in one long line, otherwise it might get broken.
Examples
{{videoframe|BOTDFvids|background-color: #FF6666;|font-weight: bold; |<youtube>tCLBntJznsM</youtube><center>'''[[Dying Alone|Believe]]'''</center> |<youtube>JVIwEGQiFUI</youtube><center>'''[[Hello Kitty|I <3 Hello Kitty]]'''</center> |<youtube>u9i-cphEtAM</youtube><center>'''[[Sexting]]'''</center> |<youtube>M2iDkf1SAWY</youtube><center>'''[[Blowjob|Scream For My Ice Cream]]'''</center> |<youtube>JbB51XglEuc</youtube><center>'''[[Almost Rape|Bitches Get Stitches]]'''</center>}}
produces:
Rounded centered video frame
{| style="margin: 0 auto" |{{frame|{{videoframe|RYTP|background-color: #FF4000;|font-weight: bold; |<youtube>LyM1UGD8sqM</youtube><br /><center>'''5 words that will change your life forever'''</center> |<youtube>yBgnPMYHMTc</youtube><br /><center>'''I like the part where he said "PINGAS"'''</center> |<youtube>23pXoyKBHd4</youtube><br /><center>'''The [[YouTube Poop]] that started it all'''</center> |<youtube>2_EwDlDr-FM</youtube><br /><center>'''[[Sauce]] part 1'''</center> |<youtube>d7gAtP6jhRs</youtube><br /><center>'''Sauce part 2'''</center> |<youtube>1QAQHxRo71g</youtube><br /><center>'''Eggman goes back to his roots.'''</center>}}|border=#FF4000|background=#FF4000}} |}
produces: