CommentPreview

Preview button for article 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.
 * 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.