Registration has been disabled and the moderation extension has been turned off.

Contact an admin on Discord or EDF if you want an account. Also fuck bots.

Template:Videoframe2: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>Ld3105
https://web.archive.org/web/20170527173449/https://encyclopediadramatica.rs/index.php?title=Template:Videoframe2&action=edit
imported>Ld3105
workaround using MediaWiki's gallery slideshow elements
Line 1: Line 1:
<includeonly><span class="morphMaster" id="{{{1}}}Master"></span>
<includeonly><gallery mode="slideshow" style="display: none;"></gallery>
 
<ul class="gallery mw-gallery-slideshow" style="margin: 0 auto; width: {{{width|570px}}}; {{{2|}}}">
<table style="{{{2}}}">
{{#if:{{{4|}}}|<li class="gallerybox"><div class="gallerytext">{{{4}}}</div></li>|}}<!--
<tr>
-->{{#if:{{{5|}}}|<li class="gallerybox"><div class="gallerytext">{{{5}}}</div></li>|}}<!--
<td><span class="nodlyoutube">{{ #if:{{{4|}}} | <center><span id="{{{1}}}Content1">{{{4}}}</span></center> |}}{{ #if:{{{5|}}} | <center><span id="{{{1}}}Content2">{{{5}}}</span></center> |}}{{ #if:{{{6|}}} | <center><span id="{{{1}}}Content3">{{{6}}}</span></center> |}}{{ #if:{{{7|}}} | <center><span id="{{{1}}}Content4">{{{7}}}</span></center> |}}{{ #if:{{{8|}}} | <center><span id="{{{1}}}Content5">{{{8}}}</span></center> |}}{{ #if:{{{9|}}} | <center><span id="{{{1}}}Content6">{{{9}}}</span></center> |}}{{ #if:{{{10|}}} | <center><span id="{{{1}}}Content7">{{{10}}}</span></center> |}}{{ #if:{{{11|}}} | <center><span id="{{{1}}}Content8">{{{11}}}</span></center> |}}{{ #if:{{{12|}}} | <center><span id="{{{1}}}Content9">{{{12}}}</span></center> |}}{{ #if:{{{13|}}} | <center><span id="{{{1}}}Content10">{{{13}}}</span></center> |}}</span></td>
-->{{#if:{{{6|}}}|<li class="gallerybox"><div class="gallerytext">{{{6}}}</div></li>|}}<!--
</tr>
-->{{#if:{{{7|}}}|<li class="gallerybox"><div class="gallerytext">{{{7}}}</div></li>|}}<!--
<tr>
-->{{#if:{{{8|}}}|<li class="gallerybox"><div class="gallerytext">{{{8}}}</div></li>|}}<!--
<td style="text-align: center;">
-->{{#if:{{{9|}}}|<li class="gallerybox"><div class="gallerytext">{{{9}}}</div></li>|}}<!--
<span id="{{{1}}}LinkPrev" style="{{{3}}}">Previous Video</span>&nbsp;&nbsp;|&nbsp;&nbsp;<span id="{{{1}}}LinkNext" style="{{{3}}}">Next Video</span>
-->{{#if:{{{10|}}}|<li class="gallerybox"><div class="gallerytext">{{{10}}}</div></li>|}}<!--
</td>
-->{{#if:{{{11|}}}|<li class="gallerybox"><div class="gallerytext">{{{11}}}</div></li>|}}<!--
</tr>
-->{{#if:{{{12|}}}|<li class="gallerybox"><div class="gallerytext">{{{12}}}</div></li>|}}<!--
</table></includeonly><noinclude>
-->{{#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.



Revision as of 18:50, 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) }}
  1. name - gives the frame a unique name, e.g. OBAMAvids1, OBAMAvids2 (you can't use the same name twice on one page)
  2. style - changes the frame style, e.g. background-color:red. See here for more.
  3. button styles - changes the font of prev/next buttons, e.g. font-size:125%. See here for more.
  4. 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