User:Ungoliant MMDCCLXIV/synshide.js

Hello, you have come here looking for the meaning of the word User:Ungoliant MMDCCLXIV/synshide.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word User:Ungoliant MMDCCLXIV/synshide.js, but we will also tell you about its etymology, its characteristics and you will know how to say User:Ungoliant MMDCCLXIV/synshide.js in singular and plural. Everything you need to know about the word User:Ungoliant MMDCCLXIV/synshide.js you have here. The definition of the word User:Ungoliant MMDCCLXIV/synshide.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUser:Ungoliant MMDCCLXIV/synshide.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
var nymtypes = {
    'synonyms': 'synonyms',
    'synonym': 'synonyms',
    'antonyms': 'antonyms',
    'antonym': 'antonyms',
    'hyponyms': 'hyponyms',
    'hyponym': 'hyponyms',
    'hypernyms': 'hypernyms',
    'hypernym': 'hypernyms',
    // 'coordinateterms': 'coordinate terms'
};

function setupNyms(dltag) {
    var names = '';
    $(dltag).children('dd').children('span.nyms').each(function(){
        var nymclass = /nyms\s(+)/i.exec(this.className);
        if (nymclass !== null && nymclass.length > 1 && nymtypes] !== null) {
            names += ((names.length > 0)? ', ' : '') + nymtypes];
        }
    });

    if (names.length === 0) return;


    var toggler = $('<a>');
        
    function show() {
        toggler.html(names + ' ▲');
        if ($(dltag).children('dd').children().not('.nyms').length === 0) {
            $(dltag).show();
        } else {
            $(dltag).children('dd').children('span.nyms').show();
        }
    }
    function hide() {
        toggler.html(names + ' ▼');
        if ($(dltag).children('dd').children().not('.nyms').length === 0) {
            $(dltag).hide();
        } else {
            $(dltag).children('dd').children('span.nyms').hide();
        }
    }
    hide();



    $(dltag).parent().children('ul, dl').first().before($('<span>').addClass('HQToggle').append(toggler).css('margin-left', '5px'));
    toggler.on('click', VisibilityToggles.register('semantic relations', show, hide));



}

$.when($.ready, mw.loader.using('mediawiki.cookie')).done(function(){
    if (mw.config.get('wgNamespaceNumber') === 0) {
        $('dl:has(dd > .nyms)').each(function(){
            setupNyms(this);
        });
    }
});