User:Drek'TharSuperSword

I made a return.

Scripts I made
These are some scripts I made on Bookworm Adventures Wiki.

Global Navigation Background (CSS)
The old global navigation background script no longer works on the new one. However, I managed to make a new one.

Code:

/* Custom global navigation background */ .global-navigation { background: url(Your background URL goes here); } .global-navigation inverse { background: url(Your image URL goes here); }

How to use the standard YouTube embedding (and possibly other video embedding)
This script is useful if you just want the standard embedding without that annoying popup thing before the video plays. Also, you can customize the player size with this script.

This is also useful for embedding videos on sites that Wikia doesn't support (e.g. videos from your own site, IGN, Break, etc.), but the script needs to be tweaked so that the player renders (find it yourself).

Code pt. 1 (Make a new MediaWiki page name it "YTEmbed" for this one)



The reason why it needs to be split into two parts will be explained below.

Usage
YTEmbed (YOUTUBE VIDEO ID) YTEmbedEnd

Explanation:

YTEmbed verbatim: This begins the iframe embedding.

YouTube video ID: This is the unique video ID on YouTube video URL, e.g. www.youtube.com/watch?v=lV1S7mKFUjI. Only copy that section, DO NOT copy any other parts.

YTEmbedEnd verbatim: This finishes the iframe embedding.

Why does it need to be split into two parts?
Because if it's not split into two parts, then it's impossible to add the YouTube video ID without editing the MediaWiki script.