Kontent qismiga oʻtish

MediaWiki:Wikificator.js: Versiyalar orasidagi farq

Ziyosferadan olingan
yangi
 
kTahrir izohi yoʻq
 
Qator 1: Qator 1:
// [[Vikipediya:Sayqallash]]
/* Don't display some stuff on the main page */
.page-Bosh_Sahifa #deleteconfirm,
.page-Bosh_Sahifa #t-cite,
.page-Bosh_Sahifa #footer-info-lastmod,
.page-Bosh_Sahifa #siteSub,
.page-Bosh_Sahifa #contentSub,
.page-Bosh_Sahifa h1.firstHeading,
.page-Bosh_Sahifa #lastmod {
  display: none !important;
}
 
.page-Bosh_Sahifa #mp-topbanner {
  margin-top: 0 !important;
}


/* <pre> */
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
var txt;
blockquote {
overflow: hidden;
margin: 1em 0;
padding: 0 40px;
}


var wmFullText = 'Sayqallash ushbu sahifadagi BUTUN matnni qayta ishlaydi. Davom etsinmi?';
/* Default styling for HTML elements */
var wmCantWork = 'Sayqallash brauzeringizda ishlamaydi';
dfn {
var wmWontWork = 'Sayqallash Netscape 4.x va eskirogʻida ishlamaydi';
    font-style: inherit; /* Reset default styling for <dfn> */
}
sup, sub {
    line-height: 1em;     /* Reduce line-height for <sup> and <sub> */
}


/* Main page fixes */
#interwiki-completelist {
    font-weight: bold;
}
body.page-Bosh_Sahifa #ca-delete {
    display: none !important;
}
body.page-Bosh_Sahifa #mp-topbanner {
    clear: both;
}
body.page-Bosh_Sahifa .wbc-editpage {
    display: none;
}


var wmCategoryNS = 'Category';
/* Make the list of references smaller */
var wmTemplateNS = 'Template';
ol.references,
var wmUserNS = 'User';
div.reflist,
var wmImageNS = 'Image';
div.refbegin {
var wmMediaNS = 'Media';
    font-size: 90%;           /* Default font-size */
    margin-bottom: 0.5em;
}
div.reflist ol.references {
    font-size: 100%;           /* Reset font-size when nested in div.reflist */
    list-style-type: inherit; /* Enable custom list style types */
}


var wmLocaleNS = new Array(wmCategoryNS, wmTemplateNS, wmUserNS, wmImageNS, wmMediaNS);
/* Highlight clicked reference in blue to help navigation */
var wmEnNS = new Array('category', 'template', 'user', 'image', 'media');
ol.references li:target,
sup.reference:target,
span.citation:target {
    background-color: #DEF;
}


if(document.editform && document.editform.wpTextbox1) document.editform.wpTextbox1.onkeyup = function(event){
/* Ensure refs in table headers and the like aren't bold or italic */
  if(event.keyCode == 32){
sup.reference {
  var txtarea = document.editform.wpTextbox1;
     font-weight: normal;
  var startPos = txtarea.selectionStart;
     font-style: normal;
    var endPos = txtarea.selectionEnd;
     var scrollTop = txtarea.scrollTop;
    var letter_pattern = /[0-9a-z`'ʻʼ‘’]/i;
    var letter = "";
    var letter_pos = 0;
    var pointfound = false;
     var spacefound = false;
    txt = ". " + (txtarea.value);
  for(i = startPos - 1; i >= 0; i--){
  k = txt.substring(i, i + 1);
  //confirm("" + k + " " + i);
  if(letter_pattern.test(k) === true && spacefound === false){
  letter = k;
  letter_pos = i - 2;
  }
  else{
  if(k == " " || k == "\n"){
  spacefound = true;
  }
  else if((k == "." || k == "!" || k == "?") && spacefound === true){
  pointfound = true;
  break;
  }
  else{
  break;
  }
  }
  }
  if(pointfound === true){
  if(letter != letter.toUpperCase()){
  txtarea.value = txtarea.value.substring(0, letter_pos) + letter.toUpperCase() + txtarea.value.substring(letter_pos + 1, txtarea.value.length);
            //txtarea.focus();
            txtarea.selectionStart = startPos;
    txtarea.selectionEnd = endPos;
    txtarea.scrollTop = scrollTop;
  }
  }
  }
}
}


/* Allow hidden ref errors to be shown by user CSS */
span.brokenref {
    display: none;
}


if (window.event) {
/* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */
     document.onkeypress = pressed;
.citation {
     word-wrap: break-word;
}
}


function pressed() //On Ctrl+Enter (MSIE)
/* Default styling for titles of works, styling for the title of an article
{ key = window.event.keyCode; if (key == 10) { Wikify(); } }
  within a periodical, or a contribution within a compilation. */
cite,
.citation cite.article,
.citation cite.contribution {
    font-style: inherit;
}


//======================================
/* Styling for the title of any work within a citation,
function Wikify() {
  or specifically the title of a periodical. */
    check_regexp(); // Check whether regular expressions are supported
.citation cite,
    document.editform.wpTextbox1.focus();
.citation cite.periodical {
     var txtarea = document.editform.wpTextbox1;
     font-style: italic;
    if (document.selection && !is_gecko)/* IE */{
}
        txt = " " + document.selection.createRange().text;
        if (txt == " ") { all_text(); } // If nothing was selected;
/* For linked citation numbers and document IDs, where
         else {
  the number need not be shown on a screen or a handheld,
            Process();
  but should be included in the printed version */
            txt = txt.substr(1, txt.length - 1);
@media screen, handheld {
            document.selection.createRange().text = txt;
    .citation *.printonly {
        }
         display: none;
     }
     }
    else if ((txtarea.selectionStart || txtarea.selectionStart == '0') && (navigator.productSub > 20031000)) /*Gecko-browsers older then 10.2003*/{
        var startPos = txtarea.selectionStart;
        var endPos = txtarea.selectionEnd;
        var scrollTop = txtarea.scrollTop;
        txt = " " + (txtarea.value).substring(startPos, endPos);
        if (txt == " ") { all_text(); } // If nothing was selected;
        else {
            Process();
            txt = txt.substr(1, txt.length - 1);
            txtarea.value = txtarea.value.substring(0, startPos) + txt + txtarea.value.substring(endPos, txtarea.value.length);
            txtarea.focus();
        }
    }
    else { if (confirm(wmFullText)) { all_text(); } } // Other browsers
}
}
//======================================
 
function all_text()// Process all text
/* Style for horizontal lists (separator following item).
{
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
     txt = " " + document.editform.wpTextbox1.value;
  @revision 8 (2016-05-21)
     Process();
  @author [[User:Edokter]]
     txt = txt.substr(1, txt.length - 1);
*/
     document.editform.wpTextbox1.value = txt;
 
.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}
 
 
/* Display list items inline */
 
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    /* don't trust the note that says margin doesn't work with inline
* removing margin: 0 makes dds have margins again */
    display: inline;
}
 
 
/* Display nested lists inline */
 
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
    display: inline;
}
 
 
/* Hide empty list items */
 
.hlist .mw-empty-li {
    display: none;
}
 
 
/* Generate interpuncts */
 
.hlist dt:after {
    content: ": ";
}
 
 
/**
* Note hlist style usage differs in Minerva and is defined in core as well!
* Please check Minerva desktop (and Minerva.css) when changing
* See https://phabricator.wikimedia.org/T213239
*/
 
.hlist dd:after,
.hlist li:after {
     content: " · ";
    font-weight: bold;
}
 
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}
 
 
/* Add parentheses around nested lists */
 
.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
     content: " (";
    font-weight: normal;
}
 
.hlist dd dd:last-child:after,
.hlist dd dt:last-child:after,
.hlist dd li:last-child:after,
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}
 
 
/* Put ordinals in front of ordered list items */
 
.hlist ol {
    counter-reset: listitem;
}
 
.hlist ol>li {
    counter-increment: listitem;
}
 
.hlist ol>li:before {
     content: " " counter(listitem) "\a0";
}
 
.hlist dd ol>li:first-child:before,
.hlist dt ol>li:first-child:before,
.hlist li ol>li:first-child:before {
    content: " (" counter(listitem) "\a0";
}
 
/* Unbulleted lists */
.plainlist ul {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}
.plainlist ul li {
    margin-bottom: 0;
}
 
/* Default style for navigation boxes */
 
.navbox {
    /* Navbox container style */
    box-sizing: border-box;
    border: 1px solid #a2a9b1;
    width: 100%;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
    margin: 1em auto 0;
    /* Prevent preceding content from clinging to navboxes */
}
 
.navbox .navbox {
    margin-top: 0;
    /* No top margin for nested navboxes */
}
 
.navbox+.navbox {
    margin-top: -1px;
    /* Single pixel border between adjacent navboxes */
}
 
.navbox-inner,
.navbox-subgroup {
    width: 100%;
}
 
.navbox-group,
.navbox-title,
.navbox-abovebelow {
    padding: 0.25em 1em;
    /* Title, group and above/below styles */
    line-height: 1.5em;
    text-align: center;
}
 
th.navbox-group {
    /* Group style */
    white-space: nowrap;
    /* @noflip */
    text-align: right;
}
 
.navbox,
.navbox-subgroup {
    background-color: #fdfdfd;
    /* Background color */
}
 
.navbox-list {
    line-height: 1.5em;
    border-color: #fdfdfd;
     /* Must match background color */
}
 
 
/* cell spacing for navbox cells */
 
tr+tr>.navbox-abovebelow,
tr+tr>.navbox-group,
tr+tr>.navbox-image,
tr+tr>.navbox-list {
    /* Borders above 2nd, 3rd, etc. rows */
    border-top: 2px solid #fdfdfd;
    /* Must match background color */
}
 
.navbox th,
.navbox-title {
    background-color: #ccccff;
    /* Level 1 color */
}
}
//======================================
 
function check_regexp()// Check whether regular expressions are supported
.navbox-abovebelow,
{
th.navbox-group,
    var reg1 = "code";
.navbox-subgroup .navbox-title {
    reg1 = reg1.replace(/d/g, "r");
     background-color: #ddddff;
    if (reg1 != "core") { alert(wmCantWork); exit; }
     /* Level 2 color */
    b_ver = navigator.appVersion.substr(0, 1);
     if (navigator.appName == "Netscape" && b_ver < 5) { alert(wmWontWork); exit; }
     return;
}
}
function Process()
// We have 3 more pairs of safe chars in \x1A — \x1F !
{


    //var nowiki = ReplaceElements( '\<math\>(.|\r|\n)+?\<\/math\>, "\x03", "\x04" );
.navbox-subgroup .navbox-group,
     //That variant will make ReplaceTags() function unnecessary, but it's so ugly...
.navbox-subgroup .navbox-abovebelow {
    background-color: #e6e6ff;
     /* Level 3 color */
}


    var nowiki = ReplaceTags('nowiki', "\x03", "\x04");
.navbox-even {
     var pre = ReplaceTags('pre', "\x12", "\x13");
     background-color: #f7f7f7;
     var math = ReplaceTags('math', "\x05", "\x06");
     /* Even row striping */
    var gallery = ReplaceTags('gallery', "\x14", "\x15");
}


.navbox-odd {
    background-color: transparent;
    /* Odd row striping */
}


    // Exclude lines starting with space
.navbox .hlist td dl,
    f_space = txt.substr(0, 1);
.navbox .hlist td ol,
    txt = txt.substr(1, txt.length - 1);
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 1px 0 0;   /* Adjust hlist padding in navboxes */
}
.navbox .navbox {
margin-top: 0; /* No top margin for nested navboxes */
}
.navbox + .navbox {
margin-top: -1px; /* Single pixel border between adjacent navboxes */
}
 
/* Default styling for Navbar template */
.navbar {
display: inline;
font-size: 11px;
font-weight: normal;
}
.navbar ul {
display: inline;
white-space: nowrap;
}
.mw-body-content .navbar ul {
line-height: inherit;
}
.navbar.mini {
word-spacing: -0.1em;
}
.navbar.mini span abbr[title] {
  border-bottom: none;
  text-decoration: none;
  cursor: inherit;
}


     var sp_lines = ReplaceElements("^( )(.+)$", "\x16", "\x17");
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {     
    /* @noflip */
    float: right;
     font-weight: normal;
    /* @noflip */
    margin-left: 0.5em;
    /* @noflip */
    text-align: right;
    width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links
  from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
    width: 6em;
}


     txt = f_space + txt;
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
     font-weight: normal;
    /* @noflip */
    text-align: right;
}
.navbox .mw-collapsible-toggle {
    width: 6em;
}


     ProcessNS(wmEnNS, wmLocaleNS);
/* Infobox template style */
     CorrectRanges();
.infobox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    color: black;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    text-align: left;
    font-size: 88%;
    line-height: 1.5em;
}
.infobox caption {
    font-size: 125%;
    font-weight: bold;
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox.bordered {
     border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
     border: 0;
}


    // Exclude templates and internal links
.infobox.sisterproject {
     var templates = ReplaceElements("\\{\\{(.|\\r|\\n)+?\\}\\}", "\x18", "\x19");
     width: 20em;
     var links = ReplaceElements("(\\[\\[)(.*?)(\\||\\]\\])", "\x10", "\x11");
     font-size: 90%;
}


     HTML2Wiki();
.infobox.standard-talk {
     border: 1px solid #c0c090;
    background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
    border: 1px solid #c0c090;
}


    // Exclude tags and tag attributes (all text in quotes after "=" sign)
/* styles for bordered infobox with merged rows */
    var attrs = ReplaceElements('(=)(\\s?)(\\' + '")(.*?)(\\")', "\x0E", "\x0F");
.infobox.bordered .mergedtoprow td,
     var tags = ReplaceElements("<([^>]*?)>", "\x01", "\x02");
.infobox.bordered .mergedtoprow th {
    border: 0;
    border-top: 1px solid #aaa;
     border-right: 1px solid #aaa;
}


     ProcessTypography();
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
     border: 0;
    border-right: 1px solid #aaa;
}


     //alert(txt);
/* Styles for geography infoboxes, eg countries,
  country subdivisions, cities, etc.            */
.infobox.geography {
     /* @noflip */
    text-align: left;
    border-collapse: collapse;
    line-height: 1.2em;
    font-size: 90%;
}


    RestoreElements(tags, "\x01", "\x02");
.infobox.geography  td,
     RestoreElements(attrs, "\x0E", "\x0F");
.infobox.geography  th {
     RestoreElements(links, "\x10", "\x11");
     border-top: 1px solid #aaa;
    RestoreElements(templates, "\x18", "\x19");
     padding: 0.4em 0.6em 0.4em 0.6em;
    RestoreElements(sp_lines, "\x16", "\x17");
}
    RestoreElements(gallery, "\x14", "\x15");
.infobox.geography .mergedtoprow td,
     RestoreElements(math, "\x05", "\x06");
.infobox.geography .mergedtoprow th {
     RestoreElements(pre, "\x12", "\x13");
     border-top: 1px solid #aaa;
    RestoreElements(nowiki, "\x03", "\x04");
     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;
}
}


function HTML2Wiki() {
.infobox.geography .mergedbottomrow td,
    // UZBEK02
.infobox.geography .mergedbottomrow th {
    //============================TEMPO=====
     border-top: 0;
    txt = txt.replace(/(A|a|E|e|N|n|O|o|G|g|T|t)\'''/g, "$1 20072006NGPP132604")
     border-bottom: 1px solid #aaa;
    txt = txt.replace(/(A|a|E|e|N|n|O|o|G|g|T|t)\''/g, "$1 20072006NGPP132604_onlytwo")
     padding: 0 0.6em 0.4em 0.6em;
     txt = txt.replace(/(A|a|E|e|N|n|T|t)\'/g, "$1ʻ")
}
     txt = txt.replace(/(O|o|G|g)\'/g, "$1ʻ")
     txt = txt.replace(/(A|a|E|e|N|n|O|o|G|g|T|t)\ ?20072006NGPP132604_onlytwo/g, "$1''")
    txt = txt.replace(/(A|a|E|e|N|n|O|o|G|g|T|t)\ ?20072006NGPP132604/g, "$1'''")


    // Replace <b>, <strong> tags with ''' and <i>, <em> with ''
.infobox.geography .maptable td,
     txt = txt.replace(/\<\/?(b|strong)\>/gim, "\'\'\'")
.infobox.geography .maptable th {
     txt = txt.replace(/\<\/?(i|em)\>/gim, "\'\'")
     border: 0;
     padding: 0;
}


    // Replace <hr> tag with ----, improve <hr> and <br> tags
/* Normal font styling for table row headers with scope="row" tag */
    txt = txt.replace(/\<hr ?\/?\>/gi, "----")
.wikitable.plainrowheaders th[scope=row] {
    txt = txt.replace(/\<hr ([^\>\/]+?) ?\/?\>/gi, "<hr $1 />")
    font-weight: normal;
     txt = txt.replace(/\<br\/?\>/gi, "<br />")
     /* @noflip */
     txt = txt.replace(/\<br ([^\>\/]+?) ?\/?\>/gi, "<br $1 />")
     text-align: left;
}


/* lists in data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
    /* @noflip */
    text-align: left;
}
}


// Process default namespaces
/* Icons for medialist templates [[Template:Listen]],
  [[Template:Multi-listen_start]], [[Template:Video]],
  [[Template:Multi-video_start]]
*/
div.listenlist {
    /* @embed */
    background: url("//upload.wikimedia.org/wikipedia/commons/3/3f/Gnome_speakernotes_30px.png");
    /* @noflip */
    padding-left: 40px;
}


function ProcessNS(En_NS_List, Loc_NS_List) {
/* Style rules for media list templates */
div.medialist {
    min-height: 50px;
    margin: 1em;
    /* @noflip */
    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;
}


    for (i = 0; i < En_NS_List.length; i++) {
/* Change the external link icon to an Adobe icon for all PDF files
        //alert("(\\[\\[)(:?)(" + En_NS_List[i] + "|" +
  in browsers that support these CSS selectors, like Mozilla and Opera */
        //Loc_NS_List[i] + ")(:)( *)");
div#content a[href$=".pdf"].external,
div#content a[href*=".pdf?"].external,
div#content a[href*=".pdf#"].external,
div#content a[href$=".PDF"].external,
div#content a[href*=".PDF?"].external,
div#content a[href*=".PDF#"].external,
div#mw_content a[href$=".pdf"].external,
div#mw_content a[href*=".pdf?"].external,
div#mw_content a[href*=".pdf#"].external,
div#mw_content a[href$=".PDF"].external,
div#mw_content a[href*=".PDF?"].external,
div#mw_content a[href*=".PDF#"].external {
    /* @embed */
    background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
    /* @noflip */
    padding-right: 18px;
}


        txt = txt.replace(new RegExp("(\\[\\[:?)(" + En_NS_List[i] + "|" +
/* Change the external link icon to an Adobe icon anywhere the PDFlink class
  Loc_NS_List[i] + "):( *)", "gi"), "$1" + Loc_NS_List[i] + ":");
  is used (notably Template:PDFlink). This works in IE, unlike the above. */
div#content span.PDFlink a,
div#mw_content span.PDFlink a {
    /* @embed */
    background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
    /* @noflip */
    padding-right: 18px;
}


     }
/* Content in columns with CSS instead of tables [[Template:Columns]] */
div.columns-2 div.column {
     /* @noflip */
    float: left;
    width: 50%;
    min-width: 300px;
}
div.columns-3 div.column {
    /* @noflip */
    float: left;
    width: 33.3%;
    min-width: 200px;
}
div.columns-4 div.column {
    /* @noflip */
    float: left;
    width: 25%;
    min-width: 150px;
}
div.columns-5 div.column {
    /* @noflip */
    float: left;
    width: 20%;
    min-width: 120px;
}
 
/* 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;
    margin: 4px auto;
}
/* For old WikiProject banners inside banner shells. */
.mbox-inside .standard-talk,
.messagebox.nested-talk {
    border: 1px solid #c0c090;
    background-color: #f8eaba;
    width: 100%;
    margin: 2px 0;
    padding: 2px;
}
.messagebox.small {
    width: 238px;
    font-size: 85%;
    /* @noflip */
    float: right;
    clear: both;
    /* @noflip */
    margin: 0 0 1em 1em;
    line-height: 1.25em;
}
.messagebox.small-talk {
    width: 238px;
    font-size: 85%;
    /* @noflip */
    float: right;
    clear: both;
    /* @noflip */
    margin: 0 0 1em 1em;
    line-height: 1.25em;
    background: #F8EABA;
}
 
/* 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;
    /* @noflip */
    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;
    /* @noflip */
    padding: 2px 0 2px 0.9em;  /* 0.9em left, 0px right */
    text-align: center;
}
td.mbox-imageright {          /* The right image cell */
    border: none;
    /* @noflip */
    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 */
// Replace '<replaced_tag> ... </replaced_tag>' (<nowiki> <br/> </nowiki>)
table.ambox {
// with 'opepening_char + tag's counter + closing_char' ('\x03'+1'+'\x04')
    margin: 0px 10%;                  /* 10% = Will not overlap with other elements */
//======================================
    border: 1px solid #aaa;
    /* @noflip */
    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 */
    /* @noflip */
    padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
    /* @noflip */
    padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}


function ReplaceTags(replaced_tag, op_char, cl_char)
table.ambox-notice {
    /* @noflip */
    border-left: 10px solid #1e90ff;    /* Blue */
}
table.ambox-speedy {
    /* @noflip */
    border-left: 10px solid #b22222;    /* Red */
    background: #fee;                  /* Pink */
}
table.ambox-delete {
    /* @noflip */
    border-left: 10px solid #b22222;    /* Red */
}
table.ambox-content {
    /* @noflip */
    border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
    /* @noflip */
    border-left: 10px solid #f4c430;    /* Yellow */
}
table.ambox-move {
    /* @noflip */
    border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
    /* @noflip */
    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.        */
    display: block;        /* Fix for webkit to force 100% width.  */
}
.mbox-inside .imbox {      /* For imboxes inside other templates.  */
    margin: 4px;
}


// @replaced_tag - tag to be replaced
table.imbox-notice {
// @op_char, @cl_char (opening & closing chars) - "Safe" pair of
    border: 3px solid #1e90ff;    /* Blue */
// unicode unprintable characters, that will be used in replacement
}
{
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 */
}


     var counter = 0; //tags counter
/* Category message box styles */
table.cmbox {
    margin: 3px 10%;
    border-collapse: collapse;
    border: 1px solid #aaa;
     background: #DFE8FF;   /* Default "notice" blue */
}


     // RegExp pattern
table.cmbox-notice {
     var pattern = "\\<" + replaced_tag + "\\>(.|\r|\n)+?\<\\/" + replaced_tag + "\\>";
    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 */
}


    // RegExp template to be replaced (multiline text between
/* Other pages message box styles */
     // <replaced_tag> and </replaced_tag> case sensitive tags)
table.ombox {
     var replaced_regexp = new RegExp(pattern, "im")
    margin: 4px 10%;
    border-collapse: collapse;
     border: 1px solid #aaa;      /* Default "notice" gray */
     background: #f9f9f9;
}


     // Buffer for replaced matches storage. It's array of matching substrings -
table.ombox-notice {
     // multiline text between <replaced_tag> and </replaced_tag> case sensitive tags ()
     border: 1px solid #aaa;      /* Gray */
     matches_buffer = txt.match(new RegExp(pattern, "gim"));
}
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" class ensures that */
    margin: 2px 0;              /* this declaration overrides other styles (including mbox-small above)   */
    width: 100%;                /* For Safari and Opera */
}
.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.                */
}


     // while some substring of txt matches replaced_regexp...
table.tmbox-speedy {
     while (replaced_regexp.test(txt)) {
     border: 2px solid #b22222;    /* Red */
        txt = txt.replace(replaced_regexp, op_char + ++counter + cl_char);
    background: #fee;            /* Pink */
    }
}
     return matches_buffer;
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 */
// Replace '<replaced_tag> ... </replaced_tag>' (<nowiki> <br/> </nowiki>)
table.dmbox {
// with 'opepening_char + tag's counter + closing_char' ('\x03'+1'+'\x04')
    clear: both;
//======================================
    margin: 0.9em 1em;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: transparent;
}
/* 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:Readonly lag]]. */
div.mw-lag-warn-normal,
div.fmbox-system {
    clear: both;
    margin: 0.2em 0;
    border: 1px solid #aaa;
    background: #f9f9f9;
    padding: 0.25em 0.9em;
}


function ReplaceElements(req_exp, op_char, cl_char)
/* 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. */
    /* @noflip */
    clear: right;
    /* @noflip */
    float: right;
    /* @noflip */
    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. */
    /* @noflip */
    margin: 4px 1em 4px 0;
    width: 238px;
    border-collapse: collapse;
    font-size: 88%;
    line-height: 1.25em;
}


// @req_exp - reqular expression to be replaced
/* Remove default styles for [[MediaWiki:Noarticletext]]. */
// @op_char, @cl_char (opening & closing chars) - "Safe" pair of
div.noarticletext {
// unicode unprintable characters, that will be used in replacement
    border: none;
{
    background: transparent;
    padding: 0;
}


     var counter = 0; //tags counter
/* Bold save button */
#wpSave {
     font-weight: bold;
}


    // RegExp template to be replaced (multiline, case sensitive)
/* class hiddenStructure is defunct. See [[Wikipedia:hiddenStructure]] */
     var replaced_regexp = new RegExp(req_exp, "m")
.hiddenStructure {
    display: inline ! important;
     color: #f00;
    background-color: #0f0;
}


    // Buffer for replaced matches storage. It's array of matching substrings.
/* suppress missing interwiki image links where #ifexist cannot
     // (multiline, case sensitive, global)
  be used due to high number of requests see .hidden-redlink on
     matches_buffer = txt.match(new RegExp(req_exp, "gm"));
  [[m:MediaWiki:Common.css]]
*/
.check-icon a.new {
     display: none;
     speak: none;
}


    // while some substring of txt matches replaced_regexp...
/* Removes underlines from certain links */
    while (replaced_regexp.test(txt)) {
.nounderlines a,
        //alert(txt.match(replaced_regexp));
.IPA a:link, .IPA a:visited {
        txt = txt.replace(replaced_regexp, op_char + ++counter + cl_char);
     text-decoration: none !important;
    }
     return matches_buffer;
}
}


//======================================
/* Standard Navigationsleisten, aka box hiding thingy
// Restore text, that was damaged by replacing 3 chars with substring from array
  from .de.  Documentation at [[Wikipedia:NavFrame]]. */
//======================================
div.NavFrame {
    margin: 0;
    padding: 4px;
    border: 1px solid #aaa;
    text-align: center;
    border-collapse: collapse;
    font-size: 95%;
}
div.NavFrame + div.NavFrame {
    border-top-style: none;
    border-top-style: hidden;
}
div.NavPic {
    background-color: #fff;
    margin: 0;
    padding: 2px;
    /* @noflip */
    float: left;
}
div.NavFrame div.NavHead {
    height: 1.6em;
    font-weight: bold;
    background-color: #ccf;
    position: relative;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
    font-size: 100%;
}
div.NavEnd {
    margin: 0;
    padding: 0;
    line-height: 1px;
    clear: both;
}
a.NavToggle {
    position: absolute;
    top: 0;
    /* @noflip */
    right: 3px;
    font-weight: normal;
    font-size: 90%;
}


function RestoreElements(replaced_buffer, op_char, cl_char)
/* Hatnotes and disambiguation notices */
.rellink,
.dablink {
    font-style: italic;
    /* @noflip */
    padding-left: 1.6em;
    margin-bottom: 0.5em;
}
.rellink i,
.dablink i {
    font-style: normal;
}


// @replaced_buffer - array of replaced substrings.
/* Allow transcluded pages to display in lists rather than a table.
// @op_char, @cl_char (opening & closing chars) - "Safe" pair
  Compatible in Firefox; incompatible in IE6. */
// to be replaced with <replaced_tag> and </replaced_tag> accordingly
.listify td    { display: list-item; }
{
.listify tr    { display: block; }
.listify table { display: block; }


     var counter = 0; //tags counter
/* 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 {
    /* @noflip */
    margin: 0 0 0 2em;
}


    // RegExp template to be replaced (3 chars: tag's counter
/* Allow limiting of which header levels are shown in a TOC;
    // surrunded by "Safe" pair)
  <div class="toclimit-3">, for instance, will limit to
     var replaced_regexp = new RegExp("\\" + op_char + "([0-9]*)\\" + cl_char);
  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-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
     display: none;
}


     //replaced_regexp = /\x03([0-9]*)\x04/
/* User block messages */
div.user-block {
     padding: 5px;
    margin-bottom: 0.5em;
    border: 1px solid #A9A9A9;
    background-color: #FFEFD5;
}
 
/* Prevent line breaks in silly places:
  1) Where desired
  2) Links when we don't want them to
  3) Bold "links" to the page itself
  4) HTML formulae
  5) Ref tags with group names <ref group="Note"> --> "[Note 1]"
*/
.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
span.texhtml,
sup.reference a {
    white-space: nowrap;
}


    // while some substring of txt matches replaced_regexp...
/* For template documentation */
     while (replaced_regexp.test(txt)) {
.template-documentation {
        txt = txt.replace(replaced_regexp, replaced_buffer[counter++]);
    clear: both;
     }
     margin: 1em 0 0 0;
     return txt;
    border: 1px solid #aaa;  
     background-color: #ecfcf4;
     padding: 1em;
}
}


// Corrects year and century ranges in text
/* Inline divs in ImageMaps (code borrowed from de.wiki) */
function CorrectRanges() {
.imagemap-inline div {
    // Correct year ranges
     display: inline;
    //txt = txt.replace(/(\(|\s)(\[?\[?[12]?\d{3}\]?\]?)[\u00A0 ]?(-|--|–|—) ?(\[?\[?[12]?\d{3}\]?\]?)(\W)/g, "$1$2—$4$5")
    //txt = txt.replace(/(\[?\[?[12]?\d{3}\]?\]?) ?(г\.|гг\.)/g, "$1\u00A0$2")
    // Correct century ranges
    //txt = txt.replace(/(\(|\s)(\[?\[?[IVX]{1,5}\]?\]?)[\u00A0 ]?(-|--|–|—) ?(\[?\[?[IVX]{1,5}\]?\]?)(\W)/g, "$1$2—$4$5")
     //txt = txt.replace(/(\[?\[?[IVX]{1,5}\]?\]?) ?(в\.|вв\.)/g, "$1\u00A0$2")
}
}


/***************************************************
/* Increase the height of the image upload box */
Typographical considerations
#wpUploadDescription {
***************************************************/
    height: 13em;
function ProcessTypography() {
}


    // Insert spaces in titles
/* Minimum thumb width */
    txt = txt.replace(/^(=+)([ \t\f\v]*)(.*?)([ \t\f\v]*)(=+)$/gm, "$1 $3 $1")
figure[typeof~='mw:File/Thumb'],
    //======================================
figure[typeof~='mw:File/Frame'],
    // Use 1 character to display squaring and cubing
.thumbinner {
    txt = txt.replace(/(<sup>2<\/sup>|&sup2;)/g, "²");
     min-width: 100px;
    txt = txt.replace(/(<sup>3<\/sup>|&sup3;)/g, "³");
}
    txt = txt.replace(/(\^2)(\D)/g, "²$2");
    txt = txt.replace(/(\^3)(\D)/g, "³$2");
    //======================================
    // Replace right HTML symbols with wrong ones in order to process everything
//  txt = txt.replace(/–/g, "-")
    txt = txt.replace(/(«|»|“|”|„|\&((la|ra|bd|ld)quo|#132|#147|#148|quot);)/g, "\"")
    //======================================
    // Replace set of 'less then' or 'greater then' symbols (<< or >>) with usual double quotes
    txt = txt.replace(/(<<)(\S.+\S)(>>)/g, "\"$2\"")
    //======================================
    // Process degree sign "°", "+-" and "~="
    txt = txt.replace(/(\+[--])|(&plusmn;)/g, "±")
    txt = txt.replace(/(~=)/g, "≈")
    txt = txt.replace(/\&deg;/g, "°")
    txt = txt.replace(/([ =≈≠≤≥<>("'|]|^)([+±−\-]?\d+?(?:[.,]\d+?)?)(([ °^*]| [°^*])[CС])(?=[ "').,;!?|]|$)/gm, "$1$2\u00A0°C")
    txt = txt.replace(/([ =≈≠≤≥<>("'|]|^)([+±−\-]?\d+?(?:[.,]\d+?)?)(([ °^*]| [°^*])F)(?=[ "').,;|!?]|$)/gm, "$1$2\u00A0°F")
    //======================================
    // Replace "...", "&hellip;" and "&#133;" with ellipsis
    txt = txt.replace(/(\.{3}|\&(hellip|#133);)/g, '…')
    // Apostrophe handler
    txt = txt.replace(/([\wа-яА-ЯёЁ])'([\wа-яА-ЯёЁ])/g, "$1’$2")
    // Minus handler
     txt = txt.replace(/(sup\>|sub\>|\s)-(\d)/g, "$1−$2")
    //======================================
    // Replace hyphens and en dashes with normal dashes
    txt = txt.replace(/\&(#151|[nm]dash);/g, "–")
    txt = txt.replace(/(&nbsp;|[\f\n\r\t\v\u00A0\u2028\u2029])(-|--|–|—) /g, "$1– ")
    txt = txt.replace(/(\d)--(\d)/g, "$1–$2")
    // Insert non-braiking space before dashes
    txt = txt.replace(/(\S) (-|--|–|—) (\S)/g, "$1\u00A0– $3")
    //======================================
    // Special characters: ©, ®, ™, §, €, ¥ и £.
    txt = txt.replace(/\&copy;/gi, "©")
    txt = txt.replace(/(\(r\)|\&reg;)/gi, "®")
    txt = txt.replace(/(\((tm|тм)\)|\&trade;)/gi, "™")
    txt = txt.replace(/(\(p\)|\&sect;)/gi, "§")
    txt = txt.replace(/\&euro;/gi, "€")
    txt = txt.replace(/\&yen;/gi, "¥")
    txt = txt.replace(/\&pound;/gi, "£")
    //======================================
    // UZBEK01
    txt = txt.replace(/([OoGg])[`ʻ’‘]/g, "$1ʻ")
    txt = txt.replace(/([AaEeNnTt])[`ʻ’‘]/g, "$1ʼ")
    //======================================
    // Cyr - Lat ala Uzbek
    txt = txt.replace(/(б|в|г|д|ж|з|к|л|м|н|п|р|с|т|ф|х|ц|ч|ш|щ|,|:)\е/g, "$1e")
    txt = txt.replace(/(а|е|ё|и|о|у|э|ю|я|,|:)\ц/g, "$1ts")
    txt = txt.replace(/(ц)/g, "s")
    txt = txt.replace(/(е)/g, "e")
    txt = txt.replace(/(ъ)/g, "ʼ")
    txt = txt.replace(/(Ты)/g, "Ti")
    txt = txt.replace(/(ты)/g, "ti")
    txt = txt.replace(/(Ё)/g, "Yo")
    txt = txt.replace(/(ё)/g, "yo")
    txt = txt.replace(/(Сентябрь)/g, "sentyabr")
    txt = txt.replace(/(Октябрь)/g, "oktyabr")
    txt = txt.replace(/(сентябрь)/g, "sentyabr")
    txt = txt.replace(/(октябрь)/g, "oktyabr")
    txt = txt.replace(/(Сентябр)/g, "sentyabr")
    txt = txt.replace(/(Октябр)/g, "oktyabr")
    txt = txt.replace(/(сентябр)/g, "sentyabr")
    txt = txt.replace(/(октябр)/g, "oktyabr")
    txt = txt.replace(/(Ж)/g, "J")
    txt = txt.replace(/(ж)/g, "j")
    txt = txt.replace(/(а)/g, "a")
    txt = txt.replace(/(А)/g, "A")
    txt = txt.replace(/(б)/g, "b")
    txt = txt.replace(/(Б)/g, "B")
    txt = txt.replace(/(в)/g, "v")
    txt = txt.replace(/(В)/g, "V")
    txt = txt.replace(/(г)/g, "g")
    txt = txt.replace(/(Г)/g, "G")
    txt = txt.replace(/(ғ)/g, "gʻ")
    txt = txt.replace(/(Ғ)/g, "Gʻ")
    txt = txt.replace(/(д)/g, "d")
    txt = txt.replace(/(Д)/g, "D")
    txt = txt.replace(/(е)/g, "e")
    txt = txt.replace(/(Е)/g, "Ye")
    txt = txt.replace(/(з)/g, "z")
    txt = txt.replace(/(З)/g, "Z")
    txt = txt.replace(/(и)/g, "i")
    txt = txt.replace(/(И)/g, "I")
    txt = txt.replace(/(й)/g, "y")
    txt = txt.replace(/(Й)/g, "Y")
    txt = txt.replace(/(к)/g, "k")
    txt = txt.replace(/(К)/g, "K")
    txt = txt.replace(/(қ)/g, "q")
    txt = txt.replace(/(Қ)/g, "Q")
    txt = txt.replace(/(л)/g, "l")
    txt = txt.replace(/(Л)/g, "L")
    txt = txt.replace(/(м)/g, "m")
    txt = txt.replace(/(М)/g, "M")
    txt = txt.replace(/(н)/g, "n")
    txt = txt.replace(/(Н)/g, "N")
    txt = txt.replace(/(о)/g, "o")
    txt = txt.replace(/(О)/g, "O")
    txt = txt.replace(/(п)/g, "p")
    txt = txt.replace(/(П)/g, "P")
    txt = txt.replace(/(р)/g, "r")
    txt = txt.replace(/(Р)/g, "R")
    txt = txt.replace(/(с)/g, "s")
    txt = txt.replace(/(С)/g, "S")
    txt = txt.replace(/(т)/g, "t")
    txt = txt.replace(/(Т)/g, "T")
    txt = txt.replace(/(у)/g, "u")
    txt = txt.replace(/(У)/g, "U")
    txt = txt.replace(/(ў)/g, "oʻ")
    txt = txt.replace(/(Ў)/g, "Oʻ")
    txt = txt.replace(/(ф)/g, "f")
    txt = txt.replace(/(Ф)/g, "F")
    txt = txt.replace(/(х)/g, "x")
    txt = txt.replace(/(Х)/g, "X")
    txt = txt.replace(/(ҳ)/g, "h")
    txt = txt.replace(/(Ҳ)/g, "H")
    txt = txt.replace(/(ц)/g, "s")
    txt = txt.replace(/(Ц)/g, "Ts")
    txt = txt.replace(/(Ч)/g, "Ch")
    txt = txt.replace(/(ч)/g, "ch")
    txt = txt.replace(/(Ш)/g, "Sh")
    txt = txt.replace(/(ш)/g, "sh")
    txt = txt.replace(/(ы)/g, "i")
    txt = txt.replace(/(Ы)/g, "I")
    txt = txt.replace(/(Ь)/g, "")
    txt = txt.replace(/(ь)/g, "")
    txt = txt.replace(/(Э)/g, "E")
    txt = txt.replace(/(э)/g, "e")
    txt = txt.replace(/(Ю)/g, "Yu")
    txt = txt.replace(/(ю)/g, "yu")
    txt = txt.replace(/(Я)/g, "Ya")
    txt = txt.replace(/(я)/g, "ya")


    //======================================
/* Category tree */
    // Correct the reductions
#mw-subcategories ul {
     txt = txt.replace(/(\d)(mln|mlrd|trln|mln\.|mlrd\.|trln\.|million|milliard|trillion)([^A-Za-z])/g, "$1\u00A0$2$3")
     list-style: none none;
    // Insert missing and delete unnecessary spaces
     margin-left: 0.25em;
     txt = txt.replace(/([A-Z]\.) ?([A-Z]\.) ?([A-Z][a-z])/g, "$1\u00A0$2\u00A0$3")
}
     txt = txt.replace(/([A-Z]\.)([A-Z]\.)/g, "$1 $2")
.CategoryTreeChildren {
    txt = txt.replace(/^([#\*:]+)([ \t\f\v]*)([^ \t\f\v\*#:])/gm, "$1 $3")
     margin-left: 1.25em;
    txt = txt.replace(/([a-z])(\.)([А-ЯA-Z])/g, "$1$2 $3")
}
    txt = txt.replace(/([а-яa-z\)\»\“\"\]])(\s*)(\,)([а-яa-z\(\«\„\"\[])/g, "$1$3 $4")
 
    txt = txt.replace(/([а-яa-z\)\»\“\"\]])(\s)([\,\;])(\s)([а-яa-z\(\«\„\"\[])/g, "$1$3 $5")
/* Prevent floating boxes from overlapping any category listings,
     txt = txt.replace(/([^%\/\w]\d+?(?:[.,]\d+?)?) ?([%‰])(?!-[A-Za-zʻʼ])/g, "$1$2") // 15 % → 15%
  file histories, edit previews, and edit [Show changes] views */
    txt = txt.replace(/([№§])(\s*)(\d)/g, "$1\u00A0$3")
#mw-subcategories, #mw-pages, #mw-category-media,  
    txt = txt.replace(/(^|[^ \t])([ \t]+)($|\n)/gm, "$1$3")
#filehistory, #wikiPreview, #wikiDiff {
     txt = txt.replace(/(\()( +)/g, "$1");
     clear: both;
     txt = txt.replace(/( +)(\))/g, "$2");
}
     //======================================
/* Styling for Abuse Filter tags */
    // Avoid double spaces
.mw-tag-markers {
    txt = txt.substr(1, txt.length - 1);
     font-family:sans-serif;
    txt = txt.replace(/[ \t\u00A0]{2,}/g, " ")
     font-style:italic;
    txt = " " + txt
     font-size:90%;
    //======================================
}
    // Replace double quotes ("")  with double angle quotes («»)
 
    // txt = txt.replace(/([\x01-(\s\|\"]|\/|\+)(\")([^\"]{0,})([^\s\"(])(\")/g, "$1«\$3\$4»")
/* Hide stuff meant for accounts with special permissions. Made visible again in [[MediaWiki:Group-sysop.css]] and [[MediaWiki:Group-accountcreator.css]]. */
    // Quotations in quotes
.checkuser-show,
    if (/"/.test(txt)) {
.sysop-show,
        txt = txt.replace(/([\x01(\s\"])(\")([^\"]{0,})([^\s\"(])(\")/g, "\$1„\$3\$4“")
.patroller-show,
        while (/(«)([^»]*)(«)/.test(txt))
.extendedconfirmed-show,
            txt = txt.replace(/(«)([^»]*)(«)([^»]*)(»)/g, "\$1\$2„\$4“")
.autoconfirmed-show,
     }
.user-show {
     display: none;
}


/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors > li {
    list-style: none;
}
ul.permissions-errors {
    margin: 0;
}
}


/* Disable the automatic text-size adjust of WebKit on iPhones etc.
  It scales some text, and not the other. Use none, or fixed percentage instead.
  Use media selector, because defining a value, overwrites platform defaults. */
@media only screen and (max-device-width: 480px) {
    body {
        -webkit-text-size-adjust: none;
    }
}


function addWkikifPanel() {
/* Reduce excess space between category links.
     var wf = '<a href="javascript:Wikify();" title="Vikifikatsiya qil!" style="text-decoration: none;color:#000; font-weight:bold; font-size:16px; border:solid 1px #4444FF; background: #aabbff !important; padding: 1px 4px !important;" accesskey="w">Sayqallash</a></span> [<a href="/wiki/Vikipediya:Sayqallash" target="_blank" title="Sayqallash haqida yordam beti">?</a>]';
  Remove this when bug 31547/r100869 is resolved/deployed */
#catlinks {
     line-height: 1.25em;
}
#catlinks li {
    line-height: 1.25em;
    margin: 0.125em 0;
    padding: 0 0.5em;
}
#catlinks li:first-child {
    padding-left: 0.25em;
}


    /*var d = document;
/* Fix styling of transcluded prefindex tables */
    if (d.getElementById('wpSummaryLabel')) {
table#mw-prefixindex-list-table,
        var wps = d.getElementById('wpSummaryLabel').getElementsByTagName('span')[0];
table#mw-prefixindex-nav-table {
        if (wps) {
     width: 98%;
            wps.innerHTML = wf + wps.innerHTML;
}
        }
    }*/
    //$('.editOptions').before(wf);
    var $editTools = $('.mw-editTools');
     $('.editOptions').before($editTools);
    $('#wikificatorPlaceHolder').append(wf);


     oldSel = document.getElementById('specialchars');
/* For portals, added 2011-12-07 -bv */
     if (oldSel) oldSel.innerHTML = '';
/* On wide screens, show these as two columns */
/* On narrow and mobile screens, let them collapse into a single column */
.portal-column-left {
    float: left;
    width: 50%;
}
.portal-column-right {
    float: right;
    width: 49%;
}
.portal-column-left-wide {
    float: left;
    width: 60%;
}
.portal-column-right-narrow {
    float: right;
    width: 39%;
}
.portal-column-left-extra-wide {
    float: left;
     width: 70%;
}
.portal-column-right-extra-narrow {
    float: right;
     width: 29%;
}
@media only screen and (max-width: 800px) {
    /* Decouple the columns on narrow screens */
    .portal-column-left,
    .portal-column-right,
    .portal-column-left-wide,
    .portal-column-right-narrow,
    .portal-column-left-extra-wide,
    .portal-column-right-extra-narrow {
        float: inherit;
        width: inherit;
    }
}
}


// Вставляет стаб, выбранный из списка
/* For announcements */
function insertStub(obj) {
#bodyContent .letterhead {
     var id = obj.options[obj.selectedIndex].value;
     background-image:url('//upload.wikimedia.org/wikipedia/commons/e/e0/Tan-page-corner.png');
     if (id != '0') insertTags(t[id][0], t[id][2], t[id][1]);
    background-repeat:no-repeat;
     obj.selectedIndex = 0;
     padding: 2em;
     background-color: #faf9f2;
}
}


$(document).ready(addWkikifPanel);
.references.lower-alpha {


/* </pre> */
list-style-type: lower-alpha;
 
}

2026-yil 3-mart, 10:52 dagi (joriy) koʻrinishi

/* Don't display some stuff on the main page */
.page-Bosh_Sahifa #deleteconfirm,
.page-Bosh_Sahifa #t-cite,
.page-Bosh_Sahifa #footer-info-lastmod,
.page-Bosh_Sahifa #siteSub,
.page-Bosh_Sahifa #contentSub,
.page-Bosh_Sahifa h1.firstHeading,
.page-Bosh_Sahifa #lastmod {
  display: none !important;
}

.page-Bosh_Sahifa #mp-topbanner {
  margin-top: 0 !important;
}

/* Avoid collision of blockquote with floating elements by swapping margin and padding */
blockquote {
	overflow: hidden;
	margin: 1em 0;
	padding: 0 40px;
}

/* Default styling for HTML elements */
dfn {
    font-style: inherit;  /* Reset default styling for <dfn> */
}
sup, sub {
    line-height: 1em;     /* Reduce line-height for <sup> and <sub> */
}

/* Main page fixes */
#interwiki-completelist {
    font-weight: bold;
}
body.page-Bosh_Sahifa #ca-delete {
    display: none !important;
}
body.page-Bosh_Sahifa #mp-topbanner {
    clear: both;
}
body.page-Bosh_Sahifa .wbc-editpage { 
    display: none;
}

/* Make the list of references smaller */
ol.references,
div.reflist,
div.refbegin {
    font-size: 90%;            /* Default font-size */
    margin-bottom: 0.5em;
}
div.reflist ol.references {
    font-size: 100%;           /* Reset font-size when nested in div.reflist */
    list-style-type: inherit;  /* Enable custom list style types */
}

/* Highlight clicked reference in blue to help navigation */
ol.references li:target,
sup.reference:target,
span.citation:target { 
    background-color: #DEF;
}

/* Ensure refs in table headers and the like aren't bold or italic */
sup.reference {
    font-weight: normal;
    font-style: normal;
}

/* Allow hidden ref errors to be shown by user CSS */
span.brokenref {
    display: none;
}

/* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */
.citation {
    word-wrap: break-word;
}

/* Default styling for titles of works, styling for the title of an article
   within a periodical, or a contribution within a compilation. */
cite,
.citation cite.article,
.citation cite.contribution {
    font-style: inherit;
}

/* Styling for the title of any work within a citation,
   or specifically the title of a periodical. */
.citation cite,
.citation cite.periodical {
    font-style: italic;
}
 
/* 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 {
    .citation *.printonly {
        display: none;
    }
}

/* Style for horizontal lists (separator following item).
   @source mediawiki.org/wiki/Snippets/Horizontal_lists
   @revision 8 (2016-05-21)
   @author [[User:Edokter]]
 */

.hlist dl,
.hlist ol,
.hlist ul {
    margin: 0;
    padding: 0;
}


/* Display list items inline */

.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    /* don't trust the note that says margin doesn't work with inline
				* removing margin: 0 makes dds have margins again */
    display: inline;
}


/* Display nested lists inline */

.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl,
.hlist dl ol,
.hlist dl ul,
.hlist ol dl,
.hlist ol ol,
.hlist ol ul,
.hlist ul dl,
.hlist ul ol,
.hlist ul ul {
    display: inline;
}


/* Hide empty list items */

.hlist .mw-empty-li {
    display: none;
}


/* Generate interpuncts */

.hlist dt:after {
    content: ": ";
}


/**
 * Note hlist style usage differs in Minerva and is defined in core as well!
 * Please check Minerva desktop (and Minerva.css) when changing
 * See https://phabricator.wikimedia.org/T213239
 */

.hlist dd:after,
.hlist li:after {
    content: " · ";
    font-weight: bold;
}

.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
    content: none;
}


/* Add parentheses around nested lists */

.hlist dd dd:first-child:before,
.hlist dd dt:first-child:before,
.hlist dd li:first-child:before,
.hlist dt dd:first-child:before,
.hlist dt dt:first-child:before,
.hlist dt li:first-child:before,
.hlist li dd:first-child:before,
.hlist li dt:first-child:before,
.hlist li li:first-child:before {
    content: " (";
    font-weight: normal;
}

.hlist dd dd:last-child:after,
.hlist dd dt:last-child:after,
.hlist dd li:last-child:after,
.hlist dt dd:last-child:after,
.hlist dt dt:last-child:after,
.hlist dt li:last-child:after,
.hlist li dd:last-child:after,
.hlist li dt:last-child:after,
.hlist li li:last-child:after {
    content: ")";
    font-weight: normal;
}


/* Put ordinals in front of ordered list items */

.hlist ol {
    counter-reset: listitem;
}

.hlist ol>li {
    counter-increment: listitem;
}

.hlist ol>li:before {
    content: " " counter(listitem) "\a0";
}

.hlist dd ol>li:first-child:before,
.hlist dt ol>li:first-child:before,
.hlist li ol>li:first-child:before {
    content: " (" counter(listitem) "\a0";
}

/* Unbulleted lists */
.plainlist ul {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}
.plainlist ul li {
    margin-bottom: 0;
}

/* Default style for navigation boxes */

.navbox {
    /* Navbox container style */
    box-sizing: border-box;
    border: 1px solid #a2a9b1;
    width: 100%;
    clear: both;
    font-size: 88%;
    text-align: center;
    padding: 1px;
    margin: 1em auto 0;
    /* Prevent preceding content from clinging to navboxes */
}

.navbox .navbox {
    margin-top: 0;
    /* No top margin for nested navboxes */
}

.navbox+.navbox {
    margin-top: -1px;
    /* Single pixel border between adjacent navboxes */
}

.navbox-inner,
.navbox-subgroup {
    width: 100%;
}

.navbox-group,
.navbox-title,
.navbox-abovebelow {
    padding: 0.25em 1em;
    /* Title, group and above/below styles */
    line-height: 1.5em;
    text-align: center;
}

th.navbox-group {
    /* Group style */
    white-space: nowrap;
    /* @noflip */
    text-align: right;
}

.navbox,
.navbox-subgroup {
    background-color: #fdfdfd;
    /* Background color */
}

.navbox-list {
    line-height: 1.5em;
    border-color: #fdfdfd;
    /* Must match background color */
}


/* cell spacing for navbox cells */

tr+tr>.navbox-abovebelow,
tr+tr>.navbox-group,
tr+tr>.navbox-image,
tr+tr>.navbox-list {
    /* Borders above 2nd, 3rd, etc. rows */
    border-top: 2px solid #fdfdfd;
    /* Must match background color */
}

.navbox th,
.navbox-title {
    background-color: #ccccff;
    /* Level 1 color */
}

.navbox-abovebelow,
th.navbox-group,
.navbox-subgroup .navbox-title {
    background-color: #ddddff;
    /* Level 2 color */
}

.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
    background-color: #e6e6ff;
    /* Level 3 color */
}

.navbox-even {
    background-color: #f7f7f7;
    /* Even row striping */
}

.navbox-odd {
    background-color: transparent;
    /* Odd row striping */
}

.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
	padding: 1px 0 0;	   /* Adjust hlist padding in navboxes */
}
.navbox .navbox {
	margin-top: 0;			/* No top margin for nested navboxes */
}
.navbox + .navbox {
	margin-top: -1px;		 /* Single pixel border between adjacent navboxes */
}

/* Default styling for Navbar template */
.navbar {
	display: inline;
	font-size: 11px;
	font-weight: normal;
}
.navbar ul {
	display: inline;
	white-space: nowrap;
}
.mw-body-content .navbar ul {
	line-height: inherit;
}
.navbar.mini {
	word-spacing: -0.1em;
}
.navbar.mini span abbr[title] {
  border-bottom: none;
  text-decoration: none;
  cursor: inherit;
}

/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
   in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {       
    /* @noflip */
    float: right;
    font-weight: normal;
    /* @noflip */
    margin-left: 0.5em;
    /* @noflip */
    text-align: right;
    width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links
   from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
    width: 6em;
}

/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle {
    font-weight: normal;
    /* @noflip */
    text-align: right;
}
.navbox .mw-collapsible-toggle {
    width: 6em;
}

/* Infobox template style */
.infobox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    color: black;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    text-align: left;
    font-size: 88%;
    line-height: 1.5em;
}
.infobox caption {
    font-size: 125%;
    font-weight: bold;
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}

.infobox.sisterproject {
    width: 20em;
    font-size: 90%;
}

.infobox.standard-talk {
    border: 1px solid #c0c090;
    background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
    border: 1px solid #c0c090;
}

/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
    border: 0;
    border-top: 1px solid #aaa;
    border-right: 1px solid #aaa;
}

.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
    border: 0;
    border-right: 1px solid #aaa;
}

/* Styles for geography infoboxes, eg countries,
   country subdivisions, cities, etc.            */
.infobox.geography {
    /* @noflip */
    text-align: left;
    border-collapse: collapse;
    line-height: 1.2em; 
    font-size: 90%;
}

.infobox.geography  td,
.infobox.geography  th {
    border-top: 1px solid #aaa;
    padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
    border-top: 1px solid #aaa;
    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: 1px solid #aaa;
    padding: 0 0.6em 0.4em 0.6em;
}

.infobox.geography .maptable td,
.infobox.geography .maptable th {
    border: 0;
    padding: 0;
}

/* Normal font styling for table row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row] {
    font-weight: normal;
    /* @noflip */
    text-align: left;
}

/* lists in data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
    /* @noflip */
    text-align: left;
}

/* Icons for medialist templates [[Template:Listen]],
   [[Template:Multi-listen_start]], [[Template:Video]],
   [[Template:Multi-video_start]]
*/
div.listenlist {
    /* @embed */
    background: url("//upload.wikimedia.org/wikipedia/commons/3/3f/Gnome_speakernotes_30px.png");
    /* @noflip */
    padding-left: 40px;
}

/* Style rules for media list templates */
div.medialist {
    min-height: 50px;
    margin: 1em;
    /* @noflip */
    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;
}

/* Change the external link icon to an Adobe icon for all PDF files
   in browsers that support these CSS selectors, like Mozilla and Opera */
div#content a[href$=".pdf"].external, 
div#content a[href*=".pdf?"].external, 
div#content a[href*=".pdf#"].external,
div#content a[href$=".PDF"].external, 
div#content a[href*=".PDF?"].external, 
div#content a[href*=".PDF#"].external,
div#mw_content a[href$=".pdf"].external, 
div#mw_content a[href*=".pdf?"].external, 
div#mw_content a[href*=".pdf#"].external,
div#mw_content a[href$=".PDF"].external, 
div#mw_content a[href*=".PDF?"].external, 
div#mw_content a[href*=".PDF#"].external {
    /* @embed */
    background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
    /* @noflip */
    padding-right: 18px;
}

/* 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. */
div#content span.PDFlink a,
div#mw_content span.PDFlink a {
    /* @embed */
    background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
    /* @noflip */
    padding-right: 18px;
}

/* Content in columns with CSS instead of tables [[Template:Columns]] */
div.columns-2 div.column {
    /* @noflip */
    float: left;
    width: 50%;
    min-width: 300px;
}
div.columns-3 div.column {
    /* @noflip */
    float: left;
    width: 33.3%;
    min-width: 200px;
}
div.columns-4 div.column {
    /* @noflip */
    float: left;
    width: 25%;
    min-width: 150px;
}
div.columns-5 div.column {
    /* @noflip */
    float: left;
    width: 20%;
    min-width: 120px;
}

/* 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;
    margin: 4px auto;
}
/* For old WikiProject banners inside banner shells. */
.mbox-inside .standard-talk,
.messagebox.nested-talk {
    border: 1px solid #c0c090;
    background-color: #f8eaba;
    width: 100%;
    margin: 2px 0;
    padding: 2px;
}
.messagebox.small {
    width: 238px;
    font-size: 85%;
    /* @noflip */
    float: right;
    clear: both;
    /* @noflip */
    margin: 0 0 1em 1em;
    line-height: 1.25em; 
}
.messagebox.small-talk {
    width: 238px;
    font-size: 85%;
    /* @noflip */
    float: right;
    clear: both;
    /* @noflip */
    margin: 0 0 1em 1em;
    line-height: 1.25em; 
    background: #F8EABA;
}

/* 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; 
    /* @noflip */
    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; 
    /* @noflip */
    padding: 2px 0 2px 0.9em;  /* 0.9em left, 0px right */
    text-align: center; 
}
td.mbox-imageright {           /* The right image cell */
    border: none;
    /* @noflip */
    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; 
    /* @noflip */
    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 */
    /* @noflip */
    padding: 2px 0 2px 0.5em;    /* 0.5em left, 0px right */
}
.ambox td.mbox-imageright {      /* The right image cell */
    /* @noflip */
    padding: 2px 0.5em 2px 0;    /* 0px left, 0.5em right */
}

table.ambox-notice {
    /* @noflip */
    border-left: 10px solid #1e90ff;    /* Blue */
}
table.ambox-speedy {
    /* @noflip */
    border-left: 10px solid #b22222;    /* Red */
    background: #fee;                   /* Pink */
}
table.ambox-delete {
    /* @noflip */
    border-left: 10px solid #b22222;    /* Red */
}
table.ambox-content {
    /* @noflip */
    border-left: 10px solid #f28500;    /* Orange */
}
table.ambox-style {
    /* @noflip */
    border-left: 10px solid #f4c430;    /* Yellow */
}
table.ambox-move {
    /* @noflip */
    border-left: 10px solid #9932cc;    /* Purple */
}
table.ambox-protection {
    /* @noflip */
    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.        */
    display: block;         /* Fix for webkit to force 100% width.  */
}
.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" class ensures that */
    margin: 2px 0;               /* this declaration overrides other styles (including mbox-small above)   */
    width: 100%;                 /* For Safari and Opera */
}
.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;
}
 
/* 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:Readonly lag]]. */
div.mw-lag-warn-normal,
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. */
    /* @noflip */
    clear: right;
    /* @noflip */
    float: right;
    /* @noflip */
    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. */
    /* @noflip */
    margin: 4px 1em 4px 0;
    width: 238px;
    border-collapse: collapse;
    font-size: 88%;
    line-height: 1.25em;
}

/* Remove default styles for [[MediaWiki:Noarticletext]]. */
div.noarticletext {
    border: none;
    background: transparent;
    padding: 0;
}

/* Bold save button */
#wpSave {
    font-weight: bold;
}

/* class hiddenStructure is defunct. See [[Wikipedia:hiddenStructure]] */
.hiddenStructure {
    display: inline ! important;
    color: #f00; 
    background-color: #0f0;
}

/* suppress missing interwiki image links where #ifexist cannot
   be used due to high number of requests see .hidden-redlink on 
   [[m:MediaWiki:Common.css]]
*/
.check-icon a.new {
    display: none; 
    speak: none;
}

/* Removes underlines from certain links */
.nounderlines a,
.IPA a:link, .IPA a:visited { 
    text-decoration: none !important;
}

/* Standard Navigationsleisten, aka box hiding thingy
   from .de.  Documentation at [[Wikipedia:NavFrame]]. */
div.NavFrame {
    margin: 0;
    padding: 4px;
    border: 1px solid #aaa;
    text-align: center;
    border-collapse: collapse;
    font-size: 95%;
}
div.NavFrame + div.NavFrame {
    border-top-style: none;
    border-top-style: hidden;
}
div.NavPic {
    background-color: #fff;
    margin: 0;
    padding: 2px;
    /* @noflip */
    float: left;
}
div.NavFrame div.NavHead {
    height: 1.6em;
    font-weight: bold;
    background-color: #ccf;
    position: relative;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
    font-size: 100%;
}
div.NavEnd {
    margin: 0;
    padding: 0;
    line-height: 1px;
    clear: both;
}
a.NavToggle {
    position: absolute;
    top: 0;
    /* @noflip */
    right: 3px;
    font-weight: normal;
    font-size: 90%;
}

/* Hatnotes and disambiguation notices */
.rellink,
.dablink {
    font-style: italic;
    /* @noflip */
    padding-left: 1.6em;
    margin-bottom: 0.5em;
}
.rellink i,
.dablink i {
    font-style: normal;
}

/* Allow transcluded pages to display in lists rather than a table.
   Compatible in Firefox; incompatible in IE6. */
.listify td    { display: list-item; }
.listify tr    { display: block; }
.listify table { display: block; }

/* 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 { 
    /* @noflip */
    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-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}

/* User block messages */
div.user-block {
    padding: 5px;
    margin-bottom: 0.5em;
    border: 1px solid #A9A9A9;
    background-color: #FFEFD5;
}

/* Prevent line breaks in silly places: 
   1) Where desired
   2) Links when we don't want them to
   3) Bold "links" to the page itself
   4) HTML formulae
   5) Ref tags with group names <ref group="Note"> --> "[Note 1]"
*/
.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
span.texhtml,
sup.reference a { 
    white-space: nowrap;
}

/* For template documentation */
.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa; 
    background-color: #ecfcf4; 
    padding: 1em;
}

/* Inline divs in ImageMaps (code borrowed from de.wiki) */
.imagemap-inline div {
    display: inline;
}

/* Increase the height of the image upload box */
#wpUploadDescription {
    height: 13em;
}

/* Minimum thumb width */
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumbinner {
    min-width: 100px;
}

/* Category tree */
#mw-subcategories ul {
    list-style: none none;
    margin-left: 0.25em;
}
.CategoryTreeChildren {
    margin-left: 1.25em;
}

/* Prevent floating boxes from overlapping any category listings,
   file histories, edit previews, and edit [Show changes] views */
#mw-subcategories, #mw-pages, #mw-category-media, 
#filehistory, #wikiPreview, #wikiDiff {
    clear: both;
}
/* Styling for Abuse Filter tags */
.mw-tag-markers {
    font-family:sans-serif;
    font-style:italic;
    font-size:90%;
}

/* Hide stuff meant for accounts with special permissions. Made visible again in [[MediaWiki:Group-sysop.css]] and [[MediaWiki:Group-accountcreator.css]]. */
.checkuser-show,
.sysop-show,
.patroller-show,
.extendedconfirmed-show,
.autoconfirmed-show,
.user-show {
    display: none;
}

/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors > li {
    list-style: none;
}
ul.permissions-errors {
    margin: 0;
}

/* Disable the automatic text-size adjust of WebKit on iPhones etc.
   It scales some text, and not the other. Use none, or fixed percentage instead.
   Use media selector, because defining a value, overwrites platform defaults. */
@media only screen and (max-device-width: 480px) {
    body {
        -webkit-text-size-adjust: none;
    }
}

/* Reduce excess space between category links.
   Remove this when bug 31547/r100869 is resolved/deployed */
#catlinks {
    line-height: 1.25em;
}
#catlinks li {
    line-height: 1.25em;
    margin: 0.125em 0;
    padding: 0 0.5em;
}
#catlinks li:first-child {
    padding-left: 0.25em;
}

/* Fix styling of transcluded prefindex tables */
table#mw-prefixindex-list-table,
table#mw-prefixindex-nav-table {
    width: 98%;
}

/* For portals, added 2011-12-07 -bv */
/* On wide screens, show these as two columns */
/* On narrow and mobile screens, let them collapse into a single column */
.portal-column-left {
    float: left;
    width: 50%;
}
.portal-column-right {
    float: right;
    width: 49%;
}
.portal-column-left-wide {
    float: left;
    width: 60%;
}
.portal-column-right-narrow {
    float: right;
    width: 39%;
}
.portal-column-left-extra-wide {
    float: left;
    width: 70%;
}
.portal-column-right-extra-narrow {
    float: right;
    width: 29%;
}
@media only screen and (max-width: 800px) {
    /* Decouple the columns on narrow screens */
    .portal-column-left,
    .portal-column-right,
    .portal-column-left-wide,
    .portal-column-right-narrow,
    .portal-column-left-extra-wide,
    .portal-column-right-extra-narrow {
        float: inherit;
        width: inherit;
    }
}

/* For announcements */
#bodyContent .letterhead {
    background-image:url('//upload.wikimedia.org/wikipedia/commons/e/e0/Tan-page-corner.png');
    background-repeat:no-repeat;
    padding: 2em;
    background-color: #faf9f2;
}

.references.lower-alpha {

list-style-type: lower-alpha;

}