User:Ague/Projects

Template:ScrollWandPotion
 <> found in  in
 * ML:, CL: BV:

Parameter List

 * 1: Vendor Name
 * Links to the vendor's DDOWiki page
 * 2: Vendor Title
 * The title hovering over the vendor's head between the <> characters
 * 3: Location
 * The Location of the of the vendor, i.e. The Portable Hole
 * 4: Public Zone
 * The public area that the Location can be found in, i.e. House Jorasco
 * 5: Minimum Level
 * Self Explanatory
 * 6: Caster Level
 * Self Explanatory
 * 7: UMD
 * Self Explanatory. Leave blank if there is no UMD associated with the item.
 * 8: Base Price
 * The price that is located in the examin box of the item. This is not the price shown in the vendor window.  This price is before the Haggle skill is applied.
 * 9: Binding
 * Enter BTA for Bound to Account or BTC for Bound to Character or leave blank if it is not bound.

Tooltip Display Issue Fix
11 April, 2012

Add the following code to the custom CSS of the template you wish to use. This will make tooltips appear properly. I haven't tested this in any template other than Vector, so I am unaware of if the color's will match the theme or not. If you try it, please discuss it on my Talk Page.

span.has_tooltip { position: relative; }

span.has_tooltip span.tooltip { display: none; }

span.has_tooltip:hover span.tooltip { display: block; width: 200%; position: absolute; top: 9px; left: 13px; }

&lt;pre&gt; Fix
16 April, 2012

/* fix */ /* pre { max-width: 900px; min-width: 400px; white-space: pre-wrap !important; word-wrap: break-word; overflow: auto; } /* End fix */
 * Of course, this does not work if you add it to your user/common.css and are using a Truglass theme.
 * Those themes are bugged and never actually read the user/common.css file.

Javascript Namespace Stripping
20 April, 2012 /* Namespace Stripping Fix by Ague 20 April 2012 $('a[title^="Item:"]').each(function {   this.innerHTML = this.innerHTML.replace("Item:", "");    this.title = this.title.replace("Item:", ""); }) /* Leave final semi-colon out. When MW parses this, for some reason it automatically adds a semi-colon. */

/* Optionally, un-comment the code below to strip the Item: from the page title as well.

MAKE SURE TO ADD THE SEMI-COLON AFTER THE }) ABOVE IF YOU UN-COMMENT BELOW! */

/* $('h1#title').each(function {   this.innerHTML = this.innerHTML.replace("Item:", ""); }); $('title').each(function {   this.innerHTML = this.innerHTML.replace("Item:", ""); })

General Notes

 * Working on adding some sort of functional transperancy, look in my sandbox to see what I'm talking about
 * I never really understood the purpose for having a "Short" and a "Long" popup. Always seemed rather redundant.  Could add a switch to make the popup a little longer, but popup's are only supposed to contain little tidbits of extra info that compliment the word or phrase being hovered over.

Project Notes

 * Removing the defunct Enterwiki reference to a Trueglass theme specific image
 * Moving the popup to a more functional location
 * General beautification
 * Removed deprecated CSS styles and HTML
 * Removed need for outdated infobox template
 * Added tooltip icon to easily identify words/phrases/sentences with tooltips
 * Updated cursor icon to show the "I" when hovering over text to help users identify that they can select and copy text
 * Moved the width variable to the end so it may be omitted if desired without breaking the template

Before



After



Coding