„Szerkesztő:Palotasb/common.js” változatai közötti eltérés

Palotasb (vitalap | szerkesztései)
Kvíz currentCodeID = "2013.02.07. v1";
Palotasb (vitalap | szerkesztései)
aNincs szerkesztési összefoglaló
 
(6 közbenső módosítás ugyanattól a felhasználótól nincs mutatva)
1. sor: 1. sor:
/* Quiz.js for vikwikiQuiz project
/**
* Configuration of Toolbar module for wikiEditor
*/
$( '#wpTextbox1' ).on( 'wikiEditor-toolbar-doneInitialSections', function () {


Copyright (C) 2013 Palotás Boldizsár
( function( $ ) { $.wikiEditor.modules.toolbar.config = {


Permission is hereby granted, free of charge, to any person obtaining a copy
getDefaultConfig: function() {
of this software and associated documentation files (the "Software"), to deal
    var fileNamespace = mw.config.get( 'wgFormattedNamespaces' )[6];
in the Software without restriction, including without limitation the rights
    return { 'toolbar': {
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        // Main section
copies of the Software, and to permit persons to whom the Software is
        'main': {
furnished to do so, subject to the following conditions:
            'type': 'toolbar',
 
            'groups': {
The above copyright notice and this permission notice shall be included in
                'format': {
all copies or substantial portions of the Software.
                    'tools': {
 
                        'bold': {
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                            'labelMsg': 'wikieditor-toolbar-tool-bold',
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                            'type': 'button',
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                            'offset': {
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                                'default': [2, -574],
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
                                'en': [2, -142],
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
                                'cs': [2, -142],
THE SOFTWARE.
                                'de': [2, -214],
 
                                'fr': [2, -286],
(MIT License)
                                'gl': [2, -358],
 
                                'es': [2, -358],
*/
                                'he': [2, -142],
 
                                'hu': [2, -214],
(function (mw, $) {
                                'it': [2, -286],
    /*
                                'nl': [2, -502],
    Egy anonim függvényobjektumot hozunk létre, amit rögtön végre is hajtunk.
                                'pt': [2, -358],
    Mivel a függvény külön névtérben van, ezért a globális névteret (window)
                                'pt-br': [2, -358],
    nem szennyezzük a lokális változókkal, függvényekkel.
                                'pl': [2, -142],
    */
                                'ml': [2, -142]
 
                            },
    var questions = [],
                            'icon': {
        shownQuestionIds = [],
                                'default': 'format-bold.png',
        uiContentElement,
                                'en': 'format-bold-B.png',
        uiControlElements = {},
                                'cs': 'format-bold-B.png',
        config = new ConfObject(true, true),
                                'de': 'format-bold-F.png',
        stats = new StatObject(),
                                'fr': 'format-bold-G.png',
        defaultScoringMethod = +1,
                                'gl': 'format-bold-N.png',
        currentCodeID = "2013.02.07. v1";
                                'es': 'format-bold-N.png',
 
                                'he': 'format-bold-B.png',
    return init();
                                'hu': 'format-bold-F.png',
 
                                'it': 'format-bold-G.png',
    /*
                                'ka': 'format-bold-ka.png',
    Inicializáló függvény. Eldönti, hogy kvízoldalról va szó, és ha igen, akkor
                                'nl': 'format-bold-V.png',
    értelmezi és úgy alakítja át az oldalt, hogy interaktív kvízként működjön.
                                'os': 'format-bold-os.png',
    */
                                'pt': 'format-bold-N.png',
    function init() {
                                'pt-br': 'format-bold-N.png',
        if (!shouldLoadQuiz()) {
                                'pl': 'format-bold-B.png',
            return false;
                                'ru': 'format-bold-ru.png',
        }
                                'ml': 'format-bold-B.png'
        getDefaultScoringMethod(); // A kérdések parse-olása előtt kell legyen
                            },
        parseQuestionsInDocument(); // Kérdések feldolgozása
                            'action': {
        parseAnswerGroupsInQuestions(); // Kérdéseken belül a válaszlehetőségek
                                'type': 'encapsulate',
        uiCreateQuizInterface(); // Interfész (infobox) inicializása
                                'options': {
        uiPopulateQuizInterace(); // Interfészelemek létrehozása
                                    'pre': "'''",
        uiReset(); // Reset, hogy rögtön mehessen a kvíz
                                    'periMsg': 'wikieditor-toolbar-tool-bold-example',
        return true;
                                    'post': "'''"
    }
                                }
 
                            }
    /*
                        },
    A kvíz alapbeállított pontozási módszerét tölti be az oldalról.
                        'italic': {
    */
                            'section': 'main',
    function getDefaultScoringMethod() {
                            'group': 'format',
        var defScorMethText = $('#vw-quiz-defaultscoringmethod').text();
                            'id': 'italic',
        if ($.trim(defScorMethText) === "-")
                            'labelMsg': 'wikieditor-toolbar-tool-italic',
            defaultScoringMethod = -1;
                            'type': 'button',
        if ($.trim(defScorMethText) === "+")
                            'offset': {
            defaultScoringMethod = +1;
                                'default': [2, -718],
    }
                                'en': [2, -862],
 
                                'cs': [2, -862],
    /*
                                'de': [2, -934],
    Eldönti, hogy be kell-e tölteni a kódot, kvízzé kell-e alakítani az oldalt.
                                'fr': [2, -862],
    */
                                'gl': [2, -790],
    function shouldLoadQuiz() {
                                'es': [2, -790],
        if ($('#vw-quiz-canvas').length !== 1)
                                'he': [2, -862],
            return false; // Ha nincs Kvízoldal sablon, vagy több is van -> NEM
                                'it': [2, -790],
        if (mw.config.values.wgAction !== 'view' &&
                                'nl': [2, -790],
            mw.config.values.wgAction !== 'submit')
                                'pt': [2, -862],
            return false; // Ha nem megtekintjük a kész oldalt, vagy nem
                                'pt-br': [2, -862],
                          // előnézetben vagyunk az oldal mentésekor -> NEM
                                'pl': [2, -862],
        if ($.cookie('vw-quiz-conf-loadcodeid') &&
                                'ru': [2, -934],
            $.cookie('vw-quiz-conf-loadcodeid') != currentCodeID)
                                'ml': [2, -862]
            return false; // Ha cookieval le van tiltva a kód -> NEM
                            },
        return true;      // Minden egyéb esetben IGEN
                            'icon': {
    }
                                'default': 'format-italic.png',
 
                                'en': 'format-italic-I.png',
    /*
                                'cs': 'format-italic-I.png',
    Az infoboxban frissíti a statisztikákat.
                                'de': 'format-italic-K.png',
    */
                                'fr': 'format-italic-I.png',
    function uiUpdateStats() {
                                'gl': 'format-italic-C.png',
        // Átlagteljesítmény, százalékosan
                                'es': 'format-italic-C.png',
        uiControlElements.uiStatAverageText.text(
                                'he': 'format-italic-I.png',
            stats.totalAnswers != 0 ?
                                'hu': 'format-italic-D.png',
            Math.round(stats.getRunningAverage() * 100).toString() + '%' :
                                'it': 'format-italic-C.png',
            ''
                                'ka': 'format-italic-ka.png',
        );
                                'nl': 'format-italic-C.png',
        // Kérdések száma
                                'os': 'format-italic-K.png',
        uiControlElements.uiStatAllQuestionsText.text(
                                'pt': 'format-italic-I.png',
            stats.totalAnswers.toString()
                                'pt-br': 'format-italic-I.png',
        );
                                'pl': 'format-italic-I.png',
        // Pontok száma két tizedesjegyre
                                'ru': 'format-italic-K.png',
        uiControlElements.uiStatGoodAnswersText.text(
                                'ml': 'format-italic-I.png'
            (Math.round(stats.totalPercentage * 100) / 100).toString()
                            },
        );
                            'action': {
    }
                                'type': 'encapsulate',
 
                                'options': {
    /*
                                    'pre': "''",
    Feldolozza a kérdéseket a dokumentumban.
                                    'periMsg': 'wikieditor-toolbar-tool-italic-example',
    Egy kérdés az első <H2> tagtől a következőig tart. Egy <HR> (horizontal
                                    'post': "''"
    rule) tag a kérdéssor végét jelöli (wikiszintexissal ez négy kötőjel ----),
                                }
    így lehet megjegyzéseket beszúrni a kérdéssor elé és mögé.
                            }
    */
                        }
    function parseQuestionsInDocument() {
                    }
        var CQ_UNINITIATED = -1;
                },
        var CQ_EXIT = -2;
                'insert': {
 
                    'tools': {
        // A tartalomrész felsőszintű elemei.
                        'xlink': {
        var uiContentElements = $('#mw-content-text > *');
                            'labelMsg': 'wikieditor-toolbar-tool-xlink',
 
                            'type': 'button',
        // Az első <H2>-ig mindent ignorálunk.
                            'icon': 'insert-xlink.png',
        // Onnantól kezdve a megfelelő QuestionObjectbe beletoljuk az összes alá
                            'offset': [-70, 2],
        // tartozó elemet
                            'action': {
        var questionId = CQ_UNINITIATED;
                                'type': 'encapsulate',
        for (var i = 0; i != uiContentElements.length && questionId != CQ_EXIT; i++) {
                                'options': {
            if (uiContentElements[i].nodeName === 'H2') {
                                    'pre': "[",
                questionId++ ;
                                    'periMsg': 'wikieditor-toolbar-tool-xlink-example',
                questions.push(new QuestionObject(questionId));
                                    'post': "]"
                questions[questionId].uiElements.push( $(uiContentElements[i]).detach()[0] );
                                }
            } else if (uiContentElements[i].nodeName === 'HR') {
                            }
                // <HR/> -> abort mission
                        },
                questionId = CQ_EXIT;
                        'ilink': {
            } else if (questionId > CQ_UNINITIATED) {
                            'labelMsg': 'wikieditor-toolbar-tool-ilink',
                questions[questionId].uiElements.push( $(uiContentElements[i]).detach()[0] );
                            'type': 'button',
                            'icon': 'insert-ilink.png',
                            'offset': [2, -1582],
                            'action': {
                                'type': 'encapsulate',
                                'options': {
                                    'pre': "[[",
                                    'periMsg': 'wikieditor-toolbar-tool-ilink-example',
                                    'post': "]]"
                                }
                            }
                        },
                        'file': {
                            'labelMsg': 'wikieditor-toolbar-tool-file',
                            'type': 'button',
                            'icon': 'insert-file.png',
                            'offset': [2, -1438],
                            'action': {
                                'type': 'encapsulate',
                                'options': {
                                    'pre': '[[' + fileNamespace + ':',
                                    'periMsg': 'wikieditor-toolbar-tool-file-example',
                                    'post': "|" + mw.config.get( 'wgWikiEditorMagicWords' ).img_thumbnail + "]]"
                                }
                            }
                        },
                        'signature': {
                            'labelMsg': 'wikieditor-toolbar-tool-signature',
                            'type': 'button',
                            'offset': [2, -1872],
                            'icon': 'insert-signature.png',
                            'action': {
                                'type': 'encapsulate',
                                'options': {
                                    'pre': "--[[Szerkesztő:Palotasb|Boldi]] ([[Szerkesztővita:Palotasb|vita]]) 2013. március 19., 18:07 (CET)"
                                }
                            }
                        }
                    }
                }
             }
             }
         }
         },
    }
        // Format section
 
         'advanced': {
    /*
             'labelMsg': 'wikieditor-toolbar-section-advanced',
    A QuestionObject-ekbe betöltött HTML-elemeket végignézve feldolgozza a
            'type': 'toolbar',
    válaszcsoportokat.
            'groups': {
    */
                'heading': {
    function parseAnswerGroupsInQuestions() {
                    'tools': {
         for (var i = 0; i != questions.length; i++) {
                        'heading': {
             questions[i].parseAnswerGroups(defaultScoringMethod, checkAnswer);
                            'labelMsg': 'wikieditor-toolbar-tool-heading',
        }
                            'type': 'select',
    }
                            'list': {
 
                                'heading-2' : {
    /*
                                    'labelMsg': 'wikieditor-toolbar-tool-heading-2',
    Létrehozza a kvizinterfészt. Bizonyos HTML-elemeket betölti egy-egy
                                    'action': {
    változóba a gyors elérésé érdekében.
                                        'type': 'encapsulate',
    */
                                        'options': {
    function uiCreateQuizInterface() {
                                            'pre': '== ',
        uiContentElement = $('#vw-quiz-content');
                                            'periMsg': 'wikieditor-toolbar-tool-heading-example',
 
                                            'post': ' ==',
        $('#toc').remove(); // tartalomjegyzék törléseaz oldalról, ha van
                                            'regex': /^(\s*)(={1,6})(.*?)\2(\s*)$/,
 
                                            'regexReplace': "$1==$3==$4",
        // Infobox stílusának beállítása
                                            'ownline': true
        var uiInfoboxElement = $('#vw-quiz-infobox');
                                        }
        uiInfoboxElement.css( {
                                    }
            position: 'fixed',
                                },
            right: $('#content').css('padding-right')
                                'heading-3' : {
        } );
                                    'labelMsg': 'wikieditor-toolbar-tool-heading-3',
        $('#vw-quiz-infobox .infobox').css('max-width', '100%');
                                    'action': {
        $('#mw-content-text').css('margin-right', uiInfoboxElement.width().toString() + 'px');
                                        'type': 'encapsulate',
        $('#mw-content-text').css('min-height', uiInfoboxElement.height().toString() + 'px');
                                        'options': {
 
                                            'pre': '=== ',
        // Infobox pozicionálása (hogy mindig látszódjon, ha görgetünk is)
                                            'periMsg': 'wikieditor-toolbar-tool-heading-example',
        var setInfoboxPosition = function() {
                                            'post': ' ===',
            var relTop = $('#vw-quiz-content').offset().top - $(window).scrollTop();
                                            'regex': /^(\s*)(={1,6})(.*?)\2(\s*)$/,
            $('#vw-quiz-infobox .infobox').offset({
                                            'regexReplace': "$1===$3===$4",
                top: (relTop < 10 ? 10 + $(window).scrollTop() : $('#vw-quiz-content').offset().top)
                                            'ownline': true
            });
                                        }
        };
                                    }
        $(window).scroll(setInfoboxPosition);
                                },
        setInfoboxPosition();
                                'heading-4' : {
    }
                                    'labelMsg': 'wikieditor-toolbar-tool-heading-4',
 
                                    'action': {
    /*
                                        'type': 'encapsulate',
    Az infobox (interfész) feltöltése a gombokkal és ezek exportálása egy
                                        'options': {
    változóba (uiControlElements) a gyors elérés érdekében.
                                            'pre': '==== ',
    */
                                            'periMsg': 'wikieditor-toolbar-tool-heading-example',
    function uiPopulateQuizInterace() {
                                            'post': ' ====',
        var uiStatAverageText      = $('#vw-quiz-stat-average');
                                            'regex': /^(\s*)(={1,6})(.*?)\2(\s*)$/,
        var uiStatAllQuestionsText = $('#vw-quiz-stat-allquestions');
                                            'regexReplace': "$1====$3====$4",
        var uiStatGoodAnswersText  = $('#vw-quiz-stat-goodanswers');
                                            'ownline': true
 
                                        }
        var resetButton = $('<input type="button" />').val('Újrakezdés');
                                    }
        resetButton.appendTo( $('#vw-quiz-stat-reset').text('') );
                                },
        resetButton.click(uiReset);
                                'heading-5' : {
       
                                    'labelMsg': 'wikieditor-toolbar-tool-heading-5',
        var checkAllButton = $('<input type="button" />').val('Minden válasz ellenőrzése');
                                    'action': {
        checkAllButton.appendTo( $('#vw-quiz-check-all').text('') );
                                        'type': 'encapsulate',
        checkAllButton.click(uiCheckAll);
                                        'options': {
 
                                            'pre': '===== ',
        var showAllCheckbox = $('<input type="checkbox" />').prop(
                                            'periMsg': 'wikieditor-toolbar-tool-heading-example',
            'checked', config.showAll
                                            'post': ' =====',
        ).prop(
                                            'regex': /^(\s*)(={1,6})(.*?)\2(\s*)$/,
            'id', 'vw-quiz-show-all-checkbox'
                                            'regexReplace': "$1=====$3=====$4",
        );
                                            'ownline': true
        showAllCheckbox.appendTo( $('#vw-quiz-conf-showall').text('') );
                                        }
 
                                    }
        var randomCheckbox = $('<input type="checkbox" />').prop(
                                }
            'checked', config.randomOrder
                            }
        ).prop(
                        }
            'id', 'vw-quiz-random-checkbox'
                    }
        );
                },
        randomCheckbox.appendTo( $('#vw-quiz-conf-ordering').text('') );
                'format': {
 
                    'labelMsg': 'wikieditor-toolbar-group-format',
        uiControlElements = {
                    'tools': {
            uiStatAverageText: uiStatAverageText,
                        'ulist': {
            uiStatAllQuestionsText: uiStatAllQuestionsText,
                            'labelMsg': 'wikieditor-toolbar-tool-ulist',
            uiStatGoodAnswersText: uiStatGoodAnswersText,
                            'type': 'button',
            resetButton: resetButton,
                            'icon': {
            checkAllButton: checkAllButton,
                                'default': 'format-ulist.png',
            randomCheckbox: randomCheckbox,
                                'default-rtl': 'format-ulist-rtl.png'
            showAllCheckbox: showAllCheckbox
                            },
        };
                            'offset': {
    }
                                'default': [2, -1366],
 
                                'default-rtl': [-70, -286]
    /*
                            },
    Randomizálja a megjelenített kérdések sorrendjét
                            'action': {
    */
                                'type': 'encapsulate',
    function randomizeDisplayOrder() {
                                'options': {
        var ArrayShuffle = function(a) {
                                    'pre': "* ",
            var d,
                                    'periMsg': 'wikieditor-toolbar-tool-ulist-example',
            c,
                                    'post': "",
            b = a.length;
                                    'ownline': true,
            while (b) {
                                    'splitlines': true
                c = Math.floor(Math.random() * b);
                                }
                d = a[--b];
                            }
                a[b] = a[c];
                        },
                a[c] = d;
                        'olist': {
            }
                            'labelMsg': 'wikieditor-toolbar-tool-olist',
            return a;
                            'type': 'button',
        };
                            'icon': {
 
                                'default': 'format-olist.png',
        shownQuestionIds = ArrayShuffle(shownQuestionIds);
                                'default-rtl': 'format-olist-rtl.png'
    }
                            },
   
                            'offset': {
    /*
                                'default': [2, -1078],
    A [Minden válasz ellenőrzése]/[Minden kérdés mutatása] gomb eseménykezelője
                                'default-rtl': [-70, -358]
    */
                            },
    function uiCheckAll() {
                            'action': {
        if (config.showAll) {
                                'type': 'encapsulate',
            // Ha minden látszik, akkor mindent ellenőrzünk
                                'options': {
            $(':button.vw-quiz-check-btn').click();
                                    'pre': "# ",
        } else {
                                    'periMsg': 'wikieditor-toolbar-tool-olist-example',
            // Ha nem minden kérdés látszik, akkor beállítjuk, hogy látszódjon,
                                    'post': "",
            // és resetelünk
                                    'ownline': true,
            uiControlElements.showAllCheckbox.prop('checked', true);
                                    'splitlines': true
            uiReset();
                                }
        }
                            }
    }
                        },
 
                        'indent': {
    /*
                            'labelMsg': 'wikieditor-toolbar-tool-indent',
    A beállítások betöltése az infoboxból.
                            'type': 'button',
    */
                            'icon': {
    function configSet() {
                                'default': 'format-indent.png',
        config.setRandomOrder(uiControlElements.randomCheckbox.prop('checked'));
                                'default-rtl': 'format-indent-rtl.png'
        config.setShowAll(uiControlElements.showAllCheckbox.prop('checked'))
                            },
    }
                            'offset': {
 
                                'default': [2, -646],
    /*
                                'default-rtl': [-70, -430]
    Újrakezdés. Az [Újrakezdés] gomb eseménykezelője is.
                            },
    */
                            'action': {
    function uiReset() {
                                'type': 'encapsulate',
        configSet();
                                'options': {
        reset();
                                    'pre': ":",
        uiShowQuestions();
                                    'periMsg': 'wikieditor-toolbar-tool-indent-example',
        uiUpdateStats();
                                    'post': "",
    }
                                    'ownline': true,
 
                                    'splitlines': true
    /*
                                }
    Újrakezdéskor visszaállítja a válaszadások közben megváltoztatott dolgokat.
                            }
    */
                        },
    function reset() {
                        'nowiki': {
        // Megjelenített kérdések listáját töröljük
                            'labelMsg': 'wikieditor-toolbar-tool-nowiki',
        shownQuestionIds = [];
                            'type': 'button',
        // Hogy érkezett-e válasz a kérdésre, azt is alaphelyzetbe állítjuk,
                            'icon': 'insert-nowiki.png',
        // majd a kérdést újra hozzáadjuk a megjelenített kérdések listájához.
                            'offset': [-70, -70],
        for (var i = 0; i != questions.length; i++) {
                            'action': {
            questions[i].submitted = false;
                                'type': 'encapsulate',
            questions[i].uiResetAnswers();
                                'options': {
            shownQuestionIds.push(i);
                                    'pre': "<nowiki>",
        }
                                    'periMsg': 'wikieditor-toolbar-tool-nowiki-example',
        // Ha kell, randomizáljuk a sorrendet.
                                    'post': "</nowiki>"
        if (config.randomOrder) {
                                }
            randomizeDisplayOrder();
                            }
        }
                        },
        // Mást csinál a gomb, ha minden kérdés látszik, és mást, ha csak 1.
                        'newline': {
        if (!config.showAll) {
                            'labelMsg': 'wikieditor-toolbar-tool-newline',
            uiControlElements.checkAllButton.val('Minden kérdés mutatása');
                            'type': 'button',
        } else {
                            'icon': 'insert-newline.png',
            uiControlElements.checkAllButton.val('Minden válasz ellenőrzése');
                            'offset': [2, -1726],
        }
                            'action': {
        // Statisztikák visszaállítása.
                                'type': 'encapsulate',
        stats.reset();
                                'options': {
    }
                                    'pre': "<br />\n"
 
                                }
    /*
                            }
    Újrakezdéskor megjeleníti a kérdéseket a megfelelő sorrendben az oldalon.
                        }
    */
                    }
    function uiShowQuestions() {
                },
        uiContentElement.children().detach();
                'size': {
        for (var i = 0; i != shownQuestionIds.length; i++) {
                    'tools': {
            questions[ shownQuestionIds[i] ].uiParentElement.appendTo(uiContentElement);
                        'big': {
            // Ha nem minden kell látszódjon, akkor elrejtjük a többi kérdést.
                            'labelMsg': 'wikieditor-toolbar-tool-big',
            if (!config.showAll && i != 0) {
                            'type': 'button',
                questions[ shownQuestionIds[i] ].uiParentElement.css('display', 'none');
                            'icon': 'format-big.png',
            } else {
                            'offset': [2, 2],
                // config.showAll || i == 0
                            'action': {
                questions[ shownQuestionIds[i] ].uiParentElement.css('display', 'block');
                                'type': 'encapsulate',
            }
                                'options': {
        }
                                    'pre': "<big>",
    }
                                    'periMsg': 'wikieditor-toolbar-tool-big-example',
 
                                    'post': "</big>"
    /*
                                }
    Egy adott kérdés bejelölt válaszainak ellenőrzése, eredmény mutatása stb.
                            }
    */
                        },
    function checkAnswer(question) {
                        'small': {
        // Amit már ellenőriztünk, azt nem ellenőrizzük újra.
                            'labelMsg': 'wikieditor-toolbar-tool-small',
        if (question.submitted) {
                            'type': 'button',
            return false;
                            'icon': 'format-small.png',
        }
                            'offset': [2, -1150],
        question.submitted = true;
                            'action': {
 
                                'type': 'encapsulate',
        // Válaszellenőrzés
                                'options': {
        var result = question.checkAnswer();
                                    'pre': "<small>",
        stats.totalAnswers += result.totalAnswers;
                                    'periMsg': 'wikieditor-toolbar-tool-small-example',
        stats.totalPercentage += result.totalPercentage;
                                    'post': "</small>"
        uiUpdateStats();
                                }
 
                            }
        // Következő kérdés mutatása, ha nem mind látszik
                        },
        if (!config.showAll) {
                        'superscript': {
            uiHidePreviousQuestion(question);
                            'labelMsg': 'wikieditor-toolbar-tool-superscript',
            uiShowNextQuestion(question);
                            'type': 'button',
        }
                            'icon': 'format-superscript.png',
    }
                            'offset': [2, -1294],
 
                            'action': {
    /*
                                'type': 'encapsulate',
    Egy kérdés válaszainak ellenőrzése után az előző kérdést elrejti.
                                'options': {
    */
                                    'pre': "<sup>",
    function uiHidePreviousQuestion(question) {
                                    'periMsg': 'wikieditor-toolbar-tool-superscript-example',
        var prevQuestion = getPreviousQuestion(question);
                                    'post': "</sup>"
        if (prevQuestion == null)
                                }
            return false;
                            }
        if (prevQuestion.uiParentElement.css('display') == 'none')
                        },
            return true;
                        'subscript': {
        prevQuestion.uiParentElement.slideUp();
                            'labelMsg': 'wikieditor-toolbar-tool-subscript',
        return true;
                            'type': 'button',
    }
                            'icon': 'format-subscript.png',
 
                            'offset': [2, -1222],
    /*
                            'action': {
    Egy kérdés válaszainak ellenőrzése után a következő kérdést megjeleníti.
                                'type': 'encapsulate',
    */
                                'options': {
    function uiShowNextQuestion(question) {
                                    'pre': "<sub>",
        var nextQuestion = getNextQuestion(question);
                                    'periMsg': 'wikieditor-toolbar-tool-subscript-example',
        if (nextQuestion == null) {
                                    'post': "</sub>"
            // Ha nincs több kérdés, akkor ezt külön üzenettel jelzi.
                                 }
            var uiEndOfQuizMessage = $('<p></p>').text('A kvíz véget ért.');
                             }
            uiEndOfQuizMessage.css({
                'padding': '1em',
                'border': '1px solid #aaa',
                'margin': '1em 0',
                'text-align': 'center',
                'font-size': '1.1em',
                'display': 'none'
            });
            uiContentElement.append(uiEndOfQuizMessage);
            uiEndOfQuizMessage.slideDown();
            return false;
        }
        if (nextQuestion.uiParentElement.css('display') == 'block')
            return true;
        nextQuestion.uiParentElement.slideDown();
        return true;
    }
 
    /*
    Visszatér a megjelenítési sorrend szerint az előző kérdéssel.
    */
    function getPreviousQuestion(question) {
        for (var i = 0; i != shownQuestionIds.length; i++) {
            if (question.id == shownQuestionIds[i] && i > 0) {
                return questions[ shownQuestionIds[i - 1] ];
            }
        }
        return null;
    }
 
    /*
    Visszatér a megjelenítési sorrend szerint a következő kérdéssel.
    */
    function getNextQuestion(question) {
        for (var i = 0; i != shownQuestionIds.length; i++) {
            if (question.id == shownQuestionIds[i] && i < shownQuestionIds.length - 1) {
                return questions[ shownQuestionIds[i + 1] ];
            }
        }
        return null;
    }
 
/* ------------------------------------------------------- */
 
/*
Egy kérdés adatai tartalmazó objektum.
Kezdetnek csak egy azonosítót kell megadni.
*/
function QuestionObject(id) {
    this.id = id;
    this.uiElements = [];
    this.uiParentElement = null;
    this.answers = [];
    this.submitted = false;
 
    /*
    A kérdésben a betöltött HTML-elemeket nézve kiolvassa a kérdésre a különböző
    válaszcsoportokban adható válaszokat.
    */
    this.parseAnswerGroups = function(defaultScoringMethod, answerCheckingFunction) {
        for (var j = 1; j < this.uiElements.length; j++) {
            var currentElement = this.uiElements[j];
            var previousElement = this.uiElements[j - 1];
 
            /*
            Egy válaszcsoport mindig egy <OL> rendezett listában van (#
            szintaxis), ha az előző elemben megtalálható a "vw-quiz-meta"
            osztályú elemet tartalmazó sablon, amely a helyes válaszok listáját,
            a kérdés és a pontozás típusát tartalmazza.
            */
            if (currentElement.nodeName === "OL"
                && $('.vw-quiz-meta', previousElement).length !== 0
            ) {
                this.answers.push(new AnswerGroupObject(
                    $('.vw-quiz-type', previousElement).text(),
                    $('.vw-quiz-answer', previousElement).text(),
                    $('.vw-quiz-scoringmethod', previousElement).text(),
                    $(currentElement).children().length,
                    currentElement,
                    this.id,
                    this.answers.length,
                    defaultScoringMethod
                ));
                $(previousElement).css('display', 'none'); // Meta elrejtése
            }
        }
        // Válaszgomb hozzáadása
        this.uiAddAnswerButton(answerCheckingFunction);
        // Egy darab tartalmazó <div> hozzáadása
        this.uiAddParentElement();
    };
 
    /*
    Egy darab a teljes kvízkérdést tartalmazó <div> létrehozása.
    */
    this.uiAddParentElement = function() {
        this.uiParentElement = $('<div></div>').addClass('vw-quiz-container').append(this.uiElements);
        this.uiParentElement.css({
            'padding': '.3em 1em 1em 1em',
            'border': '1px solid #aaa',
            'margin': '1em 0'
        });
    };
 
    /*
    Válaszgomb hozzáadása a kérdés legvégéhez. Az answerCheckingFunction a
    függvény, amit a gomb megnyomásakor meg kell hívni a válasz ellenőrzéséhez
    (a teljes kvízhez tartozik egy ilyen függvény, amit paraméterként átadunk).
    */
    this.uiAddAnswerButton = function(answerCheckingFunction) {
        var button = $('<input type="button" />').val('Ellenőrzés').addClass("vw-quiz-check-btn");
        button.css({
            'display': 'block',
            'margin-top': '1em',
            'font-size': '1.1em'
        });
        var self = this;
        button.click(function(eventObject) {
            answerCheckingFunction(self);
        });
        this.uiElements.push(button[0]);
    };
 
    /*
    Válaszok visszaállítása alaphelyzetbe (kitöltetlen és jelöletlen).
    */
    this.uiResetAnswers = function () {
        var answerElements = $('.vw-quiz-question > li', this.uiParentElement);
        answerElements.css({
            'margin': '.1em',
            'cursor': 'pointer',
            'background-color': 'transparent',
            'opacity': '1',
            'border': '1px solid transparent'
        });
        $(':radio, :checkbox', this.uiParentElement).prop('checked', false);
        $(':button, :checkbox, :radio', this.uiParentElement).css('cursor', 'pointer').prop('disabled', false);
    };
 
    /*
    A válaszok ellenőrzése egy adott kérdés esetén. Visszatér a kérdés
    pontértékével és az elért pontokkal.
    */
    this.checkAnswer = function() {
        // A pontszámok, amiket a felhasználó kap.
        var result = {
            totalAnswers: 0,
            totalPercentage: 0
        };
        for (var i = 0; i != this.answers.length; i++) {
            // interfész: válaszadás letiltása az ellenőrzéssel.
            $('input', this.uiParentElement).prop('disabled', true);
            $('input, .vw-quiz-question > li', this.uiParentElement).css('cursor', 'default')
 
            var points = 0;
            var ans = this.answers[i];
            if (ans.type === 1) {
                // Egyválaszos (radio button) kérdéstípus
                result.totalAnswers++;
                // A jó válasz kivételével az összes elhalványítása
                $('li:not(:nth-of-type(' + (ans.answer + 1).toString() + '))', ans.uiElement).not("li li").css({
                    'opacity': '0.5'
                });
                var userSelectedAnswer = $(':radio:checked', ans.uiElement).data('answer-id');
                if (!isNaN(userSelectedAnswer) && userSelectedAnswer !== ans.answer) {
                    // Hibás választ adott
                    result.totalPercentage += (ans.scoringMethod === -1 ? -1 : 0);
                    // Helyes választ sárgával jelöljük
                    $('li:nth-of-type(' + (ans.answer + 1).toString() + ')', ans.uiElement).not("li li").css({
                        'background-color': '#fff8d0',
                        'border-color': '#aa2'
                    });
                    // Megjelölt választ pirossal jelöljük
                    $('li:nth-of-type(' + (userSelectedAnswer + 1).toString() + ')', ans.uiElement).not("li li").css({
                        'background-color': '#ffe0e0',
                        'border-color': '#a00'
                    });
                } else if (!isNaN(userSelectedAnswer)) {
                    // Jót jelölt, zölddel jelöljük
                    result.totalPercentage += 1;
                    $('li:nth-of-type(' + (userSelectedAnswer + 1).toString() + ')', ans.uiElement).not("li li").css({
                        'background-color': '#d8f8d0',
                        'border-color': '#0a0',
                        'opacity': '1'
                    });
                } else {
                    // Nem jelölt semmit
                    // Helyes választ sárgával jelöljük
                    $('li:nth-of-type(' + (ans.answer + 1).toString() + ')', ans.uiElement).not("li li").css({
                        'background-color': '#fff8d0',
                        'border-color': '#aa2'
                    });
                }
            } else if (ans.type === 2) {
                // Többválaszos (checkbox) kérdéstípus
                result.totalAnswers++;
                var uiAnswerElements = $('li', ans.uiElement).not('li li');
                var partialPoints = 0;
 
                // Végigmegyünk az összes válaszlehetőségen
                for (var j = 0; j != uiAnswerElements.length; j++) {
                    var currentAnswerElement = $(uiAnswerElements[j]);
                    var checkbox = $(':checkbox', currentAnswerElement);
 
                    if (ans.answer.indexOf(j) !== -1) {
                        // Be kéne legyen jelölve
                        if (checkbox.prop('checked')) {
                            // Be is van
                            currentAnswerElement.css({
                                'border-color': '#0a0',
                                 'background-color': '#d8f8d0'
                            });
                            partialPoints++;
                        } else {
                            // Nincs, hibás válasz
                            currentAnswerElement.css({
                                'border-color': '#aa2',
                                'background-color': '#fff8d0'
                             });
                            if (ans.scoringMethod === -1)
                                partialPoints--;
                         }
                         }
                     } else {
                     }
                        // Nem kéne bejelölve legyen
                },
                         if (checkbox.prop('checked')) {
                'insert': {
                             // De mégis be van, hibás válasz
                    'labelMsg': 'wikieditor-toolbar-group-insert',
                             currentAnswerElement.css({
                    'tools': {
                                 'border-color': '#a00',
                         'gallery': {
                                'background-color': '#ffe0e0',
                             'labelMsg': 'wikieditor-toolbar-tool-gallery',
                                'opacity': '0.5'
                            'type': 'button',
                             });
                             'icon': 'insert-gallery.png',
                             if (ans.scoringMethod === -1)
                            'offset': [2, -1510],
                                partialPoints--;
                            'action': {
                         } else {
                                 'type': 'encapsulate',
                             // És nincs is, ezzel látszólag nem foglalkozunk,
                                'options': {
                             // mert csak zavaró, de pontot adunk rá.
                                    'pre': "<gallery>\n",
                             currentAnswerElement.css({
                                    'periMsg': [
                                 'opacity': '0.5'
                                        'wikieditor-toolbar-tool-gallery-example', fileNamespace
                             });
                                    ],
                             partialPoints++;
                                    'post': "\n</gallery>",
                                    'ownline': true
                                }
                            }
                        },
                        'table': {
                            'labelMsg': 'wikieditor-toolbar-tool-table',
                            'type': 'button',
                            'icon': 'insert-table.png',
                             'offset': [2, -1942],
                             'filters': [ '#wpTextbox1:not(.toolbar-dialogs)' ],
                            'action': {
                                'type': 'encapsulate',
                                'options': {
                                    'pre': "{| class=\"wikitable\" border=\"1\"\n|",
                                    'periMsg': 'wikieditor-toolbar-tool-table-example-old',
                                    'post': "\n|}",
                                    'ownline': true
                                }
                            }
                         },
                        'redirect': {
                             'labelMsg': 'wikieditor-toolbar-tool-redirect',
                            'type': 'button',
                             'icon': {
                                'default': 'insert-redirect.png',
                                'default-rtl': 'insert-redirect-rtl.png'
                             },
                            'offset': {
                                 'default': [-70, -142],
                                'default-rtl': [-70, -502]
                             },
                            'action': {
                                'type': 'encapsulate',
                                'options': {
                                    'pre': mw.config.get( 'wgWikiEditorMagicWords' ).redirect + ' [[',
                                    'periMsg': 'wikieditor-toolbar-tool-redirect-example',
                                    'post': "]]",
                                    'ownline': true
                                }
                             }
                         }
                         }
                     }
                     }
                 }
                 }
                result.totalPercentage += (partialPoints / ans.numberOfOptions);
             }
             }
         }
         },
         return result;
         'characters': {
    }
            'labelMsg': 'wikieditor-toolbar-section-characters',
}
            'type': 'booklet',
            'deferLoad': true,
            'pages': {
                'latin': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-latin',
                    'layout': 'characters',
                    'characters': [
                        "\u00c1", "\u00e1", "\u00c0", "\u00e0", "\u00c2", "\u00e2", "\u00c4", "\u00e4", "\u00c3",
                        "\u00e3", "\u01cd", "\u01ce", "\u0100", "\u0101", "\u0102", "\u0103", "\u0104", "\u0105",
                        "\u00c5", "\u00e5", "\u0106", "\u0107", "\u0108", "\u0109", "\u00c7", "\u00e7", "\u010c",
                        "\u010d", "\u010a", "\u010b", "\u0110", "\u0111", "\u010e", "\u010f", "\u00c9", "\u00e9",
                        "\u00c8", "\u00e8", "\u00ca", "\u00ea", "\u00cb", "\u00eb", "\u011a", "\u011b", "\u0112",
                        "\u0113", "\u0114", "\u0115", "\u0116", "\u0117", "\u0118", "\u0119", "\u011c", "\u011d",
                        "\u0122", "\u0123", "\u011e", "\u011f", "\u0120", "\u0121", "\u0124", "\u0125", "\u0126",
                        "\u0127", "\u00cd", "\u00ed", "\u00cc", "\u00ec", "\u00ce", "\u00ee", "\u00cf", "\u00ef",
                        "\u0128", "\u0129", "\u01cf", "\u01d0", "\u012a", "\u012b", "\u012c", "\u012d", "\u0130",
                        "\u0131", "\u012e", "\u012f", "\u0134", "\u0135", "\u0136", "\u0137", "\u0139", "\u013a",
                        "\u013b", "\u013c", "\u013d", "\u013e", "\u0141", "\u0142", "\u0143", "\u0144", "\u00d1",
                        "\u00f1", "\u0145", "\u0146", "\u0147", "\u0148", "\u00d3", "\u00f3", "\u00d2", "\u00f2",
                        "\u00d4", "\u00f4", "\u00d6", "\u00f6", "\u00d5", "\u00f5", "\u01d1", "\u01d2", "\u014c",
                        "\u014d", "\u014e", "\u014f", "\u01ea", "\u01eb", "\u0150", "\u0151", "\u0154", "\u0155",
                        "\u0156", "\u0157", "\u0158", "\u0159", "\u015a", "\u015b", "\u015c", "\u015d", "\u015e",
                        "\u015f", "\u0160", "\u0161", "\u0218", "\u0219", "\u021a", "\u021b", "\u0164", "\u0165",
                        "\u00da", "\u00fa", "\u00d9", "\u00f9", "\u00db", "\u00fb", "\u00dc", "\u00fc", "\u0168",
                        "\u0169", "\u016e", "\u016f", "\u01d3", "\u01d4", "\u016a", "\u016b", "\u01d6", "\u01d8",
                        "\u01da", "\u01dc", "\u016c", "\u016d", "\u0172", "\u0173", "\u0170", "\u0171", "\u0174",
                        "\u0175", "\u00dd", "\u00fd", "\u0176", "\u0177", "\u0178", "\u00ff", "\u0232", "\u0233",
                        "\u0179", "\u017a", "\u017d", "\u017e", "\u017b", "\u017c", "\u00c6", "\u00e6", "\u01e2",
                        "\u01e3", "\u00d8", "\u00f8", "\u0152", "\u0153", "\u00df", "\u00D0", "\u00f0", "\u00de",
                        "\u00fe", "\u018f", "\u0259"
                    ]
                },
                'latinextended': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-latinextended',
                    'layout': 'characters',
                    'characters': [
                        "\u1e00", "\u1e01", "\u1e9a", "\u1ea0", "\u1ea1", "\u1ea2", "\u1ea3", "\u1ea4", "\u1ea5",
                        "\u1ea6", "\u1ea7", "\u1ea8", "\u1ea9", "\u1eaa", "\u1eab", "\u1eac", "\u1ead", "\u1eae",
                        "\u1eaf", "\u1eb0", "\u1eb1", "\u1eb2", "\u1eb3", "\u1eb4", "\u1eb5", "\u1eb6", "\u1eb7",
                        "\u1e02", "\u1e03", "\u1e04", "\u1e05", "\u1e06", "\u1e07", "\u1e08", "\u1e09", "\u1e0a",
                        "\u1e0b", "\u1e0c", "\u1e0d", "\u1e0e", "\u1e0f", "\u1e10", "\u1e11", "\u1e12", "\u1e13",
                        "\u1e14", "\u1e15", "\u1e16", "\u1e17", "\u1e18", "\u1e19", "\u1e1a", "\u1e1b", "\u1e1c",
                        "\u1e1d", "\u1eb8", "\u1eb9", "\u1eba", "\u1ebb", "\u1ebc", "\u1ebd", "\u1ebe", "\u1ebf",
                        "\u1ec0", "\u1ec1", "\u1ec2", "\u1ec3", "\u1ec4", "\u1ec5", "\u1ec6", "\u1ec7", "\u1e1e",
                        "\u1e1f", "\u1e20", "\u1e21", "\u1e22", "\u1e23", "\u1e24", "\u1e25", "\u1e26", "\u1e27",
                        "\u1e28", "\u1e29", "\u1e2a", "\u1e2b", "\u1e96", "\u1e2c", "\u1e2d", "\u1e2e", "\u1e2f",
                        "\u1ec8", "\u1ec9", "\u1eca", "\u1ecb", "\u1e30", "\u1e31", "\u1e32", "\u1e33", "\u1e34",
                        "\u1e35", "\u1e36", "\u1e37", "\u1e38", "\u1e39", "\u1e3a", "\u1e3b", "\u1e3c", "\u1e3d",
                        "\u1efa", "\u1efb", "\u1e3e", "\u1e3f", "\u1e40", "\u1e41", "\u1e42", "\u1e43", "\u1e44",
                        "\u1e45", "\u1e46", "\u1e47", "\u1e48", "\u1e49", "\u1e4a", "\u1e4b", "\u1e4c", "\u1e4d",
                        "\u1e4e", "\u1e4f", "\u1e50", "\u1e51", "\u1e52", "\u1e53", "\u1ecc", "\u1ecd", "\u1ece",
                        "\u1ecf", "\u1ed0", "\u1ed1", "\u1ed2", "\u1ed3", "\u1ed4", "\u1ed5", "\u1ed6", "\u1ed7",
                        "\u1ed8", "\u1ed9", "\u1eda", "\u1edb", "\u1edc", "\u1edd", "\u1ede", "\u1edf", "\u1ee0",
                        "\u1ee1", "\u1ee2", "\u1ee3", "\u01FE", "\u01FF", "\u01A0", "\u01A1", "\u1e54", "\u1e55",
                        "\u1e56", "\u1e57", "\u1e58", "\u1e59", "\u1e5a", "\u1e5b", "\u1e5c", "\u1e5d", "\u1e5e",
                        "\u1e5f", "\u1e60", "\u1e61", "\u1e9b", "\u1e62", "\u1e63", "\u1e64", "\u1e65", "\u1e66",
                        "\u1e67", "\u1e68", "\u1e69", "\u1e9c", "\u1e9d", "\u1e6a", "\u1e6b", "\u1e6c", "\u1e6d",
                        "\u1e6e", "\u1e6f", "\u1e70", "\u1e71", "\u1e97", "\u1e72", "\u1e73", "\u1e74", "\u1e75",
                        "\u1e76", "\u1e77", "\u1e78", "\u1e79", "\u1e7a", "\u1e7b", "\u1ee4", "\u1ee5", "\u1ee6",
                        "\u1ee7", "\u1ee8", "\u1ee9", "\u1eea", "\u1eeb", "\u1eec", "\u1eed", "\u1eee", "\u1eef",
                        "\u1ef0", "\u1ef1", "\u01AF", "\u01B0", "\u01D5", "\u01D7", "\u01D9", "\u01DB", "\u1e7c",
                        "\u1e7d", "\u1e7e", "\u1e7f", "\u1efc", "\u1efd", "\u1e80", "\u1e81", "\u1e82", "\u1e83",
                        "\u1e84", "\u1e85", "\u1e86", "\u1e87", "\u1e88", "\u1e89", "\u1e98", "\u1e8a", "\u1e8b",
                        "\u1e8c", "\u1e8d", "\u1e8e", "\u1e8f", "\u1e99", "\u1ef2", "\u1ef3", "\u1ef4", "\u1ef5",
                        "\u1ef6", "\u1ef7", "\u1ef8", "\u1ef9", "\u1efe", "\u1eff", "\u1e90", "\u1e91", "\u1e92",
                        "\u1e93", "\u1e94", "\u1e95", "\u01FC", "\u01FD", "\u1e9e", "\u1e9f"


                    ]
                },
                'ipa': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-ipa',
                    'layout': 'characters',
                    'characters': [
                        "p", "t\u032a", "t", "\u0288", "c", "k", "q", "\u02a1", "\u0294", "b","d\u032a", "d", "\u0256",
                        "\u025f", "\u0261", "\u0262", "\u0253", "\u0257", "\u0284", "\u0260", "\u029b", "t\u0361s",
                        "t\u0361\u0283", "t\u0361\u0255", "d\u0361z", "d\u0361\u0292", "d\u0361\u0291", "\u0278", "f",
                        "\u03b8", "s", "\u0283", "\u0285", "\u0286", "\u0282", "\u0255", "\u00e7", "\u0267", "x",
                        "\u03c7", "\u0127", "\u029c", "h", "\u03b2", "v", "\u028d", "\u00f0", "z", "\u0292", "\u0293",
                        "\u0290", "\u0291", "\u029d", "\u0263", "\u0281", "\u0295", "\u0296", "\u02a2", "\u0266",
                        "\u026c", "\u026e", "m", "m\u0329", "\u0271", "\u0271\u0329", "\u0271\u030d", "n\u032a",
                        "n\u032a\u030d", "n", "n\u0329", "\u0273", "\u0273\u0329", "\u0272", "\u0272\u0329", "\u014b",
                        "\u014b\u030d", "\u014b\u0329", "\u0274", "\u0274\u0329", "\u0299", "\u0299\u0329", "r",
                        "r\u0329", "\u0280", "\u0280\u0329", "\u027e", "\u027d", "\u027f", "\u027a", "l\u032a",
                        "l\u032a\u0329", "l", "l\u0329", "\u026b", "\u026b\u0329", "\u026d", "\u026d\u0329", "\u028e",
                        "\u028e\u0329", "\u029f", "\u029f\u0329", "w", "\u0265", "\u028b", "\u0279", "\u027b", "j",
                        "\u0270", "\u0298", "\u01c2", "\u01c0", "!", "\u01c1", "\u02b0", "\u02b1", "\u02b7", "\u02b8",
                        "\u02b2", "\u02b3", "\u207f", "\u02e1", "\u02b4", "\u02b5", "\u02e2", "\u02e3", "\u02e0",
                        "\u02b6", "\u02e4", "\u02c1", "\u02c0", "\u02bc", "i", "i\u032f", "\u0129", "y", "y\u032f",
                        "\u1ef9", "\u026a", "\u026a\u032f", "\u026a\u0303", "\u028f", "\u028f\u032f", "\u028f\u0303",
                        "\u0268", "\u0268\u032f", "\u0268\u0303", "\u0289", "\u0289\u032f", "\u0289\u0303", "\u026f",
                        "\u026f\u032f", "\u026f\u0303", "u", "u\u032f", "\u0169", "\u028a", "\u028a\u032f",
                        "\u028a\u0303", "e", "e\u032f", "\u1ebd", "\u00f8", "\u00f8\u032f", "\u00f8\u0303", "\u0258",
                        "\u0258\u032f", "\u0258\u0303", "\u0275", "\u0275\u032f", "\u0275\u0303", "\u0264",
                        "\u0264\u032f", "\u0264\u0303", "o", "o\u032f", "\u00f5", "\u025b", "\u025b\u032f",
                        "\u025b\u0303", "\u0153", "\u0153\u032f", "\u0153\u0303", "\u025c", "\u025c\u032f",
                        "\u025c\u0303", "\u0259", "\u0259\u032f", "\u0259\u0303", "\u025e", "\u025e\u032f",
                        "\u025e\u0303", "\u028c", "\u028c\u032f", "\u028c\u0303", "\u0254", "\u0254\u032f",
                        "\u0254\u0303", "\u00e6", "\u00e6\u032f", "\u00e6\u0303", "\u0276", "\u0276\u032f",
                        "\u0276\u0303", "a", "a\u032f", "\u00e3", "\u0250", "\u0250\u032f", "\u0250\u0303", "\u0251",
                        "\u0251\u032f", "\u0251\u0303", "\u0252", "\u0252\u032f", "\u0252\u0303", "\u02c8", "\u02cc",
                        "\u02d0", "\u02d1", "\u02d8", ".", "\u203f", "|", "\u2016", "\u025A", "\u025D"
                    ]
                },
                'symbols': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-symbols',
                    'layout': 'characters',
                    'characters': [
                        "~", "|", "\u00a1", "\u00bf", "\u2020", "\u2021", "\u2194", "\u2191", "\u2193", "\u2022",
                        "\u00b6", "#", "\u00bd", "\u2153", "\u2154", "\u00bc", "\u00be", "\u215b", "\u215c", "\u215d",
                        "\u215e", "\u221e", "\u2018", "\u2019",
                        {
                            'label': "\u201c\u201d",
                            'action': {
                                'type': 'encapsulate', 'options': { 'pre': "\u201c", 'post': "\u201d" }
                            }
                        },
                        {
                            'label': "\u201e\u201c",
                            'action': {
                                'type': 'encapsulate', 'options': { 'pre': "\u201e", 'post': "\u201c" }
                            }
                        },
                        {
                            'label': "\u201e\u201d",
                            'action': {
                                'type': 'encapsulate', 'options': { 'pre': "\u201e", 'post': "\u201d" }
                            }
                        },
                        {
                            'label': "\u00ab\u00bb",
                            'action': {
                                'type': 'encapsulate', 'options': { 'pre': "\u00ab", 'post': "\u00bb" }
                            }
                        },
                        "\u00a4", "\u20b3", "\u0e3f", "\u20b5", "\u00a2", "\u20a1", "\u20a2", "$", "\u20ab", "\u20af",
                        "\u20ac", "\u20a0", "\u20a3", "\u0192", "\u20b4", "\u20ad", "\u20a4", "\u2133", "\u20a5",
                        "\u20a6", "\u2116", "\u20a7", "\u20b0", "\u00a3", "\u17db", "\u20a8", "\u20aa", "\u09f3",
                        "\u20ae", "\u20a9", "\u00a5", "\u2660", "\u2663", "\u2665", "\u2666", "m\u00b2", "m\u00b3",
                        {
                            'label': "\u2013",
                            'titleMsg': 'wikieditor-toolbar-characters-endash',
                            'action' : {
                                'type' : 'replace',
                                'options' : {
                                    'peri' : "\u2013",
                                    'selectPeri': false
                                }
                            }
                        },
                        {
                            'label': "\u2014",
                            'titleMsg': 'wikieditor-toolbar-characters-emdash',
                            'action' : {
                                'type' : 'replace',
                                'options' : {
                                    'peri' : "\u2014",
                                    'selectPeri': false
                                }
                            }
                        },
                        "\u2026", "\u2018", "\u2019", "\u201c", "\u201d", "\u00b0", "\u2032",
                        "\u2033", "\u2248", "\u2260", "\u2264", "\u2265", "\u00b1",
                        {
                            'label': "\u2212",
                            'titleMsg': 'wikieditor-toolbar-characters-minus',
                            'action' : {
                                'type' : 'replace',
                                'options' : {
                                    'peri' : "\u2212",
                                    'selectPeri': false
                                }
                            }
                        },
                        "\u00d7", "\u00f7", "\u2190", "\u2192", "\u00b7", "\u00a7", "\u203D"
                    ]
                },
                'greek': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-greek',
                    'layout': 'characters',
                    'language': 'el',
                    'characters': [
                        "\u0391", "\u0386", "\u03b1", "\u03ac", "\u0392", "\u03b2", "\u0393", "\u03b3", "\u0394",
                        "\u03b4", "\u0395", "\u0388", "\u03b5", "\u03ad", "\u0396", "\u03b6", "\u0397", "\u0389",
                        "\u03b7", "\u03ae", "\u0398", "\u03b8", "\u0399", "\u038a", "\u03b9", "\u03af", "\u039a",
                        "\u03ba", "\u039b", "\u03bb", "\u039c", "\u03bc", "\u039d", "\u03bd", "\u039e", "\u03be",
                        "\u039f", "\u038c", "\u03bf", "\u03cc", "\u03a0", "\u03c0", "\u03a1", "\u03c1", "\u03a3",
                        "\u03c3", "\u03c2", "\u03a4", "\u03c4", "\u03a5", "\u038e", "\u03c5", "\u03cd", "\u03a6",
                        "\u03c6", "\u03a7", "\u03c7", "\u03a8", "\u03c8", "\u03a9", "\u038f", "\u03c9", "\u03ce"
                    ]
                },
                'cyrillic': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-cyrillic',
                    'layout': 'characters',
                    'characters': [
                        "\u0410", "\u0430", // A
                        "\u04d0", "\u04d1", // A with breve (Chuvash)
                        "\u04d2", "\u04d3", // A with diaeresis (Mari, Gargauz, etc.)
                        "\u04d8", "\u04d9", // Schwa (Abkhaz, etc)
                        "\u04da", "\u04db", // Schwa with diaeresis (Khanty)
                        "\u0411", "\u0431", // B
                        "\u0412", "\u0432", // V
                        "\u0413", "\u0433", // G
                        "\u0490", "\u0491", // G with upturn (Ukranian, etc)
                        "\u04f6", "\u04f7", // Ge with descender (Abkhaz, etc)
                        "\u0403", "\u0453", // G with acute (Macedonian)
                        "\u04fa", "\u04fb", // Ge with stroke and hook (Nivkh)
                        "\u0492", "\u0493", // G with stroke (Kazakh etc.)
                        "\u0494", "\u0495", // G with hook (Sakha etc.)
                        "\u0414", "\u0434", // D
                        "\u0500", "\u0501", // De (Komi)
                        "\u0502", "\u0503", // Dje (Komi)
                        "\u0402", "\u0452", // Dj (Serbian, Montenegrin)
                        "\u0415", "\u0435", "\u0400", "\u0450", // IE
                        "\u0404", "\u0454", // Ukrainian IE
                        "\u0401", "\u0451", // IO
                        "\u04d6", "\u04d7", // Ye with breve (Chuvash)
                        "\u04bc", "\u04bd", // Che (Abkhazian)
                        "\u04be", "\u04bf", // Che with descender (Abkhazian)
                        "\u0416", "\u0436", // Zh
                        "\u0496", "\u0497", // Zhe with descender (Kalmyk, Tatar, etc)
                        "\u04c1", "\u04c2", // Zhe with breve (Moldovan, Gagauz)
                        "\u04dc", "\u04dd", // Zhe with diaeresis (Udmurt)
                        "\u0417", "\u0437", // Z
                        "\u0498", "\u0499", // Ze with descender (Bashkir)
                        "\u04de", "\u04df", // Ze with diaeresis (Udmurt)
                        "\u0510", "\u0511", // Reversed Ze (Enets, Khanty)
                        "\u04e0", "\u04e1", // Dze (Abkhazian)
                        "\u0405", "\u0455", // Dz (Macedonian, Montenegrin)
                        "\u0504", "\u0505", // Zje (Komi)
                        "\u0506", "\u0507", // Dzje (Komi)
                        "\u0418", "\u0438", // I
                        "\u0406", "\u0456", // Dotted I (Ukranian, etc)
                        "\u0407", "\u0457", // I with dieresis (Rusyn, Ukranian)
                        [ "\u25cc\u04c0", "\u04c0" ], // Palochka. Dotted circle to differentiate from I
                        [ "\u25cc\u04cf", "\u04cf" ], // Palochka. Dotted circle to differentiate from I
                        "\u0419", "\u0439", // Short I
                        "\u04e2", "\u04e3", // I with macron (Tajik)
                        "\u040d", "\u045d", // I with grave (Macedonian)
                        "\u048a", "\u048b", // Short I with tail (Kildin Sami)
                        "\u04e4", "\u04e5", // I with diaeresis (Udmurt)
                        "\u0408", "\u0458", // Je (Altai, Azerbaijani, etc)
                        "\u041a", "\u043a", // K
                        "\u040c", "\u045c", // K with acute (Macedonian)
                        "\u049a", "\u049b", // K with descender (Kazakh etc.)
                        "\u049c", "\u049d", // Ka with vertical stroke (Azerbaijani)
                        "\u049e", "\u049f", // Ka with stroke (Abkhaz)
                        "\u04a0", "\u04a1", // Ka (Bashkir)
                        "\u04c3", "\u04c4", // Ka with hook (Chukchi, etc)
                        "\u051a", "\u051b", // Qa (Kurdish, old Abkhaz)
                        "\u041b", "\u043b", // L
                        "\u0409", "\u0459", // Lj (Serbian, Macedonian)
                        "\u0508", "\u0509", // Lje (Komi)
                        "\u0512", "\u0513", // El with hook (Chukchi, Itelmen, Khanty)
                        "\u04c5", "\u04c6", // El with tail (Itelmen, Kildin Sami)
                        "\u041c", "\u043c", // M
                        "\u04cd", "\u04ce", // Em with tail (Kildin Sami)
                        "\u041d", "\u043d", // N
                        "\u040a", "\u045a", // Nj (Macedonian, Serbian)
                        "\u04a2", "\u04a3", // N with descender (Kazakh etc.)
                        "\u04a4", "\u04a5", // Ligature En Ghe (Aleut, Altai, etc)
                        "\u04c7", "\u04c8", // En with hook (Even, etc)
                        "\u050a", "\u050b", // Nje (Komi)
                        "\u04c9", "\u04ca", // En with tail (Kilidn Sami)
                        "\u041e", "\u043e", // O
                        "\u04a8", "\u04a9", // Ha (Abkhazian)
                        "\u04e6", "\u04e7", // O with diaeresis (Altay, Komi, etc)
                        "\u04e8", "\u04e9", // O with bar (Bashkir, etc)
                        "\u04ea", "\u04eb", // Barred O with diaeresis (Even, Khanty)
                        "\u041f", "\u043f", // P
                        "\u0524", "\u0525", // Pe with descender (Abkhaz)
                        "\u04a6", "\u04a7", // Pe with middle hook (Abkhaz)
                        "\u0420", "\u0440", // R
                        "\u048e", "\u048f", // Er with tick (Kildin Sami)
                        "\u0421", "\u0441", // S
                        "\u04aa", "\u04ab", // Es with descender (Bashkir, Chuvash)
                        "\u0422", "\u0442", // T
                        "\u040b", "\u045b", // Tsh (Serbian, Bosnian, etc)
                        "\u050c", "\u050d", // Sje (Komi)
                        "\u04ac", "\u04ad", // Te with descender (Abkhaz)
                        "\u050e", "\u050f", // The (Komi)
                        "\u0423", "\u0443", // U
                        "\u040e", "\u045e", // Short U (Belarusian, Dungan, etc)
                        "\u04ee", "\u04ef", // U with macron (Tajik)
                        "\u04f0", "\u04f1", // U with diaeresis (Altai, etc)
                        "\u04f2", "\u04f3", // U with double acute (Chuvash)
                        "\u04ae", "\u04af", // Straight U Bashkir, Buryat, etc)
                        "\u04b0", "\u04b1", // Straight U with stroke (Kazakh)
                        "\u0424", "\u0444", // F
                        "\u0425", "\u0445", // Kha
                        "\u04b2", "\u04b3", // Kha with descender (Abkhaz, etc)
                        "\u04fc", "\u04fd", // Ha with hook (Itelmen, Nivkh)
                        "\u04fe", "\u04ff", // Ha with stroke (Nivkh)
                        "\u04ba", "\u04bb", // Shha (Azerbaijani, etc)
                        "\u0426", "\u0446", // Ts
                        "\u0427", "\u0447", // Ch
                        "\u04b4", "\u04b5", // Ligature Te Tse (Abkhaz)
                        "\u04b6", "\u04b7", // Ch with descender (Abkhaz, Tajik)
                        "\u04b8", "\u04b9", // Che with vertical stroke (Azeri)
                        "\u04cb", "\u04cc", // Che (Khakassian)
                        "\u04f4", "\u04f5", // Che with diaeresis (Udmurt)
                        "\u040f", "\u045f", // Dzh (Serbian, Macedonian, etc)
                        "\u0428", "\u0448", // Sh
                        "\u0429", "\u0449", // Sch
                        "\u042a", "\u044a", // Hard sign
                        "\u042b", "\u044b", // Yeru
                        "\u04f8", "\u04f9", // Yeru with diaeresis (mari)
                        "\u042c", "\u044c", // Soft sign
                        "\u048c", "\u048d", // Semisoft Sign (kildin)
                        "\u042d", "\u044d", // E
                        "\u04ec", "\u04ed", // E with diaeresis (kildin)
                        "\u042e", "\u044e", // Yu
                        "\u042f", "\u044f", // Ya
                        "\u051c", "\u051d", // We (Kurdish)
                        "\u0460", "\u0461", // Omega
                        "\u0462", "\u0463", // Yat (old cyrillic)
                        "\u0464", "\u0465", // Iotified E (old cyrillic)
                        "\u0466", "\u0467", // Little Yus (old cyrillic)
                        "\u0468", "\u0469", // Iotified Little Yus (old cyrillic)
                        "\u046A", "\u046B", // Big Yus (old cyrillic)
                        "\u046C", "\u046D", // Iotified Big Yus (old cyrillic)
                        "\u046E", "\u046F", // Ksi (old cyrillic)
                        "\u0470", "\u0471", // Psi (old cyrillic)
                        "\u0472", "\u0473", // Fita (old cyrillic)
                        "\u0474", "\u0475", // Izhitsa (old cyrillic)
                        "\u0476", "\u0477", // Izhitsa with double grave accent (old cyrillic)
                        "\u0478", "\u0479", // Uk (old cyrillic)
                        "\u047A", "\u047B", // Round Omega (old cyrillic)
                        "\u047c", "\u047d", // Cyr Omega with Titlo (old cyrillic)
                        "\u047e", "\u047f", // Cyr Ot (old cyrillic)
                        "\u0480", "\u0481", // Cyr Koppa (old cyrillic)
                    ]
                },
                // The core 28-letter alphabet, special letters for the Arabic language,
                // vowels, punctuation, digits.
                // Names of letters are written as in the Unicode charts.
                'arabic': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-arabic',
                    'layout': 'characters',
                    'language': 'ar',
                    'direction': 'rtl',
                    'characters': [
                        // core alphabet
                        "\u0627", "\u0628", "\u062a", "\u062b", "\u062c", "\u062d", "\u062e", "\u062f",
                        "\u0630", "\u0631", "\u0632", "\u0633", "\u0634", "\u0635", "\u0636", "\u0637",
                        "\u0638", "\u0639", "\u063a", "\u0641", "\u0642", "\u0643", "\u0644", "\u0645",
                        "\u0646", "\u0647", "\u0648", "\u064a",
                        // special letters for the Arabic language
                        "\u0621", // Hamza
                        "\u0622", "\u0623", "\u0625", "\u0671", // Alef
                        "\u0624", // Waw hamza
                        "\u0626", // Yeh hamza
                        "\u0649", // Alef maksura
                        "\u0629", // Teh marbuta
                        // vowels
                        "\u064E", "\u064F", "\u0650", "\u064B", "\u064C", "\u064D", "\u0651", "\u0652",
                        "\u0670",
                        // punctuation
                        "\u060c", "\u061b", "\u061f", "\u0640",
                        // digits
                        "\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667",
                        "\u0668", "\u0669",
                        // other special characters
                        "\u066A", "\u066B", "\u066C", "\u066D",
                        // ZWNJ and ZWJ
                        [ "ZWNJ", "\u200C" ], [ "ZWJ", "\u200D" ]
                    ]
                },
                // Characters for languages other than Arabic.
                'arabicextended': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-arabicextended',
                    'layout': 'characters',
                    'language': 'ar',
                    'direction': 'rtl',
                    'characters': [
                        // Alef
                        "\u0672", "\u0673", "\u0674", "\u0675", "\u0773", "\u0774",
                        // Beh
                        "\u066E", "\u067B", "\u067E", "\u0680", "\u0750", "\u0751", "\u0752", "\u0753",
                        "\u0754", "\u0755", "\u0756",
                        // Teh
                        "\u0679", "\u067A", "\u067C", "\u067D", "\u067F",
                        // Jeem
                        "\u0681", "\u0682", "\u0683", "\u0684", "\u0685", "\u0686", "\u0687", "\u06BF",
                        // Hah
                        "\u0757", "\u0758", "\u076E", "\u076F", "\u0772", "\u077C",
                        // Dal
                        "\u0688", "\u0689", "\u068A", "\u068B", "\u068C", "\u068D", "\u068E", "\u068F",
                        "\u0690", "\u06EE", "\u0759", "\u075A",
                        // Reh
                        "\u0691", "\u0692", "\u0693", "\u0694", "\u0695", "\u0696", "\u0697", "\u0698",
                        "\u0699", "\u06EF", "\u075B", "\u076B", "\u076C", "\u0771",
                        // Seen
                        "\u069A", "\u069B", "\u069C", "\u077D",
                        // Sheen
                        "\u06FA", "\u075C", "\u076D", "\u0770", "\u077E",
                        // Sad
                        "\u069D", "\u069E",
                        // Dad
                        "\u06FB",
                        // Tah
                        "\u069F",
                        // Ain
                        "\u06A0", "\u075D", "\u075E", "\u075F",
                        // Ghain
                        "\u06FC",
                        // Feh
                        "\u06A1", "\u06A2", "\u06A3", "\u06A4", "\u06A5", "\u06A6", "\u0760", "\u0761",
                        // Qaf
                        "\u066F", "\u06A7", "\u06A8",
                        // Kaf
                        "\u063B", "\u063C", "\u06A9", "\u06AA", "\u06AB", "\u06AC", "\u06AD", "\u06AE",
                        "\u06AF", "\u06B0", "\u06B1", "\u06B2", "\u06B3", "\u06B4", "\u0762", "\u0763",
                        "\u0764", "\u077F",
                        // Lam
                        "\u06B5", "\u06B6", "\u06B7", "\u06B8", "\u076A",
                        // Meem
                        "\u0765", "\u0766",
                        // Noon
                        "\u06B9", "\u06BA", "\u06BB", "\u06BC", "\u06BD", "\u0767", "\u0768", "\u0769",
                        // Heh
                        "\u06BE", "\u06C0", "\u06C1", "\u06C2", "\u06C3", "\u06D5", "\u06FF",
                        // Waw
                        "\u0676", "\u0677", "\u06C4", "\u06C5", "\u06C6", "\u06C7", "\u06C8", "\u06C9",
                        "\u06CA", "\u06CB", "\u06CF", "\u0778", "\u0779",
                        // Yeh
                        "\u0620", "\u063D", "\u063E", "\u063F", "\u0678", "\u06CC", "\u06CD", "\u06CE",
                        "\u06D0", "\u06D1", "\u06D2", "\u06D3", "\u0775", "\u0776", "\u0777", "\u077A",
                        "\u077B",
                        // diacritics
                        "\u0656", "\u0657", "\u0658", "\u0659", "\u065A", "\u065B", "\u065C", "\u065D",
                        "\u065E", "\u065F",
                        // special punctuation
                        "\u06D4", "\u06FD", "\u06FE",
                        // special digits
                        "\u06F0", "\u06F1", "\u06F2", "\u06F3", "\u06F4", "\u06F5", "\u06F6", "\u06F7",
                        "\u06F8", "\u06F9"
                    ]
                },
                'hebrew': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-hebrew',
                    'layout': 'characters',
                    'direction': 'rtl',
                    'characters': [
                        // Letters
                        "\u05d0", "\u05d1", "\u05d2", "\u05d3", "\u05d4", "\u05d5", "\u05d6", "\u05d7", "\u05d8",
                        "\u05d9", "\u05db", "\u05da", "\u05dc", "\u05de", "\u05dd", "\u05e0", "\u05df", "\u05e1",
                        "\u05e2", "\u05e4", "\u05e3", "\u05e6", "\u05e5", "\u05e7", "\u05e8", "\u05e9", "\u05ea",


/* ------------------------------------------------------- */
                        // Yiddish
                        "\u05f0", "\u05f1", "\u05f2",


/*
                        // Punctuation
Egy válaszcsoportot szimbolizáló objektum.
                        "\u05f3", "\u05f4", "\u05be", "\u2013",
*/
                        {
function AnswerGroupObject(
                            'label': "\u201e\u201d",
    typeText,          // A válaszcsoport típusát leíró szöveg a wikioldalról
                            'action': {
    correctAnswerText, // A jó választ leíró szöveg a wikioldalról
                                'type': 'encapsulate', 'options': { 'pre': "\u201e", 'post': "\u201d" }
    scoringMethodText, // A pontozást leíró szöveg a wikioldalról
                            }
    numberOfOptions,    // A válaszlehetőségek száma
                        },
    uiElement,         // A válaszcsoporthoz tartozó HTML <OL> listaelem
                        {
    questionId,        // Kérdésazonosító
                            'label': "\u201a\u2019",
    answerId,           // Válaszcsoportazonosító
                            'action': {
    defaultScoringMethod // Alap pontozási módszer
                                'type': 'encapsulate', 'options': { 'pre': "\u201a", 'post': "\u2019" }
) {
                            }
    // Inicializálás
                        },


    // Választípus megállapítása
                        // Vowels
    this.type = 1; // A default az egyválaszos (radio)
                        [ "\u25cc\u05b0", "\u05b0" ], [ "\u25cc\u05b1", "\u05b1" ], [ "\u25cc\u05b2", "\u05b2" ],
    if ($.trim(typeText) === "egy")
                        [ "\u25cc\u05b3", "\u05b3" ], [ "\u25cc\u05b4", "\u05b4" ], [ "\u25cc\u05b5", "\u05b5" ],
        this.type = 1;
                        [ "\u25cc\u05b6", "\u05b6" ], [ "\u25cc\u05b7", "\u05b7" ], [ "\u25cc\u05b8", "\u05b8" ],
    if ($.trim(typeText) === "több")
                        [ "\u25cc\u05b9", "\u05b9" ], [ "\u25cc\u05bb", "\u05bb" ], [ "\u25cc\u05bc", "\u05bc" ],
        this.type = 2;
                        [ "\u25cc\u05c1", "\u05c1" ], [ "\u25cc\u05c2", "\u05c2" ], [ "\u25cc\u05c7", "\u05c7" ],


    this.answer = null;
                        // Cantillation
 
                        [ "\u25cc\u0591", "\u0591" ], [ "\u25cc\u0592", "\u0592" ], [ "\u25cc\u0593", "\u0593" ],
    // Pontozás megállapítása
                        [ "\u25cc\u0594", "\u0594" ], [ "\u25cc\u0595", "\u0595" ], [ "\u25cc\u0596", "\u0596" ],
    this.scoringMethod = defaultScoringMethod;
                        [ "\u25cc\u0597", "\u0597" ], [ "\u25cc\u0598", "\u0598" ], [ "\u25cc\u0599", "\u0599" ],
    if ($.trim(scoringMethodText) === "-")
                        [ "\u25cc\u059a", "\u059a" ], [ "\u25cc\u059b", "\u059b" ], [ "\u25cc\u059c", "\u059c" ],
        this.scoringMethod = -1;
                        [ "\u25cc\u059d", "\u059d" ], [ "\u25cc\u059e", "\u059e" ], [ "\u25cc\u059f", "\u059f" ],
    if ($.trim(scoringMethodText) === "+")
                        [ "\u25cc\u05a0", "\u05a0" ], [ "\u25cc\u05a1", "\u05a1" ], [ "\u25cc\u05a2", "\u05a2" ],
        this.scoringMethod = +1;
                        [ "\u25cc\u05a3", "\u05a3" ], [ "\u25cc\u05a4", "\u05a4" ], [ "\u25cc\u05a5", "\u05a5" ],
 
                        [ "\u25cc\u05a6", "\u05a6" ], [ "\u25cc\u05a7", "\u05a7" ], [ "\u25cc\u05a8", "\u05a8" ],
    // Egyebek
                        [ "\u25cc\u05a9", "\u05a9" ], [ "\u25cc\u05aa", "\u05aa" ], [ "\u25cc\u05ab", "\u05ab" ],
    this.numberOfOptions = numberOfOptions;
                        [ "\u25cc\u05ac", "\u05ac" ], [ "\u25cc\u05ad", "\u05ad" ], [ "\u25cc\u05ae", "\u05ae" ],
    this.uiElement = $(uiElement);
                        [ "\u25cc\u05af", "\u05af" ], [ "\u25cc\u05bf", "\u05bf" ], [ "\u25cc\u05c0", "\u05c0" ],
    this.questionId = questionId;
                        [ "\u25cc\u05c3", "\u05c3" ]
    this.answerId = answerId;
                    ]
 
                },
    init.call(this);
                'bangla': {
    addAnswerControls.call(this);
                    'labelMsg': 'wikieditor-toolbar-characters-page-bangla',
 
                    'language': 'bn',
    // Válasz megállapítása és stílus beállítása
                    'layout': 'characters',
    function init() {
                    'characters': [
        if (this.type === 1) {
                        "\u0985", "\u0986", "\u0987", "\u0988", "\u0989", "\u098a", "\u098b", "\u098f", "\u0990",
            this.answer = parseInt(correctAnswerText) - 1;
                        "\u0993", "\u0994", "\u09be", "\u09bf", "\u09c0", "\u09c1", "\u09c2", "\u09c3", "\u09c7",
        } else if (this.type === 2) {
                        "\u09c8", "\u09cb", "\u09cc", "\u0995", "\u0996", "\u0997", "\u0998", "\u0999", "\u099a",
            this.answer = [];
                        "\u099b", "\u099c", "\u099d", "\u099e", "\u099f", "\u09a0", "\u09a1", "\u09a2", "\u09a3",
            var answer_list = correctAnswerText.split(",");
                        "\u09a4", "\u09a5", "\u09a6", "\u09a7", "\u09a8", "\u09aa", "\u09ab", "\u09ac", "\u09ad",
            for (var ans_i = 0; ans_i != answer_list.length; ans_i++) {
                        "\u09ae", "\u09af", "\u09b0", "\u09b2", "\u09b6", "\u09b7", "\u09b8", "\u09b9", "\u09a1\u09bc",
                this.answer.push(parseInt(answer_list[ans_i]) - 1);
                        "\u09a2\u09bc", "\u09af\u09bc", "\u09ce", "\u0982", "\u0983", "\u0981", "\u09cd", "\u09e7",
                        "\u09e8", "\u09e9", "\u09ea", "\u09eb", "\u09ec", "\u09ed", "\u09ee", "\u09ef", "\u09e6"
                    ]
                },
                'tamil': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-tamil',
                    'language': 'ta',
                    'layout': 'characters',
                    'characters': [
                        "\u0be6", "\u0be7", "\u0be8", "\u0be9", "\u0bea", "\u0beb", "\u0bec", "\u0bed", "\u0bee",
                        "\u0bef", "\u0bf0", "\u0bf1", "\u0bf2", "\u0bf3", "\u0bf4", "\u0bf5", "\u0bf6", "\u0bf7",
                        "\u0bf8", "\u0bf9", "\u0bfa", "\u0bd0"
                    ]
                },
                'telugu': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-telugu',
                    'language': 'te',
                    'layout': 'characters',
                    'characters': [
                        "\u0c01", "\u0c02", "\u0c03", "\u0c05", "\u0c06", "\u0c07", "\u0c08", "\u0c09", "\u0c0a",
                        "\u0c0b", "\u0c60", "\u0c0c", "\u0c61", "\u0c0e", "\u0c0f", "\u0c10", "\u0c12", "\u0c13",
                        "\u0c14", "\u0c15", "\u0c16", "\u0c17", "\u0c18", "\u0c19", "\u0c1a", "\u0c1b", "\u0c1c",
                        "\u0c1d", "\u0c1e", "\u0c1f", "\u0c20", "\u0c21", "\u0c22", "\u0c23", "\u0c24", "\u0c25",
                        "\u0c26", "\u0c27", "\u0c28", "\u0c2a", "\u0c2b", "\u0c2c", "\u0c2d", "\u0c2e", "\u0c2f",
                        "\u0c30", "\u0c31", "\u0c32", "\u0c33", "\u0c35", "\u0c36", "\u0c37", "\u0c38", "\u0c39",
                        "\u0c3e", "\u0c3f", "\u0c40", "\u0c41", "\u0c42", "\u0c43", "\u0c44", "\u0c46", "\u0c47",
                        "\u0c48", "\u0c4a", "\u0c4b", "\u0c4c", "\u0c4d", "\u0c62", "\u0c63", "\u0c58", "\u0c59",
                        "\u0c66", "\u0c67", "\u0c68", "\u0c69", "\u0c6a", "\u0c6b", "\u0c6c", "\u0c6d", "\u0c6e",
                        "\u0c6f", "\u0c3d", "\u0c78", "\u0c79", "\u0c7a", "\u0c7b", "\u0c7c", "\u0c7d", "\u0c7e",
                        "\u0c7f"
                    ]
                },
                'sinhala': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-sinhala',
                    'language': 'si',
                    'layout': 'characters',
                    'characters': [
                        "\u0d85", "\u0d86", "\u0d87", "\u0d88", "\u0d89", "\u0d8a", "\u0d8b", "\u0d8c", "\u0d8d",
                        "\u0d8e", "\u0d8f", "\u0d90", "\u0d91", "\u0d92", "\u0d93", "\u0d94", "\u0d95", "\u0d96",
                        "\u0d9a", "\u0d9b", "\u0d9c", "\u0d9d", "\u0d9e", "\u0d9f", "\u0da0", "\u0da1", "\u0da2",
                        "\u0da3", "\u0da4", "\u0da5", "\u0da6", "\u0da7", "\u0da8", "\u0da9", "\u0daa", "\u0dab",
                        "\u0dac", "\u0dad", "\u0dae", "\u0daf", "\u0db0", "\u0db1", "\u0db3", "\u0db4", "\u0db5",
                        "\u0db6", "\u0db7", "\u0db8", "\u0db9", "\u0dba", "\u0dbb", "\u0dbd", "\u0dc0", "\u0dc1",
                        "\u0dc2", "\u0dc3", "\u0dc4", "\u0dc5", "\u0dc6",
                        [ "\u25cc\u0dcf", "\u0dcf" ], [ "\u25cc\u0dd0", "\u0dd0" ], [ "\u25cc\u0dd1", "\u0dd1" ],
                        [ "\u25cc\u0dd2", "\u0dd2" ], [ "\u25cc\u0dd3", "\u0dd3" ], [ "\u25cc\u0dd4", "\u0dd4" ],
                        [ "\u25cc\u0dd6", "\u0dd6" ], [ "\u25cc\u0dd8", "\u0dd8" ], [ "\u25cc\u0df2", "\u0df2" ],
                        [ "\u25cc\u0ddf", "\u0ddf" ], [ "\u25cc\u0df3", "\u0df3" ], [ "\u25cc\u0dd9", "\u0dd9" ],
                        [ "\u25cc\u0dda", "\u0dda" ], [ "\u25cc\u0ddc", "\u0ddc" ], [ "\u25cc\u0ddd", "\u0ddd" ],
                        [ "\u25cc\u0dde", "\u0dde" ], [ "\u25cc\u0dca", "\u0dca" ]
                    ]
                },
                'devanagari': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-devanagari',
                    'layout': 'characters',
                    'characters': [
                        "\u0900",  // DEVANAGARI SIGN INVERTED CANDRABINDU
                        "\u0901",  // DEVANAGARI SIGN CANDRABINDU
                        "\u0902",  // DEVANAGARI SIGN ANUSVARA
                        "\u0903",  // DEVANAGARI SIGN VISARGA
                        "\u0904",  // DEVANAGARI LETTER SHORT A
                        "\u0905",  // DEVANAGARI LETTER A
                        "\u0906",  // DEVANAGARI LETTER AA
                        "\u0907",  // DEVANAGARI LETTER I
                        "\u0908",  // DEVANAGARI LETTER II
                        "\u0909",  // DEVANAGARI LETTER U
                        "\u090a",  // DEVANAGARI LETTER UU
                        "\u090b",  // DEVANAGARI LETTER VOCALIC R
                        "\u090c",  // DEVANAGARI LETTER VOCALIC L
                        "\u090d",  // DEVANAGARI LETTER CANDRA E
                        "\u090e",  // DEVANAGARI LETTER SHORT E
                        "\u090f",  // DEVANAGARI LETTER E
                        "\u0910",  // DEVANAGARI LETTER AI
                        "\u0911",  // DEVANAGARI LETTER CANDRA O
                        "\u0912",  // DEVANAGARI LETTER SHORT O
                        "\u0913",  // DEVANAGARI LETTER O
                        "\u0914",  // DEVANAGARI LETTER AU
                        "\u0915",  // DEVANAGARI LETTER KA
                        "\u0916",  // DEVANAGARI LETTER KHA
                        "\u0917",  // DEVANAGARI LETTER GA
                        "\u0918",  // DEVANAGARI LETTER GHA
                        "\u0919",  // DEVANAGARI LETTER NGA
                        "\u091a",  // DEVANAGARI LETTER CA
                        "\u091b",  // DEVANAGARI LETTER CHA
                        "\u091c",  // DEVANAGARI LETTER JA
                        "\u091d",  // DEVANAGARI LETTER JHA
                        "\u091e",  // DEVANAGARI LETTER NYA
                        "\u091f",  // DEVANAGARI LETTER TTA
                        "\u0920",  // DEVANAGARI LETTER TTHA
                        "\u0921",  // DEVANAGARI LETTER DDA
                        "\u0922",  // DEVANAGARI LETTER DDHA
                        "\u0923",  // DEVANAGARI LETTER NNA
                        "\u0924",  // DEVANAGARI LETTER TA
                        "\u0925",  // DEVANAGARI LETTER THA
                        "\u0926",  // DEVANAGARI LETTER DA
                        "\u0927",  // DEVANAGARI LETTER DHA
                        "\u0928",  // DEVANAGARI LETTER NA
                        "\u0929",  // DEVANAGARI LETTER NNNA
                        "\u092a",  // DEVANAGARI LETTER PA
                        "\u092b",  // DEVANAGARI LETTER PHA
                        "\u092c",  // DEVANAGARI LETTER BA
                        "\u092d",  // DEVANAGARI LETTER BHA
                        "\u092e",  // DEVANAGARI LETTER MA
                        "\u092f",  // DEVANAGARI LETTER YA
                        "\u0930",  // DEVANAGARI LETTER RA
                        "\u0931",  // DEVANAGARI LETTER RRA
                        "\u0932",  // DEVANAGARI LETTER LA
                        "\u0933",  // DEVANAGARI LETTER LLA
                        "\u0934",  // DEVANAGARI LETTER LLLA
                        "\u0935",  // DEVANAGARI LETTER VA
                        "\u0936",  // DEVANAGARI LETTER SHA
                        "\u0937",  // DEVANAGARI LETTER SSA
                        "\u0938",  // DEVANAGARI LETTER SA
                        "\u0939",  // DEVANAGARI LETTER HA
                        "\u093a",  // DEVANAGARI VOWEL SIGN OE
                        "\u093b",  // DEVANAGARI VOWEL SIGN OOE
                        "\u093c",  // DEVANAGARI SIGN NUKTA
                        "\u093d",  // DEVANAGARI SIGN AVAGRAHA
                        "\u093e",  // DEVANAGARI VOWEL SIGN AA
                        "\u093f",  // DEVANAGARI VOWEL SIGN I
                        "\u0940",  // DEVANAGARI VOWEL SIGN II
                        "\u0941",  // DEVANAGARI VOWEL SIGN U
                        "\u0942",  // DEVANAGARI VOWEL SIGN UU
                        "\u0943",  // DEVANAGARI VOWEL SIGN VOCALIC R
                        "\u0944",  // DEVANAGARI VOWEL SIGN VOCALIC RR
                        "\u0945",  // DEVANAGARI VOWEL SIGN CANDRA E
                        "\u0946",  // DEVANAGARI VOWEL SIGN SHORT E
                        "\u0947",  // DEVANAGARI VOWEL SIGN E
                        "\u0948",  // DEVANAGARI VOWEL SIGN AI
                        "\u0949",  // DEVANAGARI VOWEL SIGN CANDRA O
                        "\u094a",  // DEVANAGARI VOWEL SIGN SHORT O
                        "\u094b",  // DEVANAGARI VOWEL SIGN O
                        "\u094c",  // DEVANAGARI VOWEL SIGN AU
                        "\u094d",  // DEVANAGARI SIGN VIRAMA
                        "\u094e",  // DEVANAGARI VOWEL SIGN PRISHTHAMATRA E
                        "\u094f",  // DEVANAGARI VOWEL SIGN AW
                        "\u0950",  // DEVANAGARI OM
                        "\u0951",  // DEVANAGARI STRESS SIGN UDATTA
                        "\u0952",  // DEVANAGARI STRESS SIGN ANUDATTA
                        "\u0953",  // DEVANAGARI GRAVE ACCENT
                        "\u0954",  // DEVANAGARI ACUTE ACCENT
                        "\u0955",  // DEVANAGARI VOWEL SIGN CANDRA LONG E
                        "\u0956",  // DEVANAGARI VOWEL SIGN UE
                        "\u0957",  // DEVANAGARI VOWEL SIGN UUE
                        "\u0958",  // DEVANAGARI LETTER QA
                        "\u0959",  // DEVANAGARI LETTER KHHA
                        "\u095a",  // DEVANAGARI LETTER GHHA
                        "\u095b",  // DEVANAGARI LETTER ZA
                        "\u095c",  // DEVANAGARI LETTER DDDHA
                        "\u095d",  // DEVANAGARI LETTER RHA
                        "\u095e",  // DEVANAGARI LETTER FA
                        "\u095f",  // DEVANAGARI LETTER YYA
                        "\u0960",  // DEVANAGARI LETTER VOCALIC RR
                        "\u0961",  // DEVANAGARI LETTER VOCALIC LL
                        "\u0962",  // DEVANAGARI VOWEL SIGN VOCALIC L
                        "\u0963",  // DEVANAGARI VOWEL SIGN VOCALIC LL
                        "\u0964",  // DEVANAGARI DANDA
                        "\u0965",  // DEVANAGARI DOUBLE DANDA
                        "\u0966",  // DEVANAGARI DIGIT ZERO
                        "\u0967",  // DEVANAGARI DIGIT ONE
                        "\u0968",  // DEVANAGARI DIGIT TWO
                        "\u0969",  // DEVANAGARI DIGIT THREE
                        "\u096a",  // DEVANAGARI DIGIT FOUR
                        "\u096b",  // DEVANAGARI DIGIT FIVE
                        "\u096c",  // DEVANAGARI DIGIT SIX
                        "\u096d",  // DEVANAGARI DIGIT SEVEN
                        "\u096e",  // DEVANAGARI DIGIT EIGHT
                        "\u096f",  // DEVANAGARI DIGIT NINE
                        "\u0970",  // DEVANAGARI ABBREVIATION SIGN
                        "\u0971",  // DEVANAGARI SIGN HIGH SPACING DOT
                        "\u0972",  // DEVANAGARI LETTER CANDRA A
                        "\u0973",  // DEVANAGARI LETTER OE
                        "\u0974",  // DEVANAGARI LETTER OOE
                        "\u0975",  // DEVANAGARI LETTER AW
                        "\u0976",  // DEVANAGARI LETTER UE
                        "\u0977",  // DEVANAGARI LETTER UUE
                        "\u0979",  // DEVANAGARI LETTER ZHA
                        "\u097a",  // DEVANAGARI LETTER HEAVY YA
                        "\u097b",  // DEVANAGARI LETTER GGA
                        "\u097c",  // DEVANAGARI LETTER JJA
                        "\u097d",  // DEVANAGARI LETTER GLOTTAL STOP
                        "\u097e",  // DEVANAGARI LETTER DDDA
                        "\u097f"  // DEVANAGARI LETTER BBA
                    ]
                },
                'gujarati': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-gujarati',
                    'language': 'gu',
                    'layout': 'characters',
                    'characters': [
                        "\u0ad0", // Om
                        "\u0a81", // Candrabindu
                        "\u0a82", // Anusvara
                        "\u0a83", // Visarga
                        // Vowels
                        "\u0a85", "\u0a86", // A
                        "\u0a87", "\u0a88", // I
                        "\u0a89", "\u0a8a", // U
                        "\u0a8f", "\u0a90", // E
                        "\u0a93", "\u0a94", // O
                        "\u0a85\u0a82", // A with Anusvara
                        "\u0a8b", // Vocalic R
                        "\u0a8d", "\u0a91", // Candra E and O
                        // Special vowels
                        "\u0a8c", // Vocalic L
                        "\u0ae0", // Vocalic RR
                        "\u0ae1", // Vocalic LL
                        // Consonants
                        "\u0a95", "\u0a96", "\u0a97", "\u0a98", "\u0a99",
                        "\u0a9a", "\u0a9b", "\u0a9c", "\u0a9d", "\u0a9e",
                        "\u0a9f", "\u0aa0", "\u0aa1", "\u0aa2", "\u0aa3",
                        "\u0aa4", "\u0aa5", "\u0aa6", "\u0aa7", "\u0aa8",
                        "\u0aaa", "\u0aab", "\u0aac", "\u0aad", "\u0aae",
                        "\u0aaf", "\u0ab0", "\u0ab2", "\u0ab3",
                        "\u0ab5", "\u0ab6", "\u0ab7", "\u0ab8", "\u0ab9",
                        "\u0a95\u0acd\u0ab7", // ksh
                        "\u0a9c\u0acd\u0a9e", // jny
                        "\u0abd", // Avagraha
                        // Vowel signs
                        "\u0abe", "\u0abf", "\u0ac0", "\u0ac0", "\u0ac1", "\u0ac2",
                        "\u0ac3", "\u0ac4", "\u0ac5", "\u0ac7", "\u0ac8", "\u0ac9", "\u0acb", "\u0acc",
                        "\u0ae2", "\u0ae3",
                        // Virama
                        "\u0acd",
                        // Digits
                        "\u0ae6", "\u0ae7", "\u0ae8", "\u0ae9", "\u0aea",
                        "\u0aeb", "\u0aec", "\u0aed", "\u0aee", "\u0aef",
                        // Rupee
                        "\u0af1"
                    ]
                },
                'thai': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-thai',
                    'language': 'th',
                    'layout': 'characters',
                    'characters': [
                        "\u0e01", "\u0e02", "\u0e03", "\u0e04", "\u0e05", "\u0e06", "\u0e07", "\u0e08", "\u0e09",
                        "\u0e0a", "\u0e0b", "\u0e0c", "\u0e0d", "\u0e0e", "\u0e0f", "\u0e10", "\u0e11", "\u0e12",
                        "\u0e13", "\u0e14", "\u0e15", "\u0e16", "\u0e17", "\u0e18", "\u0e19", "\u0e1a", "\u0e1b",
                        "\u0e1c", "\u0e1d", "\u0e1e", "\u0e1f", "\u0e20", "\u0e21", "\u0e22", "\u0e23", "\u0e24",
                        "\u0e25", "\u0e26", "\u0e27", "\u0e28", "\u0e29", "\u0e2a", "\u0e2b", "\u0e2c", "\u0e2d",
                        "\u0e2e", "\u0e30", "\u0e31", "\u0e32", "\u0e45", "\u0e33", "\u0e34", "\u0e35", "\u0e36",
                        "\u0e37", "\u0e38", "\u0e39", "\u0e40", "\u0e41", "\u0e42", "\u0e43", "\u0e44", "\u0e47",
                        "\u0e48", "\u0e49", "\u0e4a", "\u0e4b", "\u0e4c", "\u0e4d", "\u0e3a", "\u0e4e", "\u0e50",
                        "\u0e51", "\u0e52", "\u0e53", "\u0e54", "\u0e55", "\u0e56", "\u0e57", "\u0e58", "\u0e59",
                        "\u0e3f", "\u0e46", "\u0e2f", "\u0e5a", "\u0e4f", "\u0e5b"
                    ]
                },
                'lao': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-lao',
                    'language': 'lo',
                    'layout': 'characters',
                    'characters': [
                        "\u0e81", "\u0e82", "\u0e84", "\u0e87", "\u0e88", "\u0eaa", "\u0e8a", "\u0e8d", "\u0e94",
                        "\u0e95", "\u0e96", "\u0e97", "\u0e99", "\u0e9a", "\u0e9b", "\u0e9c", "\u0e9d", "\u0e9e",
                        "\u0e9f", "\u0ea1", "\u0ea2", "\u0ea5", "\u0ea7", "\u0eab", "\u0ead", "\u0eae", "\u0ea3",
                        "\u0edc", "\u0edd", "\u0ebc", "\u0ebd", "\u0eb0", "\u0eb1", "\u0eb2", "\u0eb3", "\u0eb4",
                        "\u0eb5", "\u0eb6", "\u0eb7", "\u0eb8", "\u0eb9", "\u0ebb", "\u0ec0", "\u0ec1", "\u0ec2",
                        "\u0ec3", "\u0ec4", "\u0ec8", "\u0ec9", "\u0eca", "\u0ecb", "\u0ecc", "\u0ecd", "\u0ed0",
                        "\u0ed1", "\u0ed2", "\u0ed3", "\u0ed4", "\u0ed5", "\u0ed6", "\u0ed7", "\u0ed8", "\u0ed9",
                        "\u20ad", "\u0ec6", "\u0eaf"
                    ]
                },
                'khmer': {
                    'labelMsg': 'wikieditor-toolbar-characters-page-khmer',
                    'language': 'km',
                    'layout': 'characters',
                    'characters': [
                        "\u1780", "\u1781", "\u1782", "\u1783", "\u1784", "\u1785", "\u1786", "\u1787", "\u1788",
                        "\u1789", "\u178a", "\u178b", "\u178c", "\u178d", "\u178e", "\u178f", "\u1790", "\u1791",
                        "\u1792", "\u1793", "\u1794", "\u1795", "\u1796", "\u1797", "\u1798", "\u1799", "\u179a",
                        "\u179b", "\u179c", "\u179f", "\u17a0", "\u17a1", "\u17a2", "\u17a3", "\u17a4", "\u17a5",
                        "\u17a6", "\u17a7", "\u17a8", "\u17a9", "\u17aa", "\u17ab", "\u17ac", "\u17ad", "\u17ae",
                        "\u17af", "\u17b0", "\u17b1", "\u17b2", "\u17b3", "\u17d2", "\u17b4", "\u17b5", "\u17b6",
                        "\u17b7", "\u17b8", "\u17b9", "\u17ba", "\u17bb", "\u17bc", "\u17bd", "\u17be", "\u17bf",
                        "\u17c0", "\u17c1", "\u17c2", "\u17c3", "\u17c4", "\u17c5", "\u17c6", "\u17c7", "\u17c8",
                        "\u17c9", "\u17ca", "\u17cb", "\u17cc", "\u17cd", "\u17ce", "\u17cf", "\u17d0", "\u17d1",
                        "\u17d3", "\u17dd", "\u17dc", "\u17e0", "\u17e1", "\u17e2", "\u17e3", "\u17e4", "\u17e5",
                        "\u17e6", "\u17e7", "\u17e8", "\u17e9", "\u17db", "\u17d4", "\u17d5", "\u17d6", "\u17d7",
                        "\u17d8", "\u17d9", "\u17da", "\u17f0", "\u17f1", "\u17f2", "\u17f3", "\u17f4", "\u17f5",
                        "\u17f6", "\u17f7", "\u17f8", "\u17f9", "\u19e0", "\u19e1", "\u19e2", "\u19e3", "\u19e4",
                        "\u19e5", "\u19e6", "\u19e7", "\u19e8", "\u19e9", "\u19ea", "\u19eb", "\u19ec", "\u19ed",
                        "\u19ee", "\u19ef", "\u19f0", "\u19f1", "\u19f2", "\u19f3", "\u19f4", "\u19f5", "\u19f6",
                        "\u19f7", "\u19f8", "\u19f9", "\u19fa", "\u19fb", "\u19fc", "\u19fd", "\u19fe", "\u19ff"
                    ]
                }
             }
             }
         }
         },
 
         'help': {
         this.uiElement.css({
             'labelMsg': 'wikieditor-toolbar-section-help',
             'border': '1px solid #aaa',
             'type': 'booklet',
             'list-style-type': 'none',
             'deferLoad': true,
             'list-style-image': 'none',
            'pages': {
            'padding': '.25em',
                'format': {
            'margin': '.5em 0 0 0'
                    'labelMsg': 'wikieditor-toolbar-help-page-format',
        });
                    'layout': 'table',
    }
                    'headings': [
 
                        { 'textMsg': 'wikieditor-toolbar-help-heading-description' },
    // Válaszadásra lehetőséget adó ineraktív elemek (radio button, checkbox)
                        { 'textMsg': 'wikieditor-toolbar-help-heading-syntax' },
    // hozzáadása a válaszlehetőségekhez
                        { 'textMsg': 'wikieditor-toolbar-help-heading-result' }
    function addAnswerControls() {
                    ],
        this.uiElement.addClass('vw-quiz-question');
                    'rows': [
        var answerOptionElements = $('li', this.uiElement).not('li li');
                        {
        if (this.type === 1) {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-italic-description' },
            for (var i = 0; i != answerOptionElements.length; i++) {
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-italic-syntax' },
                 var idString = 'vw-qa-' + this.questionId.toString() + '-' + this.answerId.toString();
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-italic-result' }
                 var uiRadiobutton = $('<input type="radio" />')
                        },
                         .prop('id', idString + '-' + i.toString())
                        {
                         .prop('name', idString)
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-bold-description' },
                         .data('answer-id', i);
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-bold-syntax' },
                 // A listaelemre kattintás olyan, mintha rákattintanék a gombra
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-bold-result' }
                 $(answerOptionElements[i]).prepend(uiRadiobutton).click(uiRadiobutton, function(eventObject) {
                        },
                    if (eventObject.target.nodeName == "INPUT") {
                        {
                         return true;
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-bolditalic-description' },
                     }
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-bolditalic-syntax' },
                     eventObject.data.click();
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-bolditalic-result' }
                });
                        }
            }
                    ]
        } else if (this.type === 2) {
                 },
            for (var i = 0; i !== answerOptionElements.length; i++) {
                'link': {
                var idString = 'vw-qa-' + this.questionId.toString() + '-' + this.answerId.toString() + '-' + i.toString();
                    'labelMsg': 'wikieditor-toolbar-help-page-link',
                var uiCheckbox = $('<input type="checkbox" />')
                    'layout': 'table',
                         .prop('id', idString)
                    'headings': [
                         .prop('name', idString)
                        { 'textMsg': 'wikieditor-toolbar-help-heading-description' },
                         .data('answer-id', i);
                        { 'textMsg': 'wikieditor-toolbar-help-heading-syntax' },
                 // A listaelemre kattintás olyan, mintha rákattintanék a pipára
                        { 'textMsg': 'wikieditor-toolbar-help-heading-result' }
                 $(answerOptionElements[i]).prepend(uiCheckbox).click(uiCheckbox, function(eventObject) {
                    ],
                    if (eventObject.target.nodeName == "INPUT") {
                    'rows': [
                         return true;
                        {
                    }
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-ilink-description' },
                     eventObject.data.click();
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-ilink-syntax' },
                 });
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-ilink-result' }
                        },
                        {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-xlink-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-xlink-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-xlink-result' }
                        }
                    ]
                },
                 'heading': {
                    'labelMsg': 'wikieditor-toolbar-help-page-heading',
                    'layout': 'table',
                    'headings': [
                        { 'textMsg': 'wikieditor-toolbar-help-heading-description' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-syntax' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-result' }
                    ],
                    'rows': [
                        {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading2-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading2-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading2-result' }
                        },
                         {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading3-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading3-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading3-result' }
                        },
                         {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading4-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading4-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading4-result' }
                        },
                         {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading5-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading5-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-heading5-result' }
                        }
                    ]
                 },
                 'list': {
                    'labelMsg': 'wikieditor-toolbar-help-page-list',
                    'layout': 'table',
                    'headings': [
                        { 'textMsg': 'wikieditor-toolbar-help-heading-description' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-syntax' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-result' }
                    ],
                    'rows': [
                        {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-ulist-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-ulist-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-ulist-result' }
                        },
                        {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-olist-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-olist-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-olist-result' }
                         }
                     ]
                },
                'file': {
                    'labelMsg': 'wikieditor-toolbar-help-page-file',
                     'layout': 'table',
                    'headings': [
                        { 'textMsg': 'wikieditor-toolbar-help-heading-description' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-syntax' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-result' }
                    ],
                    'rows': [
                        {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-file-description' },
                            'syntax': { 'htmlMsg': [ 'wikieditor-toolbar-help-content-file-syntax', fileNamespace ] },
                            'result': { 'htmlMsg': [ 'wikieditor-toolbar-help-content-file-result', mw.config.get( 'stylepath' ), mw.config.get( 'wgExtensionAssetsPath' ) ] }
                        }
                    ]
                },
                'reference': {
                    'labelMsg': 'wikieditor-toolbar-help-page-reference',
                    'layout': 'table',
                    'headings': [
                        { 'textMsg': 'wikieditor-toolbar-help-heading-description' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-syntax' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-result' }
                    ],
                    'rows': [
                         {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-reference-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-reference-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-reference-result' }
                        },
                         {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-rereference-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-rereference-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-rereference-result' }
                        },
                         {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-showreferences-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-showreferences-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-showreferences-result' }
                        }
                    ]
                 },
                 'discussion': {
                    'labelMsg': 'wikieditor-toolbar-help-page-discussion',
                    'layout': 'table',
                    'headings': [
                        { 'textMsg': 'wikieditor-toolbar-help-heading-description' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-syntax' },
                        { 'textMsg': 'wikieditor-toolbar-help-heading-result' }
                    ],
                    'rows': [
                        {
                            'description': {
                                'htmlMsg': 'wikieditor-toolbar-help-content-signaturetimestamp-description'
                            },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-signaturetimestamp-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-signaturetimestamp-result' }
                        },
                        {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-signature-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-signature-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-signature-result' }
                        },
                         {
                            'description': { 'htmlMsg': 'wikieditor-toolbar-help-content-indent-description' },
                            'syntax': { 'htmlMsg': 'wikieditor-toolbar-help-content-indent-syntax' },
                            'result': { 'htmlMsg': 'wikieditor-toolbar-help-content-indent-result' }
                        }
                     ]
                 }
             }
             }
         }
         }
     }
     } };
 
 
}
 
 
/* ------------------------------------------------------- */
 
/*
Statisztikát számon tartó objektum.
*/
function StatObject() {
    this.totalAnswers =      0;
    this.totalPercentage =  0;
    this.getRunningAverage = function() { return this.totalPercentage / this.totalAnswers; };
    this.reset =            function() { this.totalAnswers = 0; this.totalPercentage = 0; };
}
 
 
/* ------------------------------------------------------- */
 
/*
Felhasználói beállításokat számon tartó objektum.
*/
function ConfObject(showAllDefault, randomOrderDefault) {
    this.showAll = showAllDefault;
    if ($.cookie('vw-quiz-conf-showall') == 'showall') {
        this.showAll = true;
    }
    if ($.cookie('vw-quiz-conf-showall') == 'showone') {
        this.showAll = false;
    }
    this.randomOrder = randomOrderDefault;
    if ($.cookie('vw-quiz-conf-ordering') == 'random') {
        this.randomOrder = true;
    }
    if ($.cookie('vw-quiz-conf-ordering') == 'inorder') {
        this.randomOrder = false;
    }
 
    // Véletlenszerú sorrend mentése cookie-ba
    this.setRandomOrder = function(value) {
        this.randomOrder = value;
        $.cookie('vw-quiz-conf-ordering', value ? 'random' : 'inorder');
    };
 
    // "Minden kérdés látszik" mentése cookie-ba
    this.setShowAll = function(value) {
        this.showAll = value;
        $.cookie('vw-quiz-conf-showall', value ? 'showall' : 'showone');
    };
}
}


 
}; } ) ( jQuery );
})( mediaWiki, jQuery );
});
 
/*
 
-----------------------------------------------
--------------- END OF Quiz.js ----------------
-----------------------------------------------
 
*/