「使用者討論:Osamobile」修訂間的差異

出自汝等是人是狼wiki
跳至導覽 跳至搜尋
行 74: 行 74:
| {{skt1}} 待輸入
| {{skt1}} 待輸入
|}
|}
/*
所有用戶在加載任何頁面時,這裡的JavaScript都會加載
*/
window.addPortletLink = mw.util.addPortletLink;
window.getParamValue = mw.util.getParamValue;
(function ($, mw) {
    /* Search Engine variant hack */
    if (/\.google\./.test(document.referrer) && /\.wikipedia\.org\/zh(-[^/]+)?\//.test(document.location.href)) {
        document.location = document.location.href.replace(/\.wikipedia\.org\/zh(-[^/]+)?\//, ".wikipedia.org/wiki/");
    }
    /* Cookies */
    window.setCookie = function (cookieName, cookieValue, expiryDay) {
        $.cookie(cookieName, cookieValue, {
            expires: expiryDay,
            path: '/'
        });
    };
    window.getCookie = function (cookieName) {
        return $.cookie(cookieName);
    };
    window.deleteCookie = function (cookieName) {
        $.cookie(cookieName, null);
    };
    /* overwrite the original script loaders with mw.loader.load
    window.importScript = function (page) {
        mw.loader.load(wgServer + wgScript + '?title=' + mw.util.wikiUrlencode(page) + '&action=raw&ctype=text/javascript');
    };
    window.importScriptURI = function (url) {
        mw.loader.load(url);
    };
    window.importStylesheet = function (page) {
        mw.loader.load(wgServer + wgScript + '?title=' + mw.util.wikiUrlencode(page) + '&action=raw&ctype=text/css', 'text/css');
    };
    window.importStylesheetURI = function (url) {
        mw.loader.load(url, 'text/css');
    };*/
    window.importScriptCallback = function (page, ready) {
        importScriptURICallback(wgServer + wgScript + '?title=' + mw.util.wikiUrlencode(page) + '&action=raw&ctype=text/javascript', ready);
    };
    window.importScriptURICallback = function (url, ready) {
        $.ajax({
            'url': url,
            'cache': true,
            'dataType': 'script',
            'success': ready
        });
    };
    /* 中文處理 */
    /* 1. 设置中文语言页 */
    $('html').attr('lang', wgUserVariant).attr('xml:lang', wgUserVariant);
    /* 2. 返回繁簡字串 */
    var wgUXS = function (wg, hans, hant, cn, tw, hk, sg, zh, mo, my) {
        var ret = {
            'zh': zh || hans || hant || cn || tw || hk || sg || mo || my,
            'zh-hans': hans || cn || sg || my,
            'zh-hant': hant || tw || hk || mo,
            'zh-cn': cn || hans || sg || my,
            'zh-sg': sg || hans || cn || my,
            'zh-tw': tw || hant || hk || mo,
            'zh-hk': hk || hant || tw || mo
        }
        return ret[wg] || zh || hans || hant || cn || tw || hk || sg || mo || my; //保證每一語言有值
    }
    window.wgULS = function (hans, hant, cn, tw, hk, sg, zh, mo, my) {
        return wgUXS(wgUserLanguage, hans, hant, cn, tw, hk, sg, zh, mo, my);
    };
    window.wgUVS = function (hans, hant, cn, tw, hk, sg, zh, mo, my) {
        return wgUXS(wgUserVariant, hans, hant, cn, tw, hk, sg, zh, mo, my);
    };
    /* 當需要時載入對應的 scripts */
    if (wgAction == "edit" || wgAction == "submit" || wgCanonicalSpecialPageName == 'Search') { //scripts specific to editing pages
        importScript('MediaWiki:Common.js/edit.js');
    }
    /* 辅助处理 */
    /* 1. 功能設定 */
    window.JSConfig = window.JSconfig || {};
    window.JSConfig.collapseText = wgULS('隐藏▲', '隱藏▲'); //指示折叠收缩的默认文字
    window.JSConfig.expandText = wgULS('显示▼', '顯示▼'); //指示折叠展开的默认文字
    window.JSConfig.autoCollapse = 2; //文章少于 autoCollapse 个折叠块时,不自动折叠
    // window.JSConfig.SpecialSearchEnhancedDisabled=false; //是否禁止增加其它搜索引擎
    /* 2. 用jQuery实现的getElementsByClassName(需不需要返回DOM对象?) */
    window.getElementsByClassName = function (elm, tag, className) {
        return $(tag + '.' + className, elm);
    };
    /* 3. 遍历 */
    window.applyEach = function (callback, array) {
        var i = 0,
            j = array.length;
        while (i < j) {
            callback(array[i++]);
        }
    };
    /* 4. 移動元素 */
    window.elementMoveto = function (node, refNode, pos) { //默认位置为refNode前
        if (node && refNode) {
            if (pos && pos == 'after') {
                $(refNode).after(node);
            } else {
                $(refNode).before(node);
            }
        }
    };
    /* 5. 创建元素 */
    window.createElement = function (tag, children, props) {
        var element = document.createElement(tag);
        if (!(children instanceof Array)) {
            children = [children];
        }
        applyEach(function (child) {
            if (typeof child == 'string') {
                child = document.createTextNode(child);
            }
            if (child) {
                element.appendChild(child);
            }
        }, children);
        if (typeof props == 'object') {
            for (var k in props) {
                switch (k) {
                case 'styles':
                    var styles = props.styles;
                    for (var s in styles) {
                        element.style[s] = styles[s];
                    }
                    break;
                case 'events':
                    var events = props.events;
                    for (var e in events) {
                        addHandler(element, e, events[e]);
                    }
                    break;
                case 'class':
                    element.className = props[k];
                    break;
                default:
                    element.setAttribute(k, props[k]);
                }
            }
        }
        return element;
    };
    //wiki URL
    window.wgProjectURL = {
        en: 'http://en.wikipedia.org',
        de: 'http://de.wikipedia.org',
        fr: 'http://fr.wikipedia.org',
        pl: 'http://pl.wikipedia.org',
        ja: 'http://ja.wikipedia.org',
        it: 'http://it.wikipedia.org',
        nl: 'http://nl.wikipedia.org',
        pt: 'http://pt.wikipedia.org',
        es: 'http://es.wikipedia.org',
        sv: 'http://sv.wikipedia.org',
        //僅列前十名其它語言百科
        m: 'http://meta.wikimedia.org',
        b: 'http://zh.wikibooks.org',
        q: 'http://zh.wikiquote.org',
        n: 'http://zh.wikinews.org',
        wikt: 'http://zh.wiktionary.org',
        mw: 'http://www.mediawiki.org',
        commons: 'http://commons.wikimedia.org'
    };
    /**
    * 将页面名称转换为URL
    *
    * @param page 页面名称
    * @param paras 附加后缀对象,用空对象{}做参数可以取得源码
    */
    window.getWikiPath = function (page, paras) {
        var reg = /^[a-z]+:/;
        var pre = page.match(reg);
        pre = pre && wgProjectURL[pre[0].replace(/:$/, '').toLowerCase()];
        if (pre) {
            page = page.replace(reg, '');
        } else {
            pre = wgServer;
        } //保障没有相对路径,以照顾在线代理。
        var url = pre + wgScript + '?title=' + encodeURI(page.replace(' ', '_'));
        if (typeof paras == 'object') {
            paras.ctype = paras.ctype || 'text';
            paras.dontcountme = paras.dontcountme || 's';
            paras.action = paras.action || 'raw';
            for (var k in paras) {
                url += '&' + k + '=' + paras[k];
            }
        }
        return url;
    };
    //引入[[Special:Gadgets]]要求的腳本和樣式
    if (window.requireScripts instanceof Array) {
        applyEach(importScript, requireScripts);
    }
    if (window.requireStylesheets instanceof Array) {
        applyEach(importStylesheet, requireStylesheets);
    }
    window.requireScripts = [];
    window.requireScripts.push = function (script) {
        importScript(script);
    };
    window.requireStylesheets = [];
    window.requireStylesheets.push = function (style) {
        importStylesheet(style);
    };
    /* 测试元素中是否含有指定的样式 */
    window.hasClass = function (elem, cls) {
        return $(elem).hasClass(cls);
    };
/*
== IE兼容性修正 ==
*/
    if ($.browser.msie) {
        /** Internet Explorer bug fix **************************************************
        *
        *  Description: Fixes IE horizontal scrollbar bug
        *  Maintainers: [[User:fdcn]]
        */
        var oldWidth;
        var docEl = document.documentElement;
        function fixIEScroll() {
            if (!oldWidth || docEl.clientWidth > oldWidth) {
                doFixIEScroll();
            } else {
                setTimeout(doFixIEScroll, 1);
            }
            oldWidth = docEl.clientWidth;
        }
        function doFixIEScroll() {
            docEl.style.overflowX = (docEl.scrollWidth - docEl.clientWidth < 4) ? "hidden" : "";
        }
        document.attachEvent("onreadystatechange", fixIEScroll);
        attachEvent("onresize", fixIEScroll);
        //Import scripts specific to Internet Explorer 6
        if (navigator.appVersion.substr(22, 1) == "6") {
            importScript("MediaWiki:Common.js/IE60Fixes.js")
        }
    }
/*
== 特色條目優良與條目鏈接顯示==
*/
    $(function () {
        $('#p-lang li').each(function () {
            if ($('#' + this.className + '-fa').length) {
                this.className += " FA"
                this.title = wgULS("此条目在此语言版本中为特色条目", "此條目在此語言版本中為特色條目");
            } else if ($('#' + this.className + '-ga').length) {
                this.className += " GA"
                this.title = wgULS("此条目在此语言版本中为优良条目", "此條目在此語言版本中為優良條目");
            }
        });
    });
// makeCollapsible (remove when deployed)
importStylesheet('MediaWiki:JQuery-makeCollapsible.css');
importScript('MediaWiki:JQuery-makeCollapsible.js');
/*
== 增加摺疊功能 ==
*/
    /** 摺疊 div table *****************************
    *  Description: 实现div.NavFrame和table.collapsible的可折叠性。
    *  JSConfig的collapseText、expandText、autoCollapse属性定义默认文字和默认最少自动折叠块
    *  Maintainers: User:fdcn
    */
    function cancelBubble(e) {
        e = e || window.event;
        if (e.stopPropagation) {
            e.stopPropagation();
        } else {
            e.cancelBubble = true;
        }
    }
    function createToggleButton(head) {
        var parent = head;
        if (head.tagName.toLowerCase() == 'tr') { //对表格特别处理
            if (head.getElementsByTagName("th").length) {
                parent = head.cells[parent.cells.length - 1];
            } else {
                return;
            }
        }
        var textS, textH, button = getElementsByClassName(head, "span", "NavToggle")[0];
        if (button) {
            parent = button.parentNode;
        } else {
            textS = createElement("span", [JSConfig.expandText], {
                'class': 'toggleShow'
            });
            textH = createElement("span", [JSConfig.collapseText], {
                'class': 'toggleHide'
            });
            button = createElement("span", [textS, textH], {
                'class': 'NavToggle',
                styles: {
                    'width': "6em"
                }
            });
        }
        button.style.display = "inline";
        head.className += " uncollapse toggleHotspot";
        parent.insertBefore(button, parent.childNodes[0]);
    }
    window.wgCollapse = function (head, container, defaultCollapse) {
        if (head) {
            createToggleButton(head);
        }
        var self = this;
        this.state = 0;
        this.container = container;
        applyEach(function (h) {
            if (h.nodeType == 1 && !hasClass(h, "uncollapse") && !hasClass(h, "toggleShow") && !hasClass(h, "toggleHide")) {
                h.className += " toggleHide";
            }
        }, defaultCollapse); //预设的隐藏元素
        function getArray(clsname) {
            var r = [],
                i = 0,
                e, ea = getElementsByClassName(container, "*", clsname);
            while (e = ea[i++]) {
                var parent = e.parentNode;
                while (!hasClass(parent, 'NavFrame') && !hasClass(parent, 'collapsible')) {
                    parent = parent.parentNode;
                }
                if (parent == container) {
                    r.push(e);
                }
            }
            return r;
        }
        var toggleA = getArray("toggleShow");
        var toggleB = getArray("toggleHide");
        var hotspots = getArray("toggleHotspot");
        function _toggle(list, state) {
            var i = 0,
                e;
            while (e = list[i++]) {
                e.style.display = state ? e.showStyle || '' : 'none';
            }
        }
        this.toggle = function (state) {
            self.state = (typeof state == 'undefined') ? 1 - self.state : state;
            _toggle(toggleA, self.state);
            _toggle(toggleB, 1 - self.state);
        }
        var i = 0,
            h;
        while (h = hotspots[i++]) {
            applyEach(function (link) {
                addClickHandler(link, cancelBubble);
            }, h.getElementsByTagName("A"));
            h.style.cursor = "pointer";
            $(h).attr('tabindex', '0').keydown(function (event) {
                if (event.which == 13) { // Enter
                    self.toggle();
                }
            });
            addClickHandler(h, function () {
                self.toggle();
            });
        }
    };
    $(function () {
        if (!window.disableCollapse) {
            //init
            var items = [];
            applyEach(function (NavFrame) {
                var i = 0,
                    child = NavFrame.childNodes,
                    head;
                while (head = child[i++]) {
                    if (head.className && hasClass(head, "NavHead")) {
                        break;
                    }
                }
                items.push(new wgCollapse(head, NavFrame, NavFrame.childNodes));
            }, getElementsByClassName(document, "div", "NavFrame"));
            applyEach(function (table) {
                var rows = table.rows;
                items.push(new wgCollapse(rows[0], table, rows));
            }, getElementsByClassName(document, "table", "collapsible"));
            var item, i = 0,
                count = items.length;
            while (item = items[i++]) {
                item.toggle(
                hasClass(item.container, "collapsed") || (count >= JSConfig.autoCollapse && hasClass(item.container, "autocollapse")));
            }
        }
    });
    //修正摺疊後定位變化
    hookEvent("load", function () {
        if (location.hash) {
            location.href = location.hash;
        }
    });
/*
== 取消討論頁的[+]按鈕 ==
*/
    $(function () {
        if ($('#no-newsection').length) {
            $('#ca-addsection').css('display', 'none');
        }
    });
/*
==WikiMiniAtlas世界地圖==
*/
    /** WikiMiniAtlas *******************************************************
    *
    *  描述:WikiMiniAtlas是一個popup而可點選與拖曳的世界地圖。
    *              這個腳本將會讓所有的經緯度標示中顯示WikiMiniAtlas的popup開啟按鈕。
    *              由於被許多計畫使用,因此腳本放置在元維基中。
    *              更多資訊請詳見[[Meta:WikiMiniAtlas]]。
    *  創建者:[[:en:User:Dschwen]]
    */
    var metaBase = 'http://meta.wikimedia.org';
    if (mw.config.get('wgServer') == 'https://secure.wikimedia.org') {
        var metaBase = 'https://secure.wikimedia.org/wikipedia/meta';
    }
    mw.loader.load(metaBase + '/w/index.php?title=MediaWiki:Wikiminiatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400');
/*
==保護選項校正==
*/
    if (wgAction == "protect") {
        $(function () {
            var pform = document.getElementById("mw-Protect-Form");
            var timeoptions;
            timeoptions = pform["wpProtectExpirySelection-edit"].options;
            if (timeoptions[0].value != "existing") {
                timeoptions[timeoptions.length - 1].selected = true;
                ProtectionForm.updateExpiryList(pform["wpProtectExpirySelection-edit"]);
            }
            timeoptions = pform["wpProtectExpirySelection-move"].options;
            if (timeoptions[0].value != "existing") {
                timeoptions[timeoptions.length - 1].selected = true;
                ProtectionForm.updateExpiryList(pform["wpProtectExpirySelection-move"]);
            }
        });
    }
/*
==擷取選單文字按鈕==
*/
    $(function () {
        var addGetMenuTextButton = function (id, srcMenu, targetText, tiptext, afterSelIdx) {
            var btnAdd = createElement("input", "", {
                'id': id,
                'type': 'button',
                'value': ((!tiptext) ? "(+)" : tiptext)
            });
            btnAdd.srcMenu = srcMenu;
            btnAdd.targetText = targetText;
            btnAdd.afterSelIdx = (!afterSelIdx || isNaN(afterSelIdx)) ? 0 : afterSelIdx;
            addHandler(btnAdd, "click", function () {
                this.targetText.value += this.srcMenu.options[this.srcMenu.selectedIndex].value;
                this.srcMenu.selectedIndex = this.afterSelIdx;
            });
            elementMoveto(btnAdd, srcMenu, "after");
        }
        var useForm;
        if (wgAction == "protect" || wgAction == "unprotect") { //保護理由
            useForm = document.getElementById("mw-Protect-Form");
            addGetMenuTextButton("wpProtectReasonSelectionAdd", useForm.wpProtectReasonSelection, useForm["mwProtect-reason"], "加到附加的理由", 0);
        } else if (("" + wgCanonicalSpecialPageName).toLowerCase() == "blockip") { //封禁理由
            useForm = document.getElementById("blockip");
            addGetMenuTextButton("wpBlockReasonListAdd", useForm.wpBlockReasonList, useForm.wpBlockReason, wgULS("加到附带原因", "加到附帶原因"), 0);
        }
    });
/*
==避免在主條目中出現捲軸框==
*/
    if (!wgCanonicalNamespace) $(function () {
        var disableDivOverflowScroll = function (obj) {
            var targetdiv;
            for (var i = obj.children.length; i-- > 0;) if (obj.children[i].tagName.toLowerCase() == "div") {
                targetdiv = obj.children[i];
                if (targetdiv.className.indexOf("noprint") == -1 && targetdiv.className.indexOf("thumb") == -1) {
                    if ( !! (targetdiv.style.overflow) || !! (targetdiv.style.overflowY)) with(targetdiv.style) {
                        overflowY = "visible";
                        padding = "";
                        border = "";
                        height = "";
                    }
                    disableDivOverflowScroll(targetdiv);
                }
            }
        }
        disableDivOverflowScroll(document.getElementsByTagName("body")[0]);
    });
/*
== metaBox ==
HERE STARTS THE WORKING-CODE OF "METABOXES"*/
/* Funcionament de la Plantilla:Metacaixa
Implementat per: Usuari:Peleguer.
Actualitzat per Joanjoc seguint les indicacions d'en Martorell
*/
    function MetaCaixaInit() {
        //S'executa al carregar-se la pàgina, si hi ha metacaixes,
        // s'assignen els esdeveniments als botons
        //alert("MetaCaixaInit");
        var i = 0 //Inicialitzem comptador de caixes
        for (i = 0; i <= 9; i++) {
            var vMc = document.getElementById("mc" + i);
            if (!vMc) break;
            //alert("MetaCaixaInit, trobada Metacaixa mc"+i);
            var j = 1 //Inicialitzem comptador de botons dins de la caixa
            var vPsIni = 0 //Pestanya visible inicial
            for (j = 1; j <= 9; j++) {
                var vBt = document.getElementById("mc" + i + "bt" + j);
                if (!vBt) break;
                //alert("MetaCaixaInit, trobat botó mc"+i+"bt"+j);
                vBt.onclick = MetaCaixaMostraPestanya; //A cada botó assignem l'esdeveniment onclick
                //alert (vBt.className);
                if (vBt.className == "mcBotoSel") vPsIni = j; //Si tenim un botó seleccionat, en guardem l'index
            }
            //alert ("mc="+i+", ps="+j+", psini="+vPsIni );
            if (vPsIni == 0) { //Si no tenim cap botó seleccionat, n'agafem un aleatòriament
                vPsIni = 1 + Math.floor((j - 1) * Math.random());
                //alert ("Activant Pestanya a l'atzar; _mc"+i+"bt"+vPsIni +"_");
                document.getElementById("mc" + i + "ps" + vPsIni).style.display = "block";
                document.getElementById("mc" + i + "ps" + vPsIni).style.visibility = "visible";
                document.getElementById("mc" + i + "bt" + vPsIni).className = "mcBotoSel";
            }
        }
    }
    function MetaCaixaMostraPestanya() {
        //S'executa al clicar una pestanya,
        //aquella es fa visible i les altres s'oculten
        var vMcNom = this.id.substr(0, 3); //A partir del nom del botó, deduïm el nom de la caixa
        var vIndex = this.id.substr(5, 1); //I l'index
        var i = 1
        for (i = 1; i <= 9; i++) { //busquem totes les pestanyes d'aquella caixa
            //alert(vMcNom+"ps"+i);
            var vPsElem = document.getElementById(vMcNom + "ps" + i);
            if (!vPsElem) break;
            if (vIndex == i) { //Si és la pestanya bona la mostrem i canviem la classe de botó
                vPsElem.style.display = "block";
                vPsElem.style.visibility = "visible";
                document.getElementById(vMcNom + "bt" + i).className = "mcBotoSel";
            } else { //Sinó, l'ocultem i canviem la classe de botó
                vPsElem.style.display = "none";
                vPsElem.style.visibility = "hidden";
                document.getElementById(vMcNom + "bt" + i).className = "mcBoto";
            }
        }
        return false; //evitem la recàrrega de la pàgina
    }
    addOnloadHook(MetaCaixaInit);
    /*HERE FINISHES THE WORKING-CODE OF "METABOXES"*/
/*
== 智能讨论页编辑(新建) ==
*/
    $(function () {
        var catalk = $('#ca-talk');
        if (catalk.hasClass('new') && wgNamespaceNumber != 2) {
            var a = $('a:first', catalk);
            a.attr('href', a.attr('href') + '&section=new');
        }
    });
    //
    /** Magic editintros ****************************************************
    *
    *  Description: Adds editintros on disambiguation pages and BLP pages.
    *  Maintainers: [[:en:User:RockMFR]], [[User:PhiLiP]]
    */
    var addEditIntro = function (name) {
        $('#ca-edit,.editsection').each(function () {
            $('a', this).attr('href', $('a', this).attr('href') + '&editintro=' + name);
        });
    };
    if (wgNamespaceNumber == 0) {
        $(function () {
            if ($('#disambig').length || $('#disambigbox').length) {
                addEditIntro('Template:Disambig_editintro');
            }
        });
        $(function () {
            if ($.inArray('在世人物', wgCategories) !== -1) {
                addEditIntro('Template:BLP_editintro');
            }
        });
    }
    // Top icon: [[Template:Topicon]]
    $(function () {
        // nostalgia, standard and cologneblue use .pagetitle
        // what's the problem on modern?
        $('<div />').css('float', 'right').append($('.topicon').css({
            'float': 'right',
            'position': 'static'
        }).show()).prependTo('#firstHeading, .pagetitle');
    });
/*
== 引用錯誤標籤名字解碼 ==
*/
    $(function () {
        $('.anchordecodeme').each(function () {
            $(this).text(decodeURIComponent($(this).text().replace(/\.([0-9A-F]{2})/g, '%$1')));
        });
    });
    /** extract a URL parameter from the current URL **********
    * From [[en:User:Lupin/autoedit.js]]
    *
    * paramName  : the name of the parameter to extract
    *
    * Local Maintainer: [[User:Dschwen]]
    */
    function getParamValue(paramName, url) {
        if (typeof(url) == 'undefined') url = document.location.href;
        var cmdRe = RegExp('[&?]' + paramName + '=([^&]*)');
        var m = cmdRe.exec(url);
        if (m) {
            try {
                return decodeURIComponent(m[1]);
            } catch (someError) {}
        }
        return null;
    }
    /** &withJS= URL parameter *******
    * Allow to try custom scripts on the MediaWiki namespace without
    * editing [[Special:Mypage/monobook.js]]
    *
    * Maintainer: [[User:Platonides]]
    * [[User:PhiLiP]]移植自Commons
    */
    {
        var extraJS = getParamValue("withJS");
        if (extraJS) if (extraJS.match("^MediaWiki:[^&<>=%]*\.js$")) importScript(extraJS);
        else
        alert(extraJS + " javascript not allowed to be loaded.");
    }
    /** Advanced Site Notices ********
    * Allow to custom dynamic site notices
    * Maintainer: [[User:PhiLiP]]
    */
    if (typeof(window.closeASNForever) == 'undefined') {
        window.closeASNForever = false;
    }
    if (typeof(window.customASNInterval) == 'undefined') {
        window.customASNInterval = 15;
    }
    $(function () {
        $('#mw-dismissable-notice').css('display', 'none');
        if (closeASNForever || wgAction == 'edit' || wgAction == 'submit') {
            return;
        }
        var ln = $('#siteNotice');
        if (!ln.length) {
            return;
        }
        var cname = 'dismissASN';
        var cval = getCookie(cname);
        if (cval == '') {
            cval = 0;
        }
        var rev = 0;
        var toid = null;
        var tb = $('<table id="asn-dismissable-notice" width="100%" style="background: transparent;"/>');
        var ct = $('<div id="advancedSiteNotices"/>');
        var sd = $('<a href="#">' + wgUVS('关闭', '關閉') + '</a>');
        tb.append($('<tr/>').append($('<td/>').append(ct)).append($('<td/>').append('[').append(sd).append(']')));
        var nts = null;
        sd.click(function () {
            setCookie(cname, rev, 30);
            clearTimeout(toid);
            tb.remove();
            return false;
        });
        var getAttrs = function (nt) {
            var only = {
                sysop: nt.hasClass('only_sysop'),
                logged: nt.hasClass('only_logged'),
                anon: nt.hasClass('only_anon'),
                zh: nt.hasClass('only_zh')
            };
            only['usr'] = only['sysop'] || only['logged'] || only['anon'];
            only['vrt'] = only['zh'];
            var vrt = ['hans', 'hant', 'cn', 'hk', 'sg', 'tw']
            for (var i = 0; i < 6; i++) {
                v = 'zh-' + vrt[i];
                only[v] = nt.hasClass('only_zh_' + vrt[i]);
                only['vrt'] = only['vrt'] || only[v];
            }
            return only;
        };
        var loadNotices = function (pos) {
            if (!tb.length) {
                return;
            }
            var l = nts.length;
            var nt = null;
            var rt = 0;
            while (!nt || nt.attr('class')) {
                if (nt) {
                    var only = getAttrs(nt);
                    if ((!only['vrt'] || (only['vrt'] && only[wgUserVariant])) && (!only['usr'] || ($.inArray('sysop', wgUserGroups) && only['sysop']) || (wgUserName && only['logged']) || (!wgUserName && only['anon']))) {
                        break;
                    }
                }
                pos = pos % l;
                nt = $(nts[pos++]);
                rt++;
                if (rt == l) {
                    return;
                }
            }
            nt = nt.html();
            if (ct.html()) {
                ct.stop().fadeOut(function () {
                    ct.html(nt).fadeIn();
                });
            } else if (rev == cval) {
                return;
            } else {
                tb.appendTo(ln);
                ct.html(nt).fadeIn();
            }
            toid = setTimeout(function () {
                loadNotices(pos)
            }, customASNInterval * 1000);
        };
        $.get(wgScript, {
            title: 'Template:AdvancedSiteNotices',
            variant: wgUserVariant,
            printable: 'yes'
        }, function (d) {
            nts = $('ul.sitents li', d);
            rev = parseInt($('.nts_revision', d).text());
            var l = nts.length;
            loadNotices(Math.ceil(Math.random() * l));
        });
    });
    /* 维基百科语言列表 */
    if (wgPageName == 'Wikipedia:首页' || wgPageName == 'Wikipedia_talk:首页' || wgPageName.indexOf("Wikipedia:首頁/自訂首頁設計/") == 0) {
        $(function () {
            mw.util.addPortletLink('p-lang', wgScriptPath + '/index.php?title=Wikipedia:维基百科语言列表', wgULS('维基百科语言列表', '維基百科語言列表'), 'interwiki-completelist', wgULS('维基百科的完整各语言列表', '維基百科的完整各語言列表'));
            var nstab = document.getElementById('ca-nstab-project');
            if (nstab && wgUserLanguage.indexOf("zh") > -1) {
                while (nstab.firstChild) nstab = nstab.firstChild
                nstab.nodeValue = wgULS('首页', '首頁')
            }
            //            nstab.firstChild.firstChild.nodeValue = wgULS('首页','首頁');
        });
    }
    /**
    * Workaround for bug 26117, flood flag
    *
    * Special:Userrights
    */
    $(function () {
        if (wgCanonicalNamespace == "Special" && wgCanonicalSpecialPageName == "Userrights" && wgUserGroups.indexOf("sysop") != -1 && $("input#username").val().replace(/_/g, " ") == wgUserName) {
            $("label[for=wpGroup-flood]").text($("label[for=wpGroup-flood]").text().replace("*", ""));
            if ($("input#wpGroup-flood").attr("disabled")) {
                $("input#wpGroup-flood").attr("disabled", false);
                var oldhtml = $("input#wpGroup-flood").parent().html();
                $("input#wpGroup-flood").parent().remove();
                $("table.mw-userrights-groups tbody tr:nth-child(2) td:nth-child(2)").append(oldhtml);
            }
        }
    });
    /**
    * 简单的API读写实现,避免重复使用代码
    *
    * Maintainer: [[User:PhiLiP]]
    */
    mw.api = { /* cache */
        cache: {},
        pass: function () {},
        normalized: {},
        /**
        * Send an API request to server and retrieve the result
        *
        * @param query: the query to be sent
        * @param ready: optional, callback function when API response is ready for using
        */
        request: function (method, query, ready) {
            if (typeof method != 'string' || !$.inArray(method, ['get', 'post'])) {
                ready = query;
                query = method;
                method = 'get';
            }
            ready = ready || mw.api.pass;
            query.format = 'json';
            $[method](wgScriptPath + '/api.php', query, ready, 'json');
        },
        /**
        * Get raw text of pages
        *
        * @param pages: require page(s), string or array
        * @param ready: optional, callback function receive raw content
        * @param purge: purge the cache? boolean
        */
        raw: function (pages, ready, purge) {
            if (typeof pages == 'string') {
                pages = [pages];
            }
            if (typeof ready == 'boolean') {
                purge = ready;
                ready = mw.api.pass;
            }
            ready = ready || mw.api.pass;
            purge = purge || false;
            var _raw_from_cache = function (pages) {
                var ret = {};
                var pagelen = pages.length;
                for (var id = 0; id < pagelen; id++) {
                    var page = pages[id];
                    var title = mw.api.normalized[page] || page;
                    if (typeof mw.api.cache[title] == 'object') {
                        ret[page] = mw.api.cache[title]['*'];
                    }
                }
                return ret;
            }
            var ready_data = {};
            var titles = [];
            if (!purge) {
                $.extend(ready_data, _raw_from_cache(pages));
                var pagelen = pages.length;
                for (var id = 0; id < pagelen; id++) {
                    var page = pages[id];
                    if (!ready_data[page]) {
                        titles.push(page);
                    }
                }
            } else {
                titles = pages;
            }
            if (titles.length) {
                mw.api.request({
                    'action': 'query',
                    'prop': 'revisions',
                    'titles': titles.join('|'),
                    'rvprop': 'timestamp|content'
                }, function (data) {
                    if (data.query.normalized) {
                        normlen = data.query.normalized.length;
                        for (var normid = 0; normid < normlen; normid++) {
                            var norm = data.query.normalized[normid];
                            mw.api.normalized[norm.from] = norm.to;
                        }
                    }
                    for (var pageid in data.query.pages) {
                        var page = data.query.pages[pageid];
                        var cache = mw.api.cache[page.title] = {};
                        cache.missing = pageid < 0;
                        if (cache.missing) {
                            cache.timestamp = null;
                            cache['*'] = null;
                        } else {
                            $.extend(cache, page.revisions[0]);
                        }
                    }
                    $.extend(ready_data, _raw_from_cache(titles));
                    ready(ready_data);
                });
            } else {
                ready(ready_data);
            }
        },
        /**
        * Edit a page with content
        */
        edit: function (page, text, summary, ready) {
            page = mw.api.normalized[page] || page;
            if (typeof summary == 'function') {
                ready = summary;
                summary = '';
            } else {
                summary = summary || '';
                ready = ready || mw.api.pass;
            }
            // request an edit token
            mw.api.request({
                'action': 'query',
                'prop': 'info',
                'intoken': 'edit',
                'titles': page
            }, function (data) {
                var token = '';
                var starttimestamp = '';
                for (var pageid in data.query.pages) {
                    token = data.query.pages[pageid].edittoken;
                    starttimestamp = data.query.pages[pageid].starttimestamp;
                }
                var query = {
                    'action': 'edit',
                    'title': page,
                    'starttimestamp': starttimestamp,
                    'summary': summary,
                    'text': text,
                    'token': token
                };
                if (mw.api.cache[page]) {
                    // use basetimestamp to prevent edit conflict
                    query.basetimestamp = mw.api.cache[page].timestamp;
                }
                mw.api.request('post', query, ready);
            });
        },
        /**
        * Parse a page content
        */
        parse: function (page, variant, ready) {
            if (typeof variant == 'function') {
                ready = variant;
                variant = window.wgUserVariant || false;
            } else {
                ready = ready || mw.api.pass;
                variant = variant || window.wgUserVariant || false;
            }
            var query = {
                'action': 'parse',
                'page': page
            }
            if (variant) {
                query.variant = variant;
            }
            mw.api.request(query, function (data) {
                ready(data.parse.text['*'], data.parse.displaytitle, data.parse.links);
            });
        }
    };
})(jQuery, mediaWiki);
/* 所有皮肤的公共CSS */
/* 管理员注意!任何对Common.css的改变必须先在技术客栈讨论,谢谢。 */
/* 用于首页 */
#interwiki-completelist {
    font-weight: bold;
}
body.ns-4.page-Wikipedia_首页 #deleteconfirm,
body.ns-4.page-Wikipedia_首页 #t-cite,
body.ns-4.page-Wikipedia_首页 #lastmod,
body.ns-4.page-Wikipedia_首页 #siteSub,
body.ns-4.page-Wikipedia_首页 #contentSub,
body.ns-4.page-Wikipedia_首页 h1.firstHeading,
body.ns-4.page-Wikipedia_首页 #catlinks {
    display: none !important;
}
body.ns-4.page-Wikipedia_首页 #content,
body.ns-4.page-Wikipedia_首页 #mytabs li,
body.ns-4.page-Wikipedia_首页 #mytabs li a,
body.ns-4.page-Wikipedia_首页 #p-cactions li.selected a,
body.ns-4.page-Wikipedia_首页 #p-cactions li a:hover,
body.ns-4.page-Wikipedia_首页 #content div.thumb {
    background-color: white;
}
body.ns-4.page-Wikipedia_首页 #p-cactions li a {
    background-color: #fbfbfb;
}
/* 用于一些特殊的不需要标题栏的页面 */
body.ns-4.page-Wikipedia_頁面存廢討論_疑似侵權 #wpSummaryLabel,
body.ns-4.page-Wikipedia_頁面存廢討論_疑似侵權 #wpSummary,
body.ns-4.page-Wikipedia_关注度_提报 #wpSummaryLabel,
body.ns-4.page-Wikipedia_关注度_提报 #wpSummary {
    display: none !important;
}
/*
== 参考区 ==
*/
/* make the list of references look smaller */
ol.references {
  font-size: 100%;
}
.references-small { font-size: 90%;}
sup.reference {
  white-space: nowrap;
}
/* VALIDATOR NOTICE: the following is correct, but the W3C validator doesn't accept it */
/* -moz-* is a vendor-specific extension (CSS 2.1 4.1.2.1) */
/* column-count is from the CSS3 module "CSS Multi-column Layout" */
/* Please ignore any validator errors caused by these two lines */
.references-2column {
  font-size: 90%;
  -moz-column-count:2;
  column-count:2;
}
.same-bg { background: none }
ol.references > li:target,
sup.reference:target,
cite:target {
  background-color: #DDEEFF;
}
/*
== 提示 ==
*/
/* Style for "notices" */
.notice {
    text-align: justify;
    margin: 1em;
    padding: 0.2em;
}
#disambig {
    border-top: 3px double #cccccc;
    border-bottom: 3px double #cccccc;
}
#spoiler {
    border-top: 2px solid #ddd;
    border-bottom:2px solid #ddd;
}
/* Standard talk template style */
.Talk-Notice {
    border: 1px solid #C0C090;
    background-color: #F8EABA;
    margin-bottom: 3px;
    width: 80%;
    border-spacing: 3px;
    margin-left: auto;
    margin-right: auto;
}
.Talk-Notice:after {
  content: "The CSS for this template should be changed. See [[Wikipedia:Template Standardisation]].";
}
/* Make template background appear correctly on all browsers */
.Talk-Notice td {
    background: inherit;
}
/*
== 繁简转换 ==
根据[[WP:VPT]]的讨论结果,默认隐藏zh、zh-hans和zh-hant标签,
并允许用户在小工具中自行开启
*/
li#ca-0,
li#ca-1,
li#ca-2,
li#ca-varlang-0,
li#ca-varlang-1,
li#ca-varlang-2{
    display: none;
}
li#ca-varlang-3 {
margin-left: 1.6em;
}
/*
== 未归类 ==
*/
/* Makes redirects appear in italics on [[Special:Allpages]] */
.allpagesredirect {
    font-style: italic;
}
/* Choose whether to have AD/BC dates or CE/BCE dates*/
/* First, the default : display both : See templates ADCE and BCEBC for how these are used*/
.Use_Default_Date_Convention { display: inline; }
.Use_AD_and_BC { display: none; }
.Use_BCE_and_CE { display: none; }
/* If you want to display AD and BC add the following to User:You/monobook.css page */
/*
.Use_Default_Date_Convention { display: none; }
.Use_AD_and_BC { display:inline; }
.Use_BCE_and_CE { display:none; }
*/
/*If you want to display CE and BCE add the following to User:You/monobook.css page */
/*
.Use_Default_Date_Convention { display: none; }
.Use_AD_and_BC { display:none; }
.Use_BCE_and_CE {display:inline; }
*/
/* Class for links with loudspeaker icon next to them */
.audiolink a{
    background: url("http://upload.wikimedia.org/wikipedia/commons/f/f7/Loudspeaker.png") center left no-repeat !important;
    padding-left: 16px !important;
    padding-right: 0 !important;
}
/* Icons for medialist templates [[Template:Listen]], [[Template:Multi-listen_start]], [[Template:Video]], [[Template:Multi-video_start]] */
div.listenlist {
    background: url("http://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Gnome-speakernotes.png/30px-Gnome-speakernotes.png");
    padding-left: 40px;
}
div.videolist {
    background: url("http://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Video.svg/40px-Video.svg.png");
    padding-left: 50px;
}
div.multivideolist {
    background: url("http://upload.wikimedia.org/wikipedia/en/thumb/7/7a/FilmRoll-small.png/40px-FilmRoll-small.png");
    padding-left: 50px;
}
/* Style rules for media list templates */
div.medialist {
    min-height: 50px;
    margin: 1em;
    background-position: top left;
    background-repeat: no-repeat;
}
div.medialist ul {
    list-style-type: none;
    list-style-image: none;
    margin: 0;
}
div.medialist ul li {
    padding-bottom: 0.5em;
}
div.medialist ul li li {
    font-size: 91%;
    padding-bottom: 0;
}
/*Add formatting to make sure that "external references" from [[Template:Ref]] do
  not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was
  that the HTML code contained a SPAN following the anchor A; this SPAN had the class
  "urlexpansion", which was not displayed on screen, but was shown when the medium was
  "print". The rules below ensure (a) that there is no extra padding to the right of
  the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for
  the link, and (c) that this SPAN of class "urlexpansion" is never shown.
*/
.plainlinksneverexpand {
  background: none ! important;
  padding: 0 ! important;
}
.plainlinksneverexpand .urlexpansion {
  display: none ! important;
}
/* Make sure that ext links displayed within "plainlinksneverexpand" don't get
  the arrow...
*/
.plainlinksneverexpand a {
  background: none !important;
  padding: 0 !important;
}
/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
  following the anchor A, the anchor itself now has class "external autonumber" and the
  expansion is inserted when printing (see the common printing style sheet at
  http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-
  element of CSS. We have to switch this off for links due to Template:Ref!
*/
.plainlinksneverexpand a.external.text:after {
  display: none !important;
}
.plainlinksneverexpand a.external.autonumber:after {
  display: none !important;
}
/* Infobox template style */
.infobox {
  border: 1px solid #aaaaaa;
  background-color: #f9f9f9;
  color: black;
  margin-bottom: 0.5em;
  margin-left: 1em;
  padding: 0.2em;
  float: right;
  clear: right;
}
.infobox td,
.infobox th {
  vertical-align: top;
}
.infobox caption {
  font-size: larger;
}
.infobox.bordered {
  border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
  border: 1px solid #aaaaaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
  border: 0;
}
.infobox.sisterproject {
  width: 20em;
  font-size: 90%;
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
  border: 0;
  border-top: 1px solid #aaaaaa;
  border-right: 1px solid #aaaaaa;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
  border: 0;
  border-right: 1px solid #aaaaaa;
}
/* styles for geography infoboxes, e.g. countries, country subdivisions, cities, etc. */
.infobox.geography {
  text-align: left;
  border-collapse: collapse;
  line-height: 1.2em;
  font-size: 90%;
}
.infobox.geography  td,
.infobox.geography  th {
  border-top: solid 1px #aaaaaa;
  padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
  border-top: solid 1px #aaaaaa;
  padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
      border: 0;
      padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
  border-top: 0;
  border-bottom: solid 1px #aaaaaa;
  padding: 0 0.6em 0.4em 0.6em;
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
      border: 0;
      padding: 0;
}
/* Support for Template:IPA, Template:Unicode and Template:Polytonic. The inherit declaration resets the font for all browsers except MSIE6.  The empty comment must remain. */
.IPA {
        font-family: "Segoe UI", "Chrysanthi Unicode", "Doulos SIL", "Gentium", "GentiumAlt", "Code2000", "TITUS Cyberbit Basic", "DejaVu Sans", "Bitstream Cyberbit", "Arial Unicode MS", "Lucida Sans Unicode", "Hiragino Kaku Gothic Pro", "Matrix Unicode";
}
.Unicode {
        font-family: "Segoe UI", "TITUS Cyberbit Basic", "Code2000", "Doulos SIL", "Chrysanthi Unicode", "Bitstream Cyberbit", "Bitstream CyberBase", "Thryomanes", "Gentium", "GentiumAlt", "Visual Geez Unicode", "Lucida Grande", "Arial Unicode MS", "Microsoft Sans Serif", "Lucida Sans Unicode";
}
.latinx {
        font-family: "TITUS Cyberbit Basic", "Code2000", "Microsoft Sans Serif";
}
.polytonic, .interwiki-el a {
        font-family: "Athena", "Gentium", "Palatino Linotype", "Segoe UI", "Arial Unicode MS", "Lucida Sans Unicode", "Lucida Grande", "Code2000";
}
.mufi {
        font-family: "Alphabetum", "Cardo", "LeedsUni", "Junicode", "TITUS Cyberbit Basic", "ALPHA-Demo";
}
.interwiki-ja a {
        font-family: "Meiryo", "MS PMincho", "MS Mincho", "MS PGothic", "MS Gothic", "Arial Unicode MS";
}
.interwiki-ko a {
        font-family: "Malgun Gothic", "Gulim", "Dotum", "Arial Unicode MS";
}
.interwiki-ru a, .interwiki-uk a, .interwiki-be a, .interwiki-bg a,
.interwiki-sr a, .interwiki-mk a, .interwiki-os a, .interwiki-tg a,
.interwiki-mo a,.interwiki-kk a, .interwiki-ky a, .interwiki-tt a,
.interwiki-ba a, .interwiki-cv a, .interwiki-mn a, .interwiki-xal a,
.interwiki-udm a,.interwiki-ab a, .interwiki-av a, .interwiki-ce a {
        /* 西里爾字母 */
        font-family: "Times CY", "Times New Roman", Times, serif;
}
.interwiki-ar a, .interwiki-fa a, .interwiki-ur a, .interwiki-ug a {
        /* 阿拉伯字母 */
        font-family: "Arial Unicode MS", "Microsoft Sans Serif", "Times New Roman", Times, serif;
        direction: rtl;
}
.interwiki-he a, .interwiki-yi a {
        /* 希伯來字母 */
        font-family: Cardo, "Arial Unicode MS", Code2000, David, "Times New Roman", Times, serif;
        direction: rtl;
}
.interwiki-af a, .interwiki-als a, .interwiki-an a, .interwiki-ang a,
.interwiki-ast a, .interwiki-az a, .interwiki-ba a, .interwiki-bat-smg a,
.interwiki-bm a, .interwiki-br a, .interwiki-bs a, .interwiki-ca a,
.interwiki-ceb a, .interwiki-co a, .interwiki-cs a, .interwiki-csb a,
.interwiki-cy a, .interwiki-da a, .interwiki-de a, .interwiki-en a,
.interwiki-eo a, .interwiki-es a, .interwiki-et a, .interwiki-eu a,
.interwiki-ff a, .interwiki-fi a, .interwiki-fiu-vro a, .interwiki-fo a,
.interwiki-fr a, .interwiki-frp a, .interwiki-fur a, .interwiki-fy a,
.interwiki-ga a, .interwiki-gd a, .interwiki-gl a, .interwiki-gv a,
.interwiki-ha a, .interwiki-hr a, .interwiki-ht a, .interwiki-hu a,
.interwiki-ia a, .interwiki-id a, .interwiki-ie a, .interwiki-ilo a,
.interwiki-io a, .interwiki-is a, .interwiki-it a, .interwiki-jbo a,
.interwiki-jv a, .interwiki-kg a, .interwiki-ksh a, .interwiki-ku a,
.interwiki-kw a, .interwiki-la a, .interwiki-lad a, .interwiki-lb a,
.interwiki-li a, .interwiki-lij a, .interwiki-lmo a, .interwiki-ln a,
.interwiki-lt a, .interwiki-lv a, .interwiki-map-bms a, .interwiki-mi a,
.interwiki-ms a, .interwiki-na a, .interwiki-nap a, .interwiki-nds a,
.interwiki-nl a, .interwiki-nn a, .interwiki-no a, .interwiki-nrm a,
.interwiki-oc a, .interwiki-om a, .interwiki-os a, .interwiki-pam a,
.interwiki-pl a, .interwiki-pms a, .interwiki-pt a, .interwiki-rm a,
.interwiki-ro a, .interwiki-sc a, .interwiki-scn a, .interwiki-sco a,
.interwiki-se a, .interwiki-simple a, .interwiki-sk a, .interwiki-sl a,
.interwiki-so a, .interwiki-sq a, .interwiki-su a, .interwiki-sv a,
.interwiki-sw a, .interwiki-tet a, .interwiki-tpi a, .interwiki-tk a,
.interwiki-tl a, .interwiki-tw a, .interwiki-tr a, .interwiki-uz a,
.interwiki-vec a, .interwiki-vi a, .interwiki-wa a, .interwiki-war a,
.interwiki-wo a, .interwiki-yo a, .interwiki-cdo a, .interwiki-zh-min-nan a {
        font-family: "Times New Roman", Times, serif;
}
#wpSave {
  font-weight: bold;
}
/* hiddenStructure from Monobook - allows selective hiding of markup in templates */
.hiddenStructure {
  display: none;
  speak: none;
}
/* Removes underlines from links */
.nounderlines a {
  text-decoration: none;
}
/* CSS for testing a new Main Page design, see [[Wikipedia:WikiProject Usability/Main Page]] */
#EnWpMainPage { width: 100%; margin-top: 1em; }
#EnWpMainPage h2 { font-size: 130%; font-weight: bold; margin: 0; padding: 0; border: 0; }
#EnWpMpMargin { margin-right: 13.8em; }
#EnWpMpCol1 { float: left; clear: left; width: 50%; }
#EnWpMpCol2 { width: 49.9%; float: left; }
#EnWpMpBrowse { background: #f8fcff url(http://upload.wikimedia.org/wikipedia/en/9/9f/MP-three-books.png) no-repeat 180% 9%; border: 1px solid #c7c7c7; }
#EnWpMpBrowseCats li { font-size: 85%; margin-left: 1em; line-height: 1.5; }
#EnWpMpBrowseCats h3 { font-size: 120%; margin: .2em 0 .1em -.8em; padding: 0; font-weight: normal; }
#EnWpMpBrowseCats h3 a { font-weight: bold; }
#EnWpMpBook { background-image: url(http://upload.wikimedia.org/wikipedia/en/7/7e/MP-open-book.png); }
#EnWpMpFeaturedPic { text-align: center; margin: 0 0 .5em; font-size: 85%; font-weight: bold; }
#EnWpMpFeaturedPic h2 { font-size: 145%; text-align: left; }
.EnWpMpBrowseRight { float: right; width: 12.7em; }
.EnWpMpBrowseBottom { margin: 1em 0; }
.EnWpMpBrowseBottom #EnWpMpBrowseCats li, .EnWpMpBrowseBottom #EnWpMpUsefulLinks, .EnWpMpBrowseBottom #EnWpMpFeaturedPic { float: left; width: 24%; margin: 0; line-height: normal; }
.EnWpMpBrowseBottom #EnWpMpBrowseCats h3 { margin-left: 0; }
#EnWpMpUsefulLinks { clear: left; }
#EnWpMpSearch { background: url(http://upload.wikimedia.org/wikipedia/en/a/ae/MP-magnifying-glass.png) no-repeat top right; }
#EnWpMpSearch input { vertical-align: middle; }
#EnWpMpSearchInner { float: right; width: 20em; text-align: center; }
#bodySearchMP { margin: 0; padding: 0; }
#bodySearchMP .bodySearchWrap { float: right; width: 17.5em; text-align: left; padding: .8em 0; }
#bodySearchMP label { display: block; font-size: 95%; font-weight: bold; margin-bottom: -.2em; }
#bodySearchMP .bodySearchBtnGo { font-weight: bold; padding-left: .3em; padding-right: .3em; margin-left: .5em; }
.EnWpMpContentBox { border: 1px solid; margin-bottom: .9em; }
#EnWpMpCol2 .EnWpMpContentBox { margin-left: .9em; }
.EnWpMpImage { float: right; margin: 0 0 .2em .2em; }
.EnWpMpImage img { position: relative; z-index: 3; }
#EnWpMpSisterProjects { float: left; width: 49%; }
.EnWpMpSisterProject { float: left; width: 17em; margin: 0; height: 5.5em; margin: 0; }
.EnWpMpSisterImg { float: left; width: 40px; height: 100%; }
#EnWpMpOtherLangs { margin-left: 50%; }
#EnWpMainPageNoCSS { display: none; }
#EnWpMpBook2 { background-image: url(http://upload.wikimedia.org/wikipedia/commons/8/8e/MP-open-book2.png); }
#EnWpMpSearch2 { background: url(http://upload.wikimedia.org/wikipedia/en/3/3a/MP-magnifying-glass2.png) no-repeat top right; }
/* Custom link colors for use in [[MediaWiki:Edittools]] */
.charboxblack a:link, .charboxblack a:hover, .charboxblack a:visited, .charboxblack a:active { color: black; }
.charboxsilver a:link, .charboxsilver a:hover, .charboxsilver a:visited, .charboxsilver a:active { color: silver; }
.charboxgray a:link, .charboxgray a:hover, .charboxgray a:visited, .charboxgray a:active { color: gray; }
.charboxwhite a:link, .charboxwhite a:hover, .charboxwhite a:visited, .charboxwhite a:active { color: white; }
.charboxmaroon a:link, .charboxmaroon a:hover, .charboxmaroon a:visited, .charboxmaroon a:active { color: maroon; }
.charboxred a:link, .charboxred a:hover, .charboxred a:visited, .charboxred a:active { color: red; }
.charboxpurple a:link, .charboxpurple a:hover, .charboxpurple a:visited, .charboxpurple a:active { color: purple; }
.charboxfuchsia a:link, .charboxfuchsia a:hover, .charboxfuchsia a:visited, .charboxfuchsia a:active { color: fuchsia; }
.charboxgreen a:link, .charboxgreen a:hover, .charboxgreen a:visited, .charboxgreen a:active { color: green; }
.charboxlime a:link, .charboxlime a:hover, .charboxlime a:visited, .charboxlime a:active { color: lime; }
.charboxolive a:link, .charboxolive a:hover, .charboxolive a:visited, .charboxolive a:active { color: olive; }
.charboxyellow a:link, .charboxyellow a:hover, .charboxyellow a:visited, .charboxyellow a:active { color: yellow; }
.charboxnavy a:link, .charboxnavy a:hover, .charboxnavy a:visited, .charboxnavy a:active { color: navy; }
.charboxblue a:link, .charboxblue a:hover, .charboxblue a:visited, .charboxblue a:active { color: blue; }
.charboxteal a:link, .charboxteal a:hover, .charboxteal a:visited, .charboxteal a:active { color: teal; }
.charboxaqua a:link, .charboxaqua a:hover, .charboxaqua a:visited, .charboxaqua a:active { color: aqua; }
/* custom edits */
.allpagesredirect a:link { color:#0066ff;}
/* 维基共享资源图像巡视格式 */
  /* 链接 */
  .tickerDiffLink { } /* diff links in ticker */
  .tickerMiscLink { } /* misc links in ticker */
  /* 去除引点 */
  .tickerList ul,    .tickerList ul li    { list-style: none; text-indent:-2em; margin-left:2em;  text-align:left; }
  .tickerList ul ul, .tickerList ul ul li { list-style: none; text-indent:0;    margin-left:1.5em; text-align:left; }
  /* 各种记录格式 */
  .tickerEntry_deleted    { }  /* 图像删除记录 */
  .tickerEntry_replaced    { }  /* 图像替换记录 */
  .tickerEntry_tagged      { }  /* 加上或删去问题模板的图像记录 */
  .tickerEntry_redir      { }  /* 图像重新定向记录 */
  .tickerEntry_recat      { }  /* 图像重新分类记录 */
  .tickerEntry_notify      { }  /* 全界的更改记录 */
  .tickerEntry_changed    { }  /* 一般的更改记录 */
  /* 各种行为格式 */
  .tickerAction_deleted:before    { content:"(×)"; color: #FF0000; font-family:monospace; font-weight:bold; font-size:100%; background: pink; }
  .tickerAction_replaced:before    { content:" REPL "; color: #CC88FF; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_addedBad:before    { content:" +VfD "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_removedBad:before  { content:" -VfD "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_addedGood:before  { content:" +OK  "; color: #00BB00; font-family:monospace; font-weight:bold; font-size:100%; }
  .tickerAction_removedGood:before { content:" -OK  "; color: #FF8800; font-family:monospace; font-weight:bold; font-size:100%; }
  /* 巡视功能使用列表 */
  .tickerUsage  { font-size:80%; }
  /* 每次记录应用用于多数图像的模板 */
  .tickerTemplateEntry    { font-weight: bold; }
  /* 每次记录应用次要记录---应用模板的某图像 */
  .tickerSubEntry        { }
  /* 次要记录格式 */
  .tickerMinorEntry  { color:#666; }    /* minor entry */
  .tickerMinorEntry a,
  .tickerMinorEntry a:link,
  .tickerMinorEntry a:visited { color:#669; }
  #bodyContent .tickerMinorEntry a.extiw,
  #bodyContent .tickerMinorEntry a.extiw:link,
  #bodyContent .tickerMinorEntry a.extiw:visited { color:#669; }
/*
== 未归类 ==
*/
/* Class styles */
/* .toccolours added here because version in
  monobook/main.css wasn't being used by the print style */
.toccolours {
  border:1px solid #aaaaaa;
  background-color:#f9f9f9;
  padding:5px;
  font-size: 95%;
}
/* Remove padding from external links displayed without icon */
#bodyContent .plainlinks a {padding: 0 !important}
#p-nav h5 {
  display: none;
}
.portlet a {
  text-decoration: none;
}
.portlet a:hover {
  text-decoration: underline;
}
#p-nav .pBody {
  padding-right: 0;
}
#p-nav a {
  display: block;
  width: 100%;
}
/* Special characters list below edit window works better without underlining */
#editpage-specialchars a { text-decoration: none; }
#editpage-specialchars a:hover { text-decoration: underline; }
/* If you don't want to see special characters list at all,
  put the following line in your User:You/monobook.css file
  (and remove the slash-asterisk comments) */
/* #editpage-specialchars { display: none; } */
/* Makes the background of a framed image white instead of gray. */
/* Only visible with transparent images. */
/* See #Framed_image_background_color */
div.thumb div a img {
    background-color:#f9f9f9;
}
/* Put a checker background at the image description page only visible if the image has transparent background */
#file img {background: url("http://upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;}
/* To position the spoken article link at the top of page
Commented out while sitenotice present */
#spoken {
  position: absolute;
  float: right;
  text-align: right;
  font-size: 90%;
  right: 0;
  z-index: 1;
  background: none;
  border-bottom-style: none;
  top: -2.2em;
  display: block !important;
}
/* try adding here, this had no effect in [[MediaWiki:Common.css]] */
.plainlinksneverexpand a.external.text:after {
display: none !important
}
/*
== 折叠效果 ==
*/
/* Standard Navigationsleisten.*/
div.Boxmerge,
div.NavFrame {
        margin: 0px;
        padding: 2px;
        border: 1px solid #aaaaaa;
        border-collapse: collapse;
        font-size: 95%;
}
div.Boxmerge div.NavFrame {
        border-style: none;
        border-style: hidden;
}
div.NavFrame + div.NavFrame,
div.NavFrame + table.collapsible,
table.collapsible + div.NavFrame,
table.collapsible + table.collapsible {
        border-top-style: none;
        border-top-style: hidden;
}
div.NavPic {
        background-color: #ffffff;
        margin: 0px;
        padding: 2px;
        float: left;
}
div.NavFrame div.NavHead {
        min-height: 1.6em;
        font-weight: bold;
        font-size: 100%;
        text-align: center;
        background-color: #efefef;
        cursor:pointer;
}
div.NavFrame p {
        font-size: 100%;
}
div.NavFrame div.NavContent {
        font-size: 100%;
}
div.NavFrame div.NavContent p {
        font-size: 100%;
}
div.NavEnd {
        margin: 0px;
        padding: 0px;
        line-height: 1px;
        clear: both;
}
span.NavToggle {
        float: right;
        display: none; /*保证在禁用JS状态下不显示提示*/
        text-align: right;
        font-weight: normal;
        font-size: smaller;
}
/*
==地理坐标==
Geographical coordinates defaults. See [[Template:Coord/link]]
  for how these are used. The classes "geo", "longitude", and
  "latitude" are used by the [[Geo microformat]].
*/
.geo-default, .geo-dms, .geo-dec  { display: inline; }
.geo-nondefault, .geo-multi-punct { display: none; }
.longitude, .latitude            { white-space: nowrap; }
/*
== 未归类 ==
*/
/* Do not expand kvaleberg.com-URLs for printing
#content span.coordinates a.external.text:after, #content span.coordinates a.external.autonumber:after {
    content: "";
}
*/
/* Formatierung betrifft Vorlagen: Geokoordinate, Koordinate2 & Koordinate3
#coordinates {
    font-size: 10.5px;
}
*/
/* kleines Globus-Symbol neben der Geookordinate anzeigen
#coordinates a[href ^="http://"] {
    background: url(http://upload.wikimedia.org/wikipedia/commons/d/d4/Gnome-globe.png) center right no-repeat; padding-right: 18px !important;
}
*/
/* custom edits */
/* 分类框高度 */
#catlinks {
border: 1px solid #aaa;
background-color: #f9f9f9;
padding: 5px;
margin-top: 1em;
clear: both;
}
/*
== Navbox ==
*/
/* Default skin for navigation boxes */
table.navbox {            /* Navbox container style */
  border: 1px solid #aaa;
  width: 100%;
  margin: auto;
  clear: both;
  font-size: 88%;
  text-align: center;
  padding: 1px;
}
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
  margin-top: -1px;            /* (doesn't work for IE6, but that's okay)      */
}
.navbox-title,
.navbox-abovebelow,
table.navbox th {
  text-align: center;      /* Title and above/below styles */
  padding-left: 1em;
  padding-right: 1em;
}
.navbox-group {            /* Group style */
  white-space: nowrap;
  text-align: right;
  font-weight: bold;
  padding-left: 1em;
  padding-right: 1em;
}
.navbox, .navbox-subgroup {
  background: #fdfdfd;    /* Background color */
}
.navbox-list {
  border-color: #fdfdfd;  /* Must match background color */
}
.navbox-title,
table.navbox th {
  background: #ccccff;    /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
  background: #ddddff;    /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
  background: #e6e6ff;    /* Level 3 color */
}
.navbox-even {
  background: #f7f7f7;    /* Even row striping */
}
.navbox-odd {
  background: transparent; /* Odd row striping */
}
.collapseButton {          /* 'show'/'hide' buttons created dynamically */
    float: right;          /* by the CollapsibleTables javascript in    */
    font-weight: normal;  /* [[MediaWiki:Common.js]]are styled here    */
    text-align: right;    /* so they can be customised.                */
    width: auto;
}
.navbox .collapseButton {  /* In navboxes, the show/hide button balances */
    width: 6em;            /* the vde links from [[Template:Tnavbar]],  */
}                          /* so they need to be the same width.        */
/*
== headline edit ==
*/
.editsection {
font-weight: normal !important;
margin-left: 1em;
}
/*修正IE的渲染bug*/
.noedit {
padding-top: 1px;
}
.noedit .editsection
{
display: none;
}
/*
== for some templates ==
Messagebox templates
*/
.messagebox {
  border: 1px solid #aaa;
  background-color: #f9f9f9;
  width: 80%;
  margin: 0 auto 1em auto;
  padding: .2em;
}
.messagebox.merge {
  border: 1px solid #c0b8cc;
  background-color: #f0e5ff;
  text-align: center;
}
.messagebox.cleanup {
  border: 1px solid #9f9fff;
  background-color: #efefff;
  text-align: center;
}
.messagebox.standard-talk {
  border: 1px solid #c0c090;
  background-color: #f8eaba;
}
.messagebox.nested-talk {
  border: 1px solid #c0c090;
  background-color: #f8eaba;
  width: 100%;
  margin: 2px 4px 2px 4px;
}
.messagebox.small {
  width: 238px;
  font-size: 85%;
  float: right;
  clear: both;
  margin: 0 0 1em 1em;
  line-height: 1.25em;
}
.messagebox.small-talk {
  width: 238px;
  font-size: 85%;
  float: right;
  clear: both;
  margin: 0 0 1em 1em;
  line-height: 1.25em;
  background: #F8EABA;
}
/* For template documentation */
.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa;
    background-color: #ecfcf4;
    padding: 5px;
}
/*
== external link ==
Change the external link icon to an Adobe icon for all PDF files
(in browsers that support these CSS selectors, like Mozilla and Opera)
*/
#bodyContent a[href$=".pdf"].external,
#bodyContent a[href*=".pdf?"].external,
#bodyContent a[href*=".pdf#"].external,
#bodyContent a[href$=".PDF"].external,
#bodyContent a[href*=".PDF?"].external,
#bodyContent a[href*=".PDF#"].external {
    background: url(http://upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif) center right no-repeat;
    padding-right: 16px;
}
/* Change the external link icon to an Adobe icon anywhere the PDFlink class */
/* is used (notably Template:PDFlink). This works in IE, unlike the above. */
span.PDFlink a {
    background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif) center right no-repeat !important;
    padding-right: 17px !important;
}
span.geolink a {
    background: url(http://upload.wikimedia.org/wikipedia/en/a/a7/Monobook-globe.png) center right no-repeat !important;
    padding-right: 11px !important;
}
/*
== ToolTips ==
*/
.ILHClickButton_tip {
    border: 1px solid #8888aa;
    background: #f7f8ff;
    padding: 0.5em;
}
/*
== other ==
*/
span.lanLabel {
    color: #777777;
    padding-left: 0.5em;
}
tt span.minor {
    margin: 0 -2px 0 -3px;
    font-size: 12px;
}
tt span.newpage {
    margin: 0 1px 0 -6px;
    font-size: 12px;
}
tt span.bot {
    margin: 0 -6px 0 1px;
    font-size: 12px;
}
/*tt span.unpatrolled*/
/* 用于封禁类模板,如Template:Uw-block1 */
div.user-block {
    padding: 5px;
    border: 1px solid #A9A9A9;
    background-color: #FFEFD5;
}
/* For linked citation numbers and document IDs, where the number need not be shown on a screen or a handheld, but should be included in the printed version */
@media screen, handheld, projection {
    cite *.printonly {
        display: none;
    }
}
/*
== MetaBox ==
*/
/* Nou esquema de colors per a la Plantilla:Metacaixa usada a la portada */
/* Configuració per defecte en lila
  Tons usats; 1; 7050a0 2; 9070c0 3; b090e0 4; d0b0ff 5; f0d0ff */
.mcBoto {
  background-color: #d0b0ff; /* 4 */
  border: 0.15em solid #000000;
  border-color: #f0d0ff #b090e0 #9070c0 #f0d0ff;  /* 5 3 3 5 */
  border-radius-topleft: .5em;
  border-radius-topright: .5em;
  -moz-border-radius: .5em .5em 0em 0em;
  cursor:pointer;
  display: inline;
  margin-right: 0.1em;
  padding: 0.2em 0.3em 0.2em 0.3em;
  position: relative;}
.mcBoto a,
.mcBoto strong {
  background: none !important;
  color:#7050a0 !important;  /* 1 */
  font-size: 90%;
  font-weight: bold;
  padding: 0 !important;
  text-decoration: none !important;}
.mcBoto a:hover,
.mcBoto strong:hover {
  color: black !important;
  text-decoration: underline !important;}
.mcBotoSel {
  background-color: #9070c0; /* 2 */
  border: 0.15em solid #000000;
  border-color: #b090e0 #7050a0 #9070c0 #b090e0;  /* 3 1 2 3 */
  border-radius-topleft: .5em;
  border-radius-topright: .5em;
  -moz-border-radius: .5em .5em 0em 0em;
  cursor: default;
  display: inline;
  margin-right: 0.1em;
  padding: 0.2em 0.3em 0.2em 0.3em;
  position: relative;
  color:white;}
.mcBotoSel a {
  background: none !important;
  color:white !important;
  cursor: default;
  font-size: 90%;
  font-weight: bold;
  padding: 0 !important;
  text-decoration: none !important;}
.mcContingut {
  background-color: #f8f8ff;
  border: 0.2em solid #9070c0; /* 2 */
  border-color: #9070c0 #7050a0 #7050a0 #9070c0 ; /* 2 1 1 2 */
  -moz-border-radius: 0em .5em .5em 0em;
  border-radius-topright: .5em;
  border-radius-bottomright: .5em;
  padding: 1em;
  position: static;  /* Si hi posem relative falla amb MSIE */}
.mcPestanya {
  background-color: #f8f8ff;
  border-color: #7050a0 #b090e0 #b090e0 #7050a0; /* 1 3 3 1 */  width: 100%;
}
/* Configuració del Verd 1;60b030 2;75c045 3;90d060 4;a5e085 5;c0f090 */
.mcVerd .mcBoto {
background-color: #a5e085; /* 4 */
border-color: #c0f090 #90d060 #75c045 #c0f090;  /* 5 3 2 5 */}
.mcVerd .mcBoto a,
.mcVerd .mcBoto strong {
  color:#60b030 !important;  /* 1 */
  font-size:90%}
.mcVerd .mcBoto a:hover,
.mcVerd .mcBoto strong:hover {
  color: black !important;
  text-decoration: underline;}
.mcVerd .mcBotoSel {
  background-color: #75c045; /* 2 */
  border-color: #90d060 #60b030 #75c045 #90d060;  /* 3 1 2 3 */}
.mcVerd .mcContingut {
  background-color: #f5fffa;
  border-color: #75c045 #60b030 #60b030 #75c045 ; /* 2 1 1 2 */}
.mcVerd .mcPestanya {
  background-color: #f5fffa;
  border-color: #60b030 #90d060 #90d060 #60b030; /* 1 3 3 1 */}
/* Configuració del Vermell 1;CC0000 2;FF0000 3;FF8888 4;FFAAAA 5;FFCCCC */
.mcVermell .mcBoto {
background-color: #FFAAAA; /* 4 */
border-color: #FFCCCC #FF8888 #FF0000 #FFCCCC;  /* 5 3 2 5 */}
.mcVermell .mcBoto a,
.mcVermell .mcBoto strong {
  color:#CC0000 !important;  /* 1 */
  font-size:90%}
.mcVermell .mcBoto a:hover
.mcVermell .mcBoto strong:hover {
  color: black !important;
  text-decoration: underline;}
.mcVermell .mcBotoSel {
  background-color: #FF0000; /* 2 */
  border-color: #FF8888 #CC0000 #FF0000 #FF8888;  /* 3 1 2 3 */}
.mcVermell .mcContingut {
  background-color: #fffafa;
  border-color: #FF0000 #CC0000 #CC0000 #FF0000; /* 2 1 1 2 */}
.mcVermell .mcPestanya {
  background-color: #fffafa;
  border-color: #CC0000 #FF0000 #FF0000 #CC0000; /* 1 3 3 1 */}
/* Configuració del Blau 1;3379de 2;5b8dd6 3;88abde 4;a7c1e6 5;c8d6e9 */
.mcBlau .mcBoto {
background-color: #a7c1e6; /* 4 */
border-color: #c8d6e9 #88abde #5b8dd6 #c8d6e9;  /* 5 3 2 5 */}
.mcBlau .mcBoto a,
.mcBlau .mcBoto strong {
  color:#3379de !important;  /* 1 */
  font-size:90%}
.mcBlau .mcBoto a:hover
.mcBlau .mcBoto strong:hover {
  color: black !important;
  text-decoration: underline;}
.mcBlau .mcBotoSel {
  background-color: #5b8dd6; /* 2 */
  border-color: #88abde #3379de #5b8dd6 #88abde;  /* 3 1 2 3 */}
.mcBlau .mcContingut {
  background-color: #f0f8ff;
  border-color: #5b8dd6 #3379de #3379de #5b8dd6; /* 2 1 1 2 */}
.mcBlau .mcPestanya {
  background-color: #f0f8ff;
  border-color: #3379de #88abde #88abde #3379de; /* 1 3 3 1 */}
/* Configuració del Groc 1;ffd813 2;ffe147 3;ffe977 4;fff1a4 5;fef4bc */
.mcGroc .mcBoto {
background-color: #fff1a4; /* 4 */
border-color: #fef4bc #ffe977 #ffe147 #fef4bc;  /* 5 3 2 5 */}
.mcGroc .mcBoto a,
.mcGroc .mcBoto strong {
  color:#ffd813 !important;  /* 1 */
  font-size:90%}
.mcGroc .mcBoto a:hover
.mcGroc .mcBoto strong:hover {
  color: black !important;
  text-decoration: underline;}
.mcGroc .mcBotoSel {
  background-color: #ffe147; /* 2 */
  border-color: #ffe977 #ffd813 #ffe147 #ffe977;  /* 3 1 2 3 */}
.mcGroc .mcContingut {
  background-color: #fffce8;
  border-color: #ffe147 #ffd813 #ffd813 #ffe147; /* 2 1 1 2 */}
.mcGroc .mcPestanya {
  background-color: #fffce8;
  border-color: #ffd813 #88abde #88abde #ffd813; /* 1 3 3 1 */}
/* Configuració del Taronja 1;ff820e 2;ff9d42 3;ffac5d 4;ffbd7f 5;ffd0a4 6;ffeedd */
.mcTaronja .mcBoto {
background-color: #ffbd7f; /* 4 */
border-color: #ffd0a4 #ffac5d #ff9d42 #ffd0a4;  /* 5 3 2 5 */}
.mcTaronja .mcBoto a,
.mcTaronja .mcBoto strong {
  color:#ff820e !important;  /* 1 */
  font-size:90%}
.mcTaronja .mcBoto a:hover
.mcTaronja .mcBoto strong:hover {
  color: black !important;
  text-decoration: underline;}
.mcTaronja .mcBotoSel {
  background-color: #ff9d42; /* 2 */
  border-color: #ffac5d #ff820e #ff9d42 #ffac5d;  /* 3 1 2 3 */}
.mcTaronja .mcContingut {
  background-color: #ffeedd; /* 6 */
  border-color: #ff9d42 #ff820e #ff820e #ff9d42; /* 2 1 1 2 */}
.mcTaronja .mcPestanya {
  background-color: #ffeedd; /* 6 */
  border-color: #ff820e #ffac5d #ffac5d #ff820e; /* 1 3 3 1 */}
/* Final d'estils de la Metacaixa */
/*HERE FINISHES "METABOX" COLOUR-SCHEMES*/
/*****
** Bytecounter colours
*****/
strong.mw-plusminus-neg
  {
  color: #c00;
  }
.mw-plusminus-pos {color: #060;}
.mw-plusminus-neg {color: #900;}
/************************
**Fix margin of topicon**
************************/
.topicon {
    margin-right: 0 !important;
}
/********************
**Styles for mboxes**
********************/
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text {    /* The message body cell(s) */
    border: none;
    padding: 0.25em 0.9em;      /* 0.9em left/right */
    width: 100%;    /* Make all mboxes the same width regardless of text length */
}
td.mbox-image {                  /* The left image cell */
    border: none;
    padding: 2px 0 2px 0.9em;    /* 0.9em left, 0px right */
    text-align: center;
}
td.mbox-imageright {            /* The right image cell */
    border: none;
    padding: 2px 0.9em 2px 0;    /* 0px left, 0.9em right */
    text-align: center;
}
td.mbox-empty-cell {        /* An empty narrow cell */
    border: none;
    padding: 0px;
    width: 1px;
}
/* Article message box styles */
table.ambox {
    margin: 0px 10%;  /* 10% = Will not overlap with other elements */
    border: 1px solid #aaa;
    border-left: 10px solid #1e90ff;    /* Default "notice" blue */
    background: #fbfbfb;
}
table.ambox + table.ambox {  /* Single border between stacked boxes. */
    margin-top: -1px;
}
.ambox th.mbox-text,
.ambox td.mbox-text {            /* The message body cell(s) */
    padding: 0.25em 0.5em;      /* 0.5em left/right */
}
.ambox td.mbox-image {          /* The left image cell */
    padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
    padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}
table.ambox-notice {
    border-left: 10px solid #1e90ff;    /* Blue */
}
table.ambox-speedy {
    border-left: 10px solid #FF0000;    /* Red */
}
table.ambox-delete {
    border-left: 10px solid #b22222;    /* Red */
}
table.ambox-content {
    border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
    border-left: 10px solid #f4c430;    /* Yellow */
}
table.ambox-move {
    border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
    border-left: 10px solid #bba;      /* Gray-gold */
}
/* Image message box styles */
table.imbox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 3px solid #1e90ff;    /* Default "notice" blue */
    background: #fbfbfb;
}
.imbox .mbox-text .imbox {    /* For imboxes inside imbox-text cells. */
    margin: 0 -0.5em;    /* 0.9 - 0.5 = 0.4em left/right. */
}
.mbox-inside .imbox {    /* For imboxes inside other templates. */
    margin: 4px;
}
table.imbox-notice {
    border: 3px solid #1e90ff;    /* Blue */
}
table.imbox-speedy {
    border: 3px solid #b22222;    /* Red */
    background: #fee;            /* Pink */
}
table.imbox-delete {
    border: 3px solid #b22222;    /* Red */
}
table.imbox-content {
    border: 3px solid #f28500;    /* Orange */
}
table.imbox-style {
    border: 3px solid #f4c430;    /* Yellow */
}
table.imbox-move {
    border: 3px solid #9932cc;    /* Purple */
}
table.imbox-protection {
    border: 3px solid #bba;      /* Gray-gold */
}
table.imbox-license {
    border: 3px solid #88a;      /* Dark gray */
    background: #f7f8ff;          /* Light gray */
}
table.imbox-featured {
    border: 3px solid #cba135;    /* Brown-gold */
}
/* Category message box styles */
table.cmbox {
    margin: 3px 10%;
    border-collapse: collapse;
    border: 1px solid #aaa;
    background: #DFE8FF;    /* Default "notice" blue */
}
table.cmbox-notice {
    background: #D8E8FF;    /* Blue */
}
table.cmbox-speedy {
    margin-top: 4px;
    margin-bottom: 4px;
    border: 4px solid #b22222;    /* Red */
    background: #FFDBDB;          /* Pink */
}
table.cmbox-delete {
    background: #FFDBDB;    /* Red */
}
table.cmbox-content {
    background: #FFE7CE;    /* Orange */
}
table.cmbox-style {
    background: #FFF9DB;    /* Yellow */
}
table.cmbox-move {
    background: #E4D8FF;    /* Purple */
}
table.cmbox-protection {
    background: #EFEFE1;    /* Gray-gold */
}
/* Other pages message box styles */
table.ombox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #aaa;      /* Default "notice" gray */
    background: #f9f9f9;
}
table.ombox-notice {
    border: 1px solid #aaa;      /* Gray */
}
table.ombox-speedy {
    border: 2px solid #b22222;    /* Red */
    background: #fee;            /* Pink */
}
table.ombox-delete {
    border: 2px solid #b22222;    /* Red */
}
table.ombox-content {
    border: 1px solid #f28500;    /* Orange */
}
table.ombox-style {
    border: 1px solid #f4c430;    /* Yellow */
}
table.ombox-move {
    border: 1px solid #9932cc;    /* Purple */
}
table.ombox-protection {
    border: 2px solid #bba;      /* Gray-gold */
}
/* Talk page message box styles */
table.tmbox {
    margin: 4px 10%;
    border-collapse: collapse;
    border: 1px solid #c0c090;    /* Default "notice" gray-brown */
    background: #f8eaba;
}
.mediawiki .mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" */
    margin: 2px 0;              /* class ensures that this declaration overrides other */
    width: 100%;  /* For Safari and Opera */    /* styles (including mbox-small above) */
}
.mbox-inside .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
    line-height: 1.5em;          /* also "nested", so reset styles that are  */ 
    font-size: 100%;            /* set in "mbox-small" above.                */
}
table.tmbox-speedy {
    border: 2px solid #b22222;    /* Red */
    background: #fee;            /* Pink */
}
table.tmbox-delete {
    border: 2px solid #b22222;    /* Red */
}
table.tmbox-content {
    border: 2px solid #f28500;    /* Orange */
}
table.tmbox-style {
    border: 2px solid #f4c430;    /* Yellow */
}
table.tmbox-move {
    border: 2px solid #9932cc;    /* Purple */
}
table.tmbox-protection,
table.tmbox-notice {
    border: 1px solid #c0c090;    /* Gray-brown */
}
/* Disambig and set index box styles */
table.dmbox {
    clear: both;
    margin: 0.9em 1em;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: small;
}
/* Footer and header message box styles */
table.fmbox {
    clear: both;
    margin: 0.2em 0;
    width: 100%;
    border: 1px solid #aaa;
    background: #f9f9f9;    /* Default "system" gray */
}
table.fmbox-system {
    background: #f9f9f9;
}
table.fmbox-warning {
    border: 1px solid #bb7070;  /* Dark pink */
    background: #ffdbdb;        /* Pink */
}
table.fmbox-editnotice {
    background: transparent;
}
/* Div based "warning" style fmbox messages. */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
    clear: both;
    margin: 0.2em 0;
    border: 1px solid #bb7070;
    background: #ffdbdb;
    padding: 0.25em 0.9em;
}
/* Div based "system" style fmbox messages. Used in
  [[MediaWiki:Noarticletext]] and [[MediaWiki:Readonly lag]]. */
div.mw-lag-warn-normal,
div.noarticletext,
div.fmbox-system {
    clear: both;
    margin: 0.2em 0;
    border: 1px solid #aaa;
    background: #f9f9f9;
    padding: 0.25em 0.9em;
}
/* These mbox-small classes must be placed after all other
  ambox/tmbox/ombox etc classes. "body.mediawiki" is so
  they override "table.ambox + table.ambox" above. */
body.mediawiki table.mbox-small {  /* For the "small=yes" option. */
    clear: right;
    float: right;
    margin: 4px 0 4px 1em;
    width: 238px;
    font-size: 88%;
    line-height: 1.25em;
}
body.mediawiki table.mbox-small-left {  /* For the "small=left" option. */
    margin: 4px 1em 4px 0;
    width: 238px;
    border-collapse: collapse;
    font-size: 88%;
    line-height: 1.25em;
}
#siteNotice div {
margin: 0;
}
#mw-dismissable-notice {
background:transparent;
}
#wpSummary, #wpSummaryLabel {
margin-bottom: 0;
}
/* When <div class="nonumtoc"> is used on the table of contents,
  the ToC will display without numbers */
.nonumtoc .tocnumber { display: none; }
.nonumtoc #toc ul,
.nonumtoc .toc ul {
    line-height: 1.5em;
    list-style: none;
    margin: .3em 0 0;
    padding: 0;
}
.nonumtoc #toc ul ul,
.nonumtoc .toc ul ul {
    margin: 0 0 0 2em;
}
/* Allow limiting of which header levels are shown in a TOC;
  <div class="toclimit-3">, for instance, will limit to
  showing ==headings== and ===headings=== but no further
  (as long as there are no =headings= on the page, which
  there shouldn't be according to the MoS).
*/
.toclimit-2 .toclevel-2,
.toclimit-3 .toclevel-3,
.toclimit-4 .toclevel-4,
.toclimit-5 .toclevel-5,
.toclimit-6 .toclevel-6,
.toclimit-7 .toclevel-7 { display: none; }
/* styles for &#123;{copyvio}&#125; and &#123;{copyvio/bot}&#123;.
  To reduce the HTML code produced by these templates.
*/
.copyvio-title {
    font-family: Microsoft Yahei,微软雅黑,Microsoft Jhenghei,微軟正黑體,Arial Unicode MS,黑体;
    text-align: center;
    font-size: 150%;
    font-weight: bold;
}
.copyvio-titlebox {
    border-bottom: 2px solid #003153;
    color: white;
    background: #999999;
    padding: 0.5em;
    height: 3em;
    -moz-border-radius: 5px 5px 0 0;
}
.copyvio-box {
    width: 95%;
    border: 3px solid #003153;
    background: white;
    margin: .5em auto;
    font-size:90%;
    -o-border-radius: 8px;
    -icab-border-radius: 8px;
    -khtml-border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    -o-box-shadow: 10px 10px 5px #888;
    -icab-box-shadow: 10px 10px 5px #888;
    -khtml-box-shadow: 10px 10px 5px #888;
    -moz-box-shadow: 10px 10px 5px #888;
    -webkit-box-shadow: 10px 10px 5px #888;
    box-shadow: 10px 10px 5px #888;
}
/* dablink */
.dablink > div {
    padding-left: 32px;
    background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Disambig_gray.svg/26px-Disambig_gray.svg.png) no-repeat;
}
/* 2010版首页 */
div.title-bar-vigar {
    width: 100%;
    max-width: 100%;
    height: 31px;
    overflow: hidden;
    background: url(http://upload.wikimedia.org/wikipedia/commons/b/ba/Vigar-zh-wikipedia-2010-new-design-short.png) repeat-x;
}
/* 解决cite定位内文字显示为斜体的问题 */
cite {
    font-style: normal;
}
/* [[Template:Kai]] */
.template-kai {
    font-family: 楷体, 楷体_GB2312, KaiTi, KaiTi_GB2312, 华文楷体, STKaiti, 'AR PL UKai CN', 標楷體, DFKai-SB, 'AR PL UKai HK', 'AR PL UKai TW', 全字庫正楷體, TW-Kai, EUDCKAI;
}
.template-kai:lang(zh-hant),
.template-kai:lang(zh-hk),
.template-kai:lang(zh-mo),
.template-kai:lang(zh-tw) {
    font-family: 標楷體, DFKai-SB, 'AR PL UKai HK', 'AR PL UKai TW', 全字庫正楷體, TW-Kai, 楷体, 楷体_GB2312, KaiTi, KaiTi_GB2312, 华文楷体, STKaiti, 'AR PL UKai CN', EUDCKAI;
}
.template-sep {
    display: inline-block;
    overflow: hidden;
    width: 0px;
    max-width: 0px;
    margin: 0 0.2em;
}
/* Avoid header sublines running into floating objects.
  Also fixes WP:BUNCH. [[bugzilla:26449]]. */
h1, h2, h3, h4, h5, h6 {
    overflow: hidden;
}
#p-logo a:lang(zh-hans),
#p-logo a:lang(zh-cn),
#p-logo a:lang(zh-my),
#p-logo a:lang(zh-sg) {
    background-image: url(http://upload.wikimedia.org/wikipedia/zh/6/62/Wiki_zh-hans.png) !important;
}
/* Fix so <syntaxhighlight> tags and .css and .js pages get normal text size.
  [[Bugzilla:26204]] */
div.mw-geshi div,
div.mw-geshi div pre,
span.mw-geshi,
pre.source-css,
pre.source-javascript {
    font-family: monospace, "Courier New" !important;
}

於 2011年8月12日 (五) 04:42 的修訂

此處為功能測試與編寫用,看到什麼都別介意

職階 Saber 主人 不明 性別 募集中
真名 物語娘 陣營 混亂/中立
屬性能力值
力量 ■■■□□:C 耐久 ■□□□□:E- 敏捷 ■■■■□:B+
魔力 ■□□□□:E 幸運 ■■■■□:B- 寶具 ■■■□□:C+
背景設定
不明
職業技能
對魔力 Rank
/C
能將詠唱少於兩節的魔術無效化。無法防禦大魔術、儀禮咒法。
騎乘 Rank
/E-
沒有騎人的機會只有被推的份。
保有技能
傲嬌天下 Rank
/A+
不明
寶具未公開
寶具名稱←
等級 種類 對?寶具 範圍距離 ?? 最大捕捉 ?人
說明 待輸入