CommentPreview/es

CommentPreview provides a preview button for article and blog comments.

Usage
There are no special conditions to use the script.

Language precedence: uselang (url -> script settings) -> wgContentLanguage -> en.

Configuration
It is possible to set some options: set debug mode, select language and add new language support etc.
 * Create configuration object (do it at first):
 * Enable debug mode:  This mode could be enabled via debug parameter. Example: /wiki/article?debug=1
 * Select language:  Where lang is language code (en, ru etc). By default, content language will be used (see language precedence above) with en as final fallback. uselang parameter takes precedence. Example: /wiki/article?uselang=en will select english language regardless any settings.
 * Add language
 * Where lang1 and lang2 are language codes (en, es etc); preview text, cancel text and publish text is text for corresponding button. Any amount of comma-separated languages can be added. If some parameters are missed, then fallback language will be used (see language precedence above).

Note: it is possible to add language right into the code. One can suggest new language, or add it in the script, if js-familiar.
 * Change throbber:
 * Where image is full path to the throbber image. Only wikia-related sources allowed is (*.wikia.com and *.wikia.nocookie.net).

Classes
There is some classes to help style the preview.
 * cp-modal: main container aka modal wrapper.
 * cp-window: preview window.
 * cp-header: header. Header text lies in the H1 element.
 * cp-xcancel: X button in the header.

Note: you will have to use !important to override some styles. Do not override float property for .cp-button-preview. For realsies.
 * cp-content: preview body. Inner content has page-like styling.
 * cp-footer: preview footer. Cancel and Publish buttons lies here.
 * cp-button: buttons shares that class. Also, every button has own class: preview: cp-button-preview; publish: cp-button-publish; cancel: cp-button-cancel.

Forums' preview module styling
By default, this script's module interface does not use the styling of the preview modules found on Message Walls and on Special:Forum. As it aims for a basic interface that could work on any wiki, and encourages users to design it to their liking using the CSS classes mentioned on the previous section.

However, if you want a similar style to the one these mentioned features use on this script's module as well, you can put this snippet of code into your Wiki's Wikia.css:

Note: The "your color here" text must be replaced with the name of the color you would like to use.