User:Drek'TharSuperSword

I made a return here. You know, on PvZ wiki, there are soft release downloads for upcoming PvZ2 update, just a few weeks or days before it's officially released, so that I can make walkthroughs for them before other people do.

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. I actually made this for testing there, and this script literally works.

Code:

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

However, this will remove the "fade transition" when you scroll the page.

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. Also, you can only use one video ID if you do that, for other videos, you'll need to make a new MediaWiki page, and it wastes MediaWiki space.

Another disadvantage of not separating the code into two parts is that non-admins can't put their own video, since they'll need to make MediaWiki pages, which is impossible for non-admins.