Template:Pagelinx/doc

From RationalWiki
Jump to navigation Jump to search

Usage

PARAMETERS:

  • with no parameters the box appears at bottom left. {{Pagelinx}}
  • with first parameter only (Right or right) the box is positioned at the bottom right of the screen. {{pagelinx|right}}
  • with second parameter only (Top or top) box is positioned 30 pixels from the top at the leftof the screen. {{pagelinx||top}} note two "|"s!
  • with both parameters box is flush with the right side of the screen & 30 pixels from the top. {{pagelinx|right|top}}

Edit to see the code.

The result of the above will not be visible to those without the following on their Monobook.js page.

function showFloatingBox() {
	var divs = document.getElementsByTagName("div");
	for (var i = 0; i < divs.length; ++i) {
		if (hasClass(divs[i], "plainlinks")) {
			divs[i].style.visibility = "visible";
		}
	}
}

addOnloadHook(showFloatingBox);

I've tried to z-index it behind everything but it appears that the Ads & the toolbox on the left don't wanna know, although the navigation, search, logo & bottom ads do!

Here's {{pagelinx|right}}

.



tip:

  • type: "user:(your name)/monobook.js" in the search box & click "Go" to go to or create your monobook.js page
  • or type: "user:(your name)/monobook_adfree.js" in the search box & click "Go" if you're using the "adfree" skin.


Testing: This page is: Template:Pagelinx/doc

See also