「MediaWiki:Common.css」:修訂間差異

出自Quickpedia wiki
建立內容為「→‎이 CSS 설정은 모든 스킨에 동일하게 적용됩니다:​ * { font-family: 나눔고딕, '맑은 고딕'; } →‎HTML 요소의 기본 스타일. en:에서 가져옴:​ dfn { font-style: inherit; →‎Reset default styling for <dfn>:​ } sup, sub { line-height: 1em; →‎<sup>와 <sub>의 줄간격 조절:​ } →‎* <references/> 관련 CSS *:​ ol.references, div.reflist, div.refbegin { font-size: 90%; /* 기본 글꼴…」的新頁面
 
無編輯摘要
 
(未顯示同一使用者於中間所作的 5 次修訂)
第1行: 第1行:
/* 이 CSS 설정은 모든 스킨에 동일하게 적용됩니다 */
/** CSS placed here will be applied to all skins */
/* Common CSS for all skins */


* {  
/* 致各管理員:留意 Monobook.css or Common.css 在 [[Wikimedia:zh:Wikipedia:Village Pump|Wikipedia:Village Pump]] 的變動。  Thank you. */
font-family: 나눔고딕, '맑은 고딕';  
/*<pre><nowiki>*/
 
/* make the list of references look smaller */
ol.references {
  font-size: 100%;
}
}


/* HTML 요소의 기본 스타일. en:에서 가져옴 */
.references-small { font-size: 90%;}
dfn {
 
    font-style: inherit;  /* Reset default styling for <dfn> */
/* 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) */
sup, sub {
/* column-count is from the CSS3 module "CSS Multi-column Layout" */
    line-height: 1em;     /* <sup>와 <sub>의 줄간격 조절 */
/* Please ignore any validator errors caused by these two lines */
.references-2column {
  font-size: 90%;
  -moz-column-count:2;
  column-count:2;
}
}


/** <references/> 관련 CSS **/
.same-bg { background: none }
 
/* wikitable/prettytable class for skinning normal tables */


ol.references,
table.wikitable,
div.reflist,
table.prettytable {
div.refbegin {
  margin: 1em 1em 1em 0;
    font-size: 90%;           /* 기본 글꼴 크기 */
  background: #f9f9f9;
    margin-bottom: 0.5em;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}
}
div.refbegin-100 {
 
    font-size: 100%;           /* Option for normal fontsize in {{refbegin}} */
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
  border: 1px #aaaaaa solid;
  padding: 0.2em;
}
}
div.reflist ol.references {
 
    font-size: 100%;           /* Reset font-size when nested in div.reflist */
table.wikitable th,
    margin-bottom: 0;          /* Avoid double margin when nested in div.reflist */
table.prettytable th {
    list-style-type: inherit; /* Enable custom list style types */
  background: #f2f2f2;
  text-align: center;
}
}


/* 선택된 항목에 배경색 씌우기 */
table.wikitable caption,
body.action-info :target,
table.prettytable caption {
.citation:target {
  margin-left: inherit;
    background-color: #DEF; /* Fallback */
  margin-right: inherit;
    background-color: rgba(0, 127, 255, 0.133);
}
}


/* 테이블 제목 등의 ref에서 bold/italic 제거 */
/* Style for "notices" */
sup.reference {
.notice {
     font-weight: normal;
     text-align: justify;
     font-style: normal;
     margin: 1em;
    padding: 0.2em;
}
}


/* Allow hidden ref errors to be shown by user CSS */
#disambig {
span.brokenref {
    border-top: 3px double #cccccc;
display: none;
    border-bottom: 3px double #cccccc;
}
}


/* Hanging indentation for Template:Refbegin */
#spoiler {
.refbegin-hanging-indents > ul {
    border-top: 2px solid #ddd;
list-style-type: none;
    border-bottom:2px solid #ddd;
margin-left: 0;
}
}
.refbegin-hanging-indents > ul > li,
 
.refbegin-hanging-indents > dl > dd {
/* Standard talk template style */
margin-left: 0;
 
padding-left: 3.2em;
.Talk-Notice {
text-indent: -3.2em;
    border: 1px solid #C0C090;
list-style: none;
    background-color: #F8EABA;
    margin-bottom: 3px;
    width: 80%;
    border-spacing: 3px;
    margin-left: auto;
    margin-right: auto;
}
}


/* 인용에 대한 스타일 추가 (CSS3). 예를 들어 URL이 너무 길면 상자를 벗어나지 않고 잘라냄. */
.Talk-Notice:after {
.citation {
  content: "The CSS for this template should be changed. See [[Wikipedia:Template Standardisation]].";
    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;
}
}


/* For linked citation numbers and document IDs, where
/* Make template background appear correctly on all browsers */
  the number need not be shown on a screen or a handheld,
.Talk-Notice td {
  but should be included in the printed version */
     background: inherit;
@media screen, handheld {
     .citation *.printonly {
        display: none;
    }
}
}


/** .messagebox 스타일 **/
/* Metadata */
.messagebox {
table.metadata {
border: 1px solid #a2a9b1;
     border: 1px solid #aaaaaa;
background-color: #f8f9fa;
     display: none;
width: 80%;
     speak: none;
margin: 0 auto 1em auto;
padding: .2em;
}
.messagebox.merge {
     border: 1px solid #c0b8cc;
     background-color: #f0e5ff;
     text-align: center;
}
}
.messagebox.cleanup {
.metadata-label {
     border: 1px solid #9f9fff;
     color: #aaaaaa;
    background-color: #efefff;
    text-align: center;
}
}
.messagebox.standard-talk {
 
     border: 1px solid #c0c090;
/* Makes redirects appear in italics on [[Special:Allpages]] */
    background-color: #f8eaba;
.allpagesredirect {
    margin: 4px auto;
     font-style: italic;
}
}


.messagebox.small {
/* Choose whether to have AD/BC dates or CE/BCE dates*/
    width: 238px;
 
    font-size: 85%;
/* First, the default : display both : See templates ADCE and BCEBC for how these are used*/
    /* @noflip */
.Use_Default_Date_Convention { display: inline; }
    float: right;
.Use_AD_and_BC { display: none; }
    clear: both;
.Use_BCE_and_CE { display: none; }
    /* @noflip */
 
    margin: 0 0 1em 1em;
/* If you want to display AD and BC add the following to User:You/monobook.css page */
    line-height: 1.25em;
/*
}
.Use_Default_Date_Convention { display: none; }
.messagebox.small-talk {
.Use_AD_and_BC { display:inline; }
    width: 238px;
.Use_BCE_and_CE { display:none; }
    font-size: 85%;
*/
    /* @noflip */
 
    float: right;
/*If you want to display CE and BCE add the following to User:You/monobook.css page */
    clear: both;
/*
    /* @noflip */
.Use_Default_Date_Convention { display: none; }
     margin: 0 0 1em 1em;
.Use_AD_and_BC { display:none; }
     line-height: 1.25em;
.Use_BCE_and_CE {display:inline; }
     background: #F8EABA;
*/
 
/* 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;
}
}


/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
/* Icons for medialist templates [[Template:Listen]], [[Template:Multi-listen_start]], [[Template:Video]], [[Template:Multi-video_start]] */
th.mbox-text, td.mbox-text {  /* The message body cell(s) */
 
    border: none;
div.listenlist {
    /* @noflip */
     background: url("http://upload.wikimedia.org/wikipedia/commons/thumb/a/a6/Gnome-speakernotes.png/30px-Gnome-speakernotes.png");
    padding: 0.25em 0.9em;    /* 0.9em left/right */
     padding-left: 40px;
    width: 100%;              /* Make all mboxes the same width regardless of text length */
    font-size: small;
}
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: 0;
    width: 1px;
}
}


/* 일반 문서용 알림 상자(ambox)의 스타일 */
div.videolist {
table.ambox {
     background: url("http://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Video.svg/40px-Video.svg.png");
    margin: 0 10%;                  /* 10% = Will not overlap with other elements */
     padding-left: 50px;
    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 {
div.multivideolist {
     /* @noflip */
     background: url("http://upload.wikimedia.org/wikipedia/en/thumb/7/7a/FilmRoll-small.png/40px-FilmRoll-small.png");
    border-left: 10px solid #1e90ff;    /* Blue */
     padding-left: 50px;
}
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 */
}
}


/* 그림 문서용 알림 상자(imbox) 틀의 스타일 */
/* Style rules for media list templates */
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 {
div.medialist {
     border: 3px solid #1e90ff;   /* Blue */
     min-height: 50px;
}
     margin: 1em;
table.imbox-speedy {
     background-position: top left;
     border: 3px solid #b22222;   /* Red */
     background-repeat: no-repeat;
     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 */
}
}


/* 분류에 부착하는 알림 틀(cmbox)의 스타일 */
div.medialist ul {
table.cmbox {
     list-style-type: none;
     margin: 3px 10%;
     list-style-image: none;
     border-collapse: collapse;
     margin: 0;
     border: 1px solid #aaa;
    background: #DFE8FF;   /* Default "notice" blue */
}
}


table.cmbox-notice {
div.medialist ul li {
     background: #D8E8FF;    /* Blue */
     padding-bottom: 0.5em;
}
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 */
}
}


/* 기타 문서용 알림 상자(ombox) 스타일 */
div.medialist ul li li {
table.ombox {
     font-size: 91%;
     margin: 4px 10%;
     padding-bottom: 0;
     border-collapse: collapse;
    border: 1px solid #aaa;      /* Default "notice" gray */
    background: #f9f9f9;
}
}


table.ombox-notice {
/*Add formatting to make sure that "external references" from [[Template:Ref]] do
    border: 1px solid #aaa;      /* Gray */
  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
table.ombox-speedy {
  "urlexpansion", which was not displayed on screen, but was shown when the medium was
    border: 2px solid #b22222;    /* Red */
  "print". The rules below ensure (a) that there is no extra padding to the right of
    background: #fee;             /* Pink */
  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.
table.ombox-delete {
  [[使用者:Msnhinet8|Msnhinet8]]([[使用者討論:Msnhinet8|留言]]) 2025年4月8日 (二) 10:55 (CST)
    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 */
}


/* 문서 토론 란에 사용하는 알림 상자(tmbox)의 스타일 */
.plainlinksneverexpand {
table.tmbox {
  background: none ! important;
    margin: 4px 10%;
  padding: 0 ! important;
    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 {
.plainlinksneverexpand .urlexpansion {
    border: 2px solid #b22222;    /* Red */
  display: none ! important;
    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 */
/* Make sure that ext links displayed within "plainlinksneverexpand" don't get
table.dmbox {
  the arrow...
    clear: both;
*/
    margin: 0.9em 1em;
.plainlinksneverexpand a {
    border-top: 1px solid #ccc;
  background: none !important;
    border-bottom: 1px solid #ccc;
  padding: 0 !important;
    background: transparent;
}
}


/* 머릿말과 꼬릿말 알림 상자 틀(fmbox)의 스타일 */
/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
table.fmbox {
  following the anchor A, the anchor itself now has class "external autonumber" and the
    clear: both;
  expansion is inserted when printing (see the common printing style sheet at
    margin: 0.2em 0;
  http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-
    width: 100%;
  element of CSS. We have to switch this off for links due to Template:Ref!
    border: 1px solid #aaa;
  [[使用者:Msnhinet8|Msnhinet8]]([[使用者討論:Msnhinet8|留言]]) 2025年4月8日 (二) 10:55 (CST)
    background: #f9f9f9;     /* Default "system" gray */
*/
.plainlinksneverexpand a.external.text:after {
  display: none !important;
}
}
table.fmbox-system {
.plainlinksneverexpand a.external.autonumber:after {
    background: #f9f9f9;
  display: none !important;
}
table.fmbox-warning {
    border: 1px solid #bb7070;  /* Dark pink */
    background: #ffdbdb;        /* Pink */
}
table.fmbox-editnotice {
    background: transparent;
}
/* div 기반 "경고" 스타일 fmbox 메시지. */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning,
div.locked-warning {
    clear: both;
    margin: 0.2em 0;
    border: 1px solid #bb7070;
    background: #ffdbdb;
    padding: 0.25em 0.9em;
}
/* div 기반 "시스템" 스타일 fmbox 메시지.
  [[미디어위키: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
/* Merge template style */
  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;
}


/* Style for compact ambox */
.messagebox {
/* Hide the images */
  border: 1px solid #aaaaaa;
.compact-ambox table .mbox-image,
  background-color: #f9f9f9;
.compact-ambox table .mbox-imageright,
  width: 80%;
.compact-ambox table .mbox-empty-cell {
  margin: 0 auto 1em auto;
    display: none;
  padding: .2em;
  text-align: justify;
}
}
/* Remove borders, backgrounds, padding, etc. */
.messagebox.merge {
.compact-ambox table.ambox {
  border: 1px solid #cf9fff;
    border: none;
  background-color: #f5edf5;
    border-collapse: collapse;
  text-align: center;
    background: transparent;
    margin: 0 0 0 1.6em !important;
    padding: 0 !important;
    width: auto;
    display: block;
}
}
body.mediawiki .compact-ambox table.mbox-small-left {
.messagebox.cleanup {
    font-size: 100%;
  border: 1px solid #9f9fff;
    width: auto;
  background-color: #efefff;
    margin: 0;
  text-align: center;
}
}
/* Style the text cell as a list item and remove its padding */
.messagebox.standard-talk {
.compact-ambox table .mbox-text {
  border: 1px solid #c0c090;
    padding: 0 !important;
  background-color: #f8eaba;
    margin: 0 !important;
}
.compact-ambox table .mbox-text-span {
    display: list-item;
    line-height: 1.5em;
    list-style-type: square;
    list-style-image: url(/w/skins/MonoBook/bullet.gif);
}
.skin-vector .compact-ambox table .mbox-text-span {
    list-style-type: disc;
    list-style-image: url(/w/skins/Vector/images/bullet-icon.svg);
    list-style-image: url(/w/skins/Vector/images/bullet-icon.png)\9;
}
/* Allow for hiding text in compact form */
.compact-ambox .hide-when-compact {
    display: none;
}
}


/* 틀 설명문서 */
/* Infobox template style */
.template-documentation {
    clear: both;
    margin: 1em 0 0 0;
    border: 1px solid #aaa;
    background-color: #ecfcf4;
    padding: 1em;
}


/** 정보상자 **/
.infobox {
.infobox {
  float: right;
  border: 1px solid #aaaaaa;
  clear: right;
  background-color: #f9f9f9;
  margin: 0.5em 0 0.5em 1em;
  color: black;
  padding: 0.2em;
  margin-bottom: 0.5em;
  border: 1px solid #aaa;
  margin-left: 1em;
  background: #f9f9f9;
  padding: 0.2em;
  font-size: small;
  float: right;
  width: 25em;
  clear: right;
}
}
.infobox td,
.infobox td,
.infobox th {
.infobox th {
  vertical-align: top;
  vertical-align: top;
}
}
.infobox caption {
.infobox caption {
  font-size: 125%;
  font-size: larger;
  font-weight: bold;
  margin-left: inherit;
}
 
.infobox caption.colored {
  margin: 0.25em 0 0.5em 0;
  border-top-style: solid;
  border-bottom-style: solid;
  border-top-width: 0.3em;
  border-bottom-width: 0.3em;
/* 제목에 색이 필요할 때 class 지정 후 border-color 스타일 지정 */
}
 
.infobox th {
  white-space: nowrap;
}
.infobox th[colspan="2"] {
  text-align: center;
}
}
.infobox.bordered {
.infobox.bordered {
  border-collapse: collapse;
  border-collapse: collapse;
}
}
.infobox.bordered td,
.infobox.bordered td,
.infobox.bordered th {
.infobox.bordered th {
  border: 1px solid #aaa;
  border: 1px solid #aaaaaa;
}
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
.infobox.bordered .borderless th {
  border: 0;
  border: 0;
}
}
.infobox.sisterproject {
.infobox.sisterproject {
  width: 20em;
  width: 20em;
  font-size: smaller;
  font-size: 120%;
}
}


/* styles for bordered infobox with merged rows */
/* 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. */
.infobox.bordered .mergedtoprow td,
.IPA {
.infobox.bordered .mergedtoprow th {
        font-family: 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;
  border: 0;
        font-family /**/:inherit;
  border-top: 1px solid #aaa;
  border-right: 1px solid #aaa;
}
}
.infobox.bordered .mergedrow td,
.Unicode {
.infobox.bordered .mergedrow th {
        font-family: 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;
  border: 0;
        font-family /**/:inherit;
  border-right: 1px solid #aaa;
}
}
 
.latinx {
/* styles for geography infoboxes, e.g. countries, country subdivisions, cities, etc. */
        font-family: TITUS Cyberbit Basic, Code2000, Microsoft Sans Serif;
.infobox.geography {
        font-family /**/:inherit;
  text-align: left;
  border-collapse: collapse;
  line-height: 1.2em;
  font-size: smaller;
}
}
.infobox.geography  td,
.polytonic, .interwiki-el a {
.infobox.geography  th {
        font-family: Athena, Gentium, Palatino Linotype, Arial Unicode MS, Lucida Sans Unicode, Lucida Grande, Code2000;
  border-top: solid 1px #aaa;
        font-family /**/:inherit;
  padding: 0.4em 0.6em;
}
}
.infobox.geography .mergedtoprow td,
.mufi {
.infobox.geography .mergedtoprow th {
        font-family: Alphabetum, Cardo, LeedsUni, Junicode, TITUS Cyberbit Basic, ALPHA-Demo;
  border-top: solid 1px #aaa;
  padding: 0.4em 0.6em 0.2em;
}
}
.infobox.geography .mergedrow td,
.interwiki-ja a {
.infobox.geography .mergedrow th {
        font-family: "Meiryo", "MS PMincho", "MS Mincho", "MS PGothic", "MS Gothic", "Arial Unicode MS";
  border: 0;
  padding: 0 0.6em 0.2em;
}
}
.infobox.geography .mergedbottomrow td,
.interwiki-ko a {
.infobox.geography .mergedbottomrow th {
        font-family: "Malgun Gothic", "Gulim", "Dotum", "Arial Unicode MS";
  border-top: 0;
  border-bottom: solid 1px #aaa;
  padding: 0 0.6em 0.4em;
}
}
.infobox.geography .maptable td,
.interwiki-ru a, .interwiki-uk a, .interwiki-be a, .interwiki-bg a,
.infobox.geography .maptable th {
.interwiki-sr a, .interwiki-mk a, .interwiki-os a, .interwiki-tg a,
  border: 0;
.interwiki-mo a,.interwiki-kk a, .interwiki-ky a, .interwiki-tt a,
  padding: 0;
.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 {
/* "notices" 스타일 */
        /* 阿拉伯字母 */
.notice {
        font-family: "Arial Unicode MS", "Microsoft Sans Serif", "Times New Roman", Times, serif;
  margin: 1em;
        direction: rtl;
  padding: 0.2em;
}
}
 
.interwiki-he a, .interwiki-yi a {
.notice.section {
        /* 希伯來字母 */
  width: auto;
        font-family: Cardo, "Arial Unicode MS", Code2000, David, "Times New Roman", Times, serif;
  margin: 0 1em 0 1em;
        direction: rtl;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  font-size: smaller;
}
}
.notice.section + .notice.section {
.interwiki-af a, .interwiki-als a, .interwiki-an a, .interwiki-ang a,
  margin-top: -1px;
.interwiki-ast a, .interwiki-az a, .interwiki-ba a, .interwiki-bat-smg a,
  border-top: 0;
.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;
}
}


#disambig {
#wpSave {
   border-top: 1px solid #ccc;
   font-weight: bold;
  border-bottom: 1px solid #ccc;
}
}


.spoiler {
/* hiddenStructure from Monobook - allows selective hiding of markup in templates */
  border-top: 2px solid #ddd;
.hiddenStructure {
  border-bottom: 2px solid #ddd;
  display: none;
  speak: none;
}
}


table.stub {
/* Removes underlines from links */
  width: 100%;
.nounderlines a {
  margin: 1em auto 0;
   text-decoration: none;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-size: smaller;
}
table.stub + table.stub {
   margin-top: -1px;
  border-top: 0;
}
}


/* Put a checker background at the image description page only visible if the image has transparent background */
/* CSS for testing a new Main Page design, see [[Wikipedia:WikiProject Usability/Main Page]] */
#file img {background: url("//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;}
 
#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%; }


#wpSave {
  /* 每次记录应用用于多数图像的模板 */
   font-weight: bold;
   .tickerTemplateEntry    { font-weight: bold; }
}


/*[[미디어위키토론:Common.css#.jamocomposed_block 수정]]-Request by Banwol, added by 분당선M*/
  /* 每次记录应用次要记录---应用模板的某图像 */
.jamocomposed_block {
  .tickerSubEntry        { }
font-family: '함초롬돋움 LVT', 'HCR Dotum LVT', '함초롬바탕 LVT', 'HCR Batang LVT', '본고딕', 'Source Han Sans K', '본고딕 KR', 'Source Han Sans KR', 'Noto Sans CJK KR', '나눔바른고딕 옛한글', 'NanumBarunGothic YetHangul', '나눔명조 옛한글', 'NanumMyeongjo YetHangul', '은 바탕', 'Un Batang', '돋움 옛한글', 'Dotum Old Hangul', '바탕 옛한글', 'Batang Old Hangul', '굴림 옛한글', 'NewGulim Old Hangul', '궁서 옛한글', 'Gungsuh Old Hangul', '맑은 고딕', 'Malgun Gothic', '함초롬돋움', 'HCR Dotum', '함초롬바탕', 'HCR Batang', Code2000;
}


.oldhanyang {
  /* 次要记录格式 */
   font-family: "New Gulim", "새굴림", "새돋움", "한컴돋움", "Naver Dictionary", "네이버사전", "Haansoft Batang", "한컴바탕", "새바탕";
  .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; }


/* 링크 밀줄 제거 */
/* Donations link to be uncommented during fundraising drives */
.nounderlines a {
#siteNotice {
  text-decoration: none;
    margin-top:5px;
}
    padding-left: 4px;
/* IPA 링크 밑줄 제거 */
    font-style: italic;
.IPA a:link, .IPA a:visited {
    text-align: center;
  text-decoration: none;
}
}


/* [[위키백과:사랑방/2007년 1월#틀:듣기 용 아이콘]] */
/*
.audiolink a{
#fundraising {
  background: url("//upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Loudspeaker.svg/11px-Loudspeaker.svg.png") center left no-repeat !important;
text-align: center;
  padding-left: 16px !important;
border: 1px solid gray;
  padding-right: 0 !important;
padding: 5px;
}
}
*/


/* [[위키백과:사랑방/2007년 4월#영어판의 틀을 번역했는데, 모양이 다르게 나옵니다.]]
/****************************/
   [[:en:MediaWiki:Common.css]]에서 가져옴 */
/* BEGIN LIGHT BLUE SECTION */
/****************************/
/* Make all non-namespace pages have a light blue content area. This is done by
  setting the background color for all #content areas to light blue and then
  overriding it for any #content enclosed in a .ns-0 (main namespace). I then
   do the same for the "tab" background colors. --Lupo */


/* 둘러보기 상자의 기본 스킨 */
#content {
.navbox {                     /* 둘러보기 상자 내용에 대한 스타일 */
    background: #F8FCFF; /* a light blue */
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 */
#content div.thumb {
    border-color: #F8FCFF;
}
}
.navbox + .navbox {
 
margin-top: -1px;         /* Single pixel border between adjacent navboxes */
.ns-0 * #content {
    background: white;
}
}
.navbox-inner,
 
.navbox-subgroup {
#mytabs li {
width: 100%;
    background: #F8FCFF;
}
}
.navbox-group,
 
.navbox-title,
.ns-0 * #mytabs li {
.navbox-abovebelow {
    background: white;
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;
#mytabs li a {
/* @noflip */
    background-color: #F8FCFF;
text-align: right;
}
}
.navbox,
 
.navbox-subgroup {
.ns-0 * #mytabs li a {
background: #fdfdfd;     /* 배경색 */
    background-color: white;
}
}
.navbox-list {
 
line-height: 1.5em;
#p-cactions li a, #p-cactions li a:hover, #p-cactions li.selected a {
border-color: #fdfdfd;   /* 배경색과 동일해야 함 */
    background-color: #F8FCFF;
}
}
/* cell spacing for navbox cells */
 
tr + tr > .navbox-abovebelow,
.ns-0 * #p-cactions li a {
tr + tr > .navbox-group,
    background-color: #fbfbfb;
tr + tr > .navbox-image,
tr + tr > .navbox-list {   /* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* 배경색과 동일해야 함 */
}
}
.navbox th,
 
.navbox-title {
.ns-0 * #p-cactions li.selected a, .ns-0 * #p-cactions li a:hover {
background: #ccccff;      /* Level 1 color */
    background-color: white;
        padding: 5px;
}
}
.navbox-abovebelow,
 
th.navbox-group,
.ns-0 * #content div.thumb {
.navbox-subgroup .navbox-title {
    border-color: white;
background: #ddddff;     /* Level 2 color */
}
}
.navbox-subgroup .navbox-group,
 
.navbox-subgroup .navbox-abovebelow {
/**************************/
background: #e6e6ff;     /* Level 3 color */
/* END LIGHT BLUE SECTION */
/**************************/
 
/* Display "From Wikipedia, the free encyclopedia" */
#siteSub {
    display: inline;
    font-size: 92%;
    font-weight: normal;
}
}
.navbox-even {
 
background: #f7f7f7;     /* Even row striping */
#bodyContent #siteSub a {
    color: #000;
    text-decoration: none;
    background-color: transparent;
    background-image: none;
    padding-right: 0;
}
}
.navbox-odd {
 
background: transparent;  /* Odd row striping */
/* Bold 'edit this page' link to encourage newcomers */
}
#ca-edit a { font-weight: bold !important; }
.navbox .hlist td dl,
 
.navbox .hlist td ol,
/* Display "User $1, you are already logged in!"
.navbox .hlist td ul,
  ([[MediaWiki:Alreadyloggedin]]) in red and bold */
.navbox td.hlist dl,
div.alreadyloggedin { color: red; font-weight: bold; }
.navbox td.hlist ol,
 
.navbox td.hlist ul {
@media print {
padding: 0.125em 0;       /* Adjust hlist padding in navboxes */
    /* Do not print edit link in templates using Templat
.language-selector {
  margin-bottom: 1em;
  padding: 0.5em;
  border: 1px solid #a7d7f9;
  background-color: #f9f9f9;
  border-radius: 4px;
}
}


/* Default styling for Navbar template */
.language-selector label {
.navbar {
  font-weight: bold;
display: inline;
  margin-right: 0.5em;
font-size: 88%;
font-weight: normal;
}
.navbar ul {
display: inline;
white-space: nowrap;
}
.mw-body-content .navbar ul {
line-height: inherit;
}
.navbar li {
word-spacing: -0.125em;
}
.navbar.mini li abbr[title] {
font-variant: small-caps;
border-bottom: none;
text-decoration: none;
cursor: inherit;
}
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
font-size: 100%;
}
.navbox .navbar {
display: block;
font-size: 100%;
}
.navbox-title .navbar {
/* @noflip */
float: left;
/* @noflip */
text-align: left;
/* @noflip */
margin-right: 0.5em;
}
}


/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
.language-selector select {
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
  padding: 0.3em;
.collapseButton {
  border: 1px solid #ccd2d9;
/* @noflip */
  border-radius: 3px;
float: right;
font-weight: normal;
/* @noflip */
margin-left: 0.5em;
/* @noflip */
text-align: right;
width: auto;
}
}


/* [[위키백과:관리자 요청/2007년 5월#스크립트 추가 요청]]. ctrl+v from en: */
.language-selector span {
div.NavFrame {
   display: block;
   margin: 0;
   margin-bottom: 0.3em;
  padding: 4px;
   font-weight: bold;
   border: 1px solid #aaa;
  text-align: center;
  border-collapse: collapse;
   font-size: 95%;
}
}
div.NavFrame + div.NavFrame {
#top-language-dropdown {
   border-top-style: none;
   position: fixed;
   border-top-style: hidden;
  top: 10px; /* 調整垂直位置 */
  left: 10px; /* 調整水平位置 */
  background-color: #f9f9f9;
  border: 1px solid #a7d7f9;
  padding: 0.5em;
   border-radius: 4px;
  z-index: 1000; /* 確保它在其他元素之上 */
}
}
div.NavPic {
 
  background-color: #fff;
#top-language-dropdown label {
  margin: 0;
  padding: 2px;
  float: left;
}
div.NavFrame div.NavHead {
  height: 1.6em;
   font-weight: bold;
   font-weight: bold;
   background-color: #ccf;
   margin-right: 0.5em;
  position: relative;
}
}
div.NavFrame p,
 
div.NavFrame div.NavContent,
#top-language-dropdown select {
div.NavFrame div.NavContent p {
   padding: 0.3em;
  font-size: 100%;
   border: 1px solid #ccd2d9;
}
   border-radius: 3px;
div.NavEnd {
  margin: 0;
   padding: 0;
   line-height: 1px;
   clear: both;
}
}
a.NavToggle {
#zh-variant-dropdown {
   position: absolute;
   /* 根據您的喜好設定樣式,例如 */
   top: 0;
  margin-bottom: 1em;
   right: 3px;
   padding: 0.5em;
   font-weight: normal;
   border: 1px solid #a7d7f9;
   font-size: 90%;
   background-color: #f9f9f9;
   border-radius: 4px;
}
}


/* [[위키백과:관리자 요청/2007년 11월]] */
#zh-variant-dropdown label {
/* Prevent line breaks in silly places:
  font-weight: bold;
  1) Where desired
  margin-right: 0.5em;
  2) Links when we don't want them to
  3) Bold "links" to the page itself
  4) Ref tags with group names <ref group="Note"> --> "[Note 1]" */
.nowrap,
.nowraplinks a,
.nowraplinks .selflink,
sup.reference a {
    white-space: nowrap;
}
}


/** 목차에서 특정 단계 이하 제목 숨기기 **/
#zh-variant-dropdown select {
.toclimit-2 .toclevel-2,
  padding: 0.3em;
.toclimit-3 .toclevel-3,
  border: 1px solid #ccd2d9;
.toclimit-4 .toclevel-4,
  border-radius: 3px;
.toclimit-5 .toclevel-5,
.toclimit-6 .toclevel-6,
.toclimit-7 .toclevel-7 {
  display:none;
}
}


/* When <div class="nonumtoc"> is used on the table of contents,
/* 如果您將其放在左上角,則需要使用 fixed 定位 */
  the ToC will display without numbers */
/*
.nonumtoc .tocnumber {
#zh-variant-dropdown {
    display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}
}
.nonumtoc #toc ul,
*/
.nonumtoc .toc ul {
/* ============================================================
     line-height: 1.5em;
* ① 側邊欄 Logo 設定 (Q 字圖)
     list-style: none none;
* ============================================================ */
     margin: .3em 0 0;
.mw-wiki-logo {
     padding: 0;
     /* 使用您指定的 Q 字圖連結 */
}
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/b/b8/Wiki_%285%29.png") !important;
.hlist.nonumtoc #toc ul ul,
     background-size: 135px auto !important;
.hlist.nonumtoc .toc ul ul {
     background-position: center !important;
     /* @noflip */
     background-repeat: no-repeat !important;
     margin: 0;
    width: 160px !important;
     height: 160px !important;
     margin-bottom: 1em;
}
}


/** 미디어 시작 틀과 관련된 코드 **/
/* ============================================================
/* [[위키백과:관리자 요청/2008년 9월]] */
* ② 右上角自定義元件樣式 (語系切換與時鐘)
div.listenlist {
* ============================================================ */
background: url("//upload.wikimedia.org/wikipedia/commons/4/47/Sound-icon.svg") no-repeat scroll 0 0 transparent;
/* 時鐘樣式 */
background-size: 30px;
#pt-clock {
padding-left: 40px;
    font-family: monospace;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 2px 8px;
    border-radius: 4px;
    color: #202122 !important;
}
}


div.videolist, div.multivideolist {
/* 語系切換按鈕容器 */
  background: url("//upload.wikimedia.org/wikipedia/en/thumb/2/20/Tango-video-x-generic.png/40px-Tango-video-x-generic.png");
#custom-variant-switches {
  padding-left: 50px;
    background: #eaf3ff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #a2c9ff;
    margin-right: 5px;
}
}


div.medialist {
/* ============================================================
  min-height: 50px;
* ③ 深色模式 (Dark Mode) 支援
  margin: 1em;
* 當 Common.js 切換 .dark-mode 類別時生效
  background-position: top left;
* ============================================================ */
  background-repeat: no-repeat;
body.dark-mode {
}
    background-color: #101418 !important;
div.medialist ul {
    color: #e0e0e0 !important;
  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: smaller;
  padding-bottom: 0;
}
}


/* 모든 PDF 파일에 대해 외부 링크 아이콘을 Adobe 아이콘으로 변경
body.dark-mode #content {
이러한 CSS 선택기를 지원하는 브라우저(예: 파이어폭스 또는 오페라)*/
    background-color: #1c2128 !important;
div#content a[href$=".pdf"].external,
    color: #e0e0e0 !important;
div#content a[href*=".pdf?"].external,
    border-color: #444 !important;
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 {
background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
/* @noflip */
padding-right: 18px;
}
}


/** XXX **/
body.dark-mode .mw-body {
/* 안내 참조 틀의 동작, [[위키백과:관리자 요청/2008년 9월]] */
    border-color: #30363d !important;
.plainlinksneverexpand {
  background: none ! important;
  padding: 0 ! important;
}
.plainlinksneverexpand .urlexpansion {
  display: none ! important;
}
}


/** [[틀:둘러보기]] 디자인 **/
/* 深色模式下的連結顏色 */
/* [[위키백과토론:위키프로젝트 시스템#미디어위키:common.css에 스타일 추가 요청]] */
body.dark-mode a {
/* Klutzy 2008년 12월 21일 (일) 20:10 (KST) */
    color: #58a6ff !important;
.pathnavbox {
  clear: both;
  border: 1px outset #eef;
  padding: 0.3em 0.6em;
  margin: 0 0 0.5em 0;
  background-color: #eef;
  font-size: smaller;
}
.pathnavbox ul {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
}
.pathnavbox > ul {
  margin: 0;
}
.pathnavbox ul li {
  margin: 0;
}
}


/** 최근 바뀜, 주시 문서 목록에서 "되돌리기" 글자 크기 줄임 **/
body.dark-mode a:visited {
/* [[사용자:ITurtle|iTurtle]] ([[사용자토론:ITurtle|토론]]) 2009년 5월 8일 (금) 22:04 (KST) */
    color: #bc8cff !important;
.page-특수기능_최근바뀜 .mw-rollback-link,
.page-특수기능_주시문서목록 .mw-rollback-link {
  font-size: smaller;
}
}


/* 최근 바뀜에서의 편집 관련 표시 작게. Monobook에서 옮김. */
body.dark-mode #pt-clock {
/* ChongDae 2010년 3월 26일 (금) 22:32  */
    background: #2d333b;
.minoredit {
    color: #adbac7 !important;
  font-size: smaller;
    border-color: #444;
  color: #808080;
}
.newpage {
  font-size: smaller;
  color: #FF0000;
}
.botedit {
  font-size: smaller;
  color: #3CB371;
}
.unpatrolled {
  font-size: smaller;
}
}


/* 대문에서 특정 요소 숨기기. 스킨 관계없이 공통으로. Monobook.css에서 가져옴 --[[사용자:Klutzy|klutzy]] ([[사용자토론:Klutzy|토론]]) 2009년 8월 9일 (일) 13:56 (KST) */
/* ============================================================
body.page-누리위키_대문 #t-cite,
* ④ 介面優化 (選填)
body.page-누리위키_대문 #lastmod,
* ============================================================ */
body.page-누리위키_대문 #siteSub,
/* 讓表格在行動端或大數據下更易讀 */
body.page-누리위키_대문 #contentSub,
.wikitable {
body.page-누리위키_대문 h1.firstHeading {
    background-color: #f8f9fa;
  display: none !important;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
}
}


/* [[틀:누가]] 등의 정비 필요 문장에 밑줄을 표시하기. klutzy 2009년 9월 27일 (일) 19:45 (KST)
/* 隱藏沒必要的公告或標籤(可依需求取消註釋) */
  영어 위키백과와 동일한 상자로 변경. ykhwong 2015년 9월 6일 (일) 12:18 (KST) */
/* #siteNotice { display: none; } */
.fix {
  /* border-bottom: 1px dashed #AAA; */
  background-color: #fff9f9; color: DarkSlateGray; border: 1px solid #ffdcdc;
}


/* iTurtle 2009년 11월 4일 (수) 21:30 (KST) */
/**
#EnWpMpBook { background-image: url(//upload.wikimedia.org/wikipedia/en/7/7e/MP-open-book.png); }
* MediaWiki:Common.js 強化完整版
#EnWpMpSearch { background: url(//upload.wikimedia.org/wikipedia/en/a/ae/MP-magnifying-glass.png) no-repeat top right; }
* 適用對象:Quickpedia wiki
#EnWpMpSearchInner { float: right; width: 20em; text-align: center; }
* 功能:語系導向、手動字詞轉換、自動暫存(防 Cloudflare 斷線)、持久連線心跳包、深色模式、時鐘
#EnWpMpBook2 { background-image: url(//upload.wikimedia.org/wikipedia/commons/8/8e/MP-open-book2.png); }
*/
 
/* 지리 좌표 기본값. 이들이 어떻게 쓰이는지에 대해서는 [[틀:Coord/link]] 참고.
  "geo", "longtitude", "latitude" 클래스는 Geo 마이크로포맷이 사용함.
iTurtle 2009년 11월 28일 (토) 16:40 (KST)
*/
.geo-default, .geo-dms, .geo-dec  { display: inline; }
.geo-nondefault, .geo-multi-punct { display: none; }
.longitude, .latitude      { white-space: nowrap; }


/* 미디어 자료 관련 */
mw.loader.using(['mediawiki.util', 'mediawiki.Uri', 'mediawiki.api']).then(function () {
/* Vector.css에서 너무 작게 나오는 것 방지 PuzzletChung 2010년 1월 5일 (화) 13:48 (KST) */
table.mw_metadata {
  font-size: smaller;
}


/* 편집 요약, 이유의 모양 설정.
    $(function () {
(기울임 대신 글자 크기 약간 작게 하여 구별) */
.comment {
  font-style: normal !important;
  font-size: 9pt;
}
 
/* 최근 바뀜에서 문서 분량 변경에 색깔 넣기
(증가는 초록색 감소는 빨간색) */
.mw-plusminus-pos {
  color:green;
}
.mw-plusminus-neg {
  color:red;
}


/* toccolours 클래스: 일부 틀의 디자인에 사용됨 */
        /* ============================================================
.toccolours {
        * ① 語系自動導向與切換 (針對訪客預設 zh)
  border:1px solid #aaaaaa;
        * ============================================================ */
  background-color: #f9f9f9;
        var isAnon = mw.config.get('wgUserName') === null;
  padding: 5px;
        var currentVariant = mw.util.getParamValue('variant') || mw.config.get('wgUserVariant');
  font-size: 95%;
}


/* [[파일:Example.jpg|thumb]] 프레임이 붙어 있는 그림의 배경을 하얀색으로 */
        // 訪客預設導向中文 (zh)
div.thumb div a img {
        if (isAnon && !currentVariant && mw.config.get('wgAction') === 'view') {
  background-color:#ffffff;
            var url = new mw.Uri(window.location.href);
}
            url.query.variant = 'zh';
            window.location.replace(url.toString());
            return;  
        }


/* 넘겨주기 링크 */
        // 建立右上角切換按鈕
.allpagesredirect a,
        var variants = [
.watchlistredir a,
            { code: 'zh', label: '中文' },
.redirect-in-category a:link,
            { code: 'zh-tw', label: '繁體' },
.redirect-in-category a:visited {
            { code: 'zh-cn', label: '简体' }
  color:#888888;
        ];
}


/* 준보호 문서 편집창 배경색. 주의 환기 */
        var $langContainer = $('<span>').attr('id', 'custom-variant-switches');
.mw-textarea-sprotected {
        variants.forEach(function (v, i) {
  background: #FFFFDB;
            var $link = $('<a>')
}
                .text(v.label)
                .css({
                    cursor: 'pointer',
                    padding: '0 5px',
                    color: currentVariant === v.code ? '#000' : '#0645ad',
                    fontWeight: currentVariant === v.code ? 'bold' : 'normal'
                })
                .on('click', function (e) {
                    e.preventDefault();
                    var url = new mw.Uri(window.location.href);
                    url.query.variant = v.code;
                    window.location.href = url.toString();
                });
            $langContainer.append($link);
            if (i < variants.length - 1) $langContainer.append('|');
        });


/* gallery 사용시 섬네일 글자 크기 조정 */
        mw.util.addPortletLink('p-personal', '#', '', 'pt-variant-switch', '切換語系', '#pt-logout');
.gallerytext p {
        $('#pt-variant-switch').append($langContainer);
  font-size: 90%;
}


/* 최근 바뀜 등에서 태그를 눈에 띄게 표시 */
.mw-tag-markers {
  color: red;
}


/*
        /* ============================================================
[[위키백과:관리자_요청/2011년_10월]]. 둘러보기 틀에서 list를 사용하는 경우 목록을 가로로 보이게 하여 기존의 수동 목록에 비해 의미성/편의성이 높습니다.
        * ② 手動字詞轉換 (確保站名正確顯示)
{{가로목록}}을 통해 사용.
        * ============================================================ */
2013-02-28: 영어판 css 가져옴. ul 목록뿐 아니라 dt/dd도 지원. --klutzy
        function applyManualTranslation() {
*/
            var v = mw.util.getParamValue('variant') || mw.config.get('wgUserVariant') || mw.config.get('wgUserLanguage');
/* Style for horizontal lists (separator following item).
            if (v === 'zh-hans' || v === 'zh-cn') {
  @source mediawiki.org/wiki/Snippets/Horizontal_lists
                $('h1#firstHeading, #p-logo-text, .mw-wiki-title, title').each(function() {
  @revision 7 (2015-11-12)
                    var t = $(this).text();
  @author [[User:Edokter]]
                    // 手動將繁體站名替換為簡體
*/
                    $(this).text(t.replace(/Quickpedia wiki/g, 'Quickpedia wiki'));
.hlist dl,
                });
.hlist ol,
            }
.hlist ul {
        }
    margin: 0;
        applyManualTranslation();
    padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
    margin: 0;
    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 itmes */
.hlist .mw-empty-li {
    display: none;
}
/* Generate interpuncts */
.hlist dt:after {
    content: ": ";
}
.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) " ";
    white-space: nowrap;
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
    content: " (" counter(listitem) " ";
}


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


/* 바벨
        /* ============================================================
  [[미디어위키토론:Common.css#바벨 상자 스타일 맞추기]]
        * ③ 自動暫存與持久編輯 (對抗 Cloudflare 驗證中斷)
  바벨 확장 기능을 기존 바벨 상자 스타일에 맞추기 */
        * ============================================================ */
.mw-babel-box-level-N  {
         if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) !== -1) {
         display: none;
            var pageName = mw.config.get('wgPageName');
}
            var storageKey = 'edit_cache_' + pageName;
            var $textbox = $('#wpTextbox1');
div.mw-babel-box table th  {
        font-family: sans-serif;
        font-size:14pt;
        text-align:center;
        width:45px;
        height:45px;
}
div.mw-babel-box table td {
        font-size:8pt;
        padding:4pt;
        line-height:1.25em;
}
div.mw-babel-box-N  {
        float: left;
        border:solid #6EF7A7 1px;
        margin:1px;
}
div.mw-babel-box-4  {
        float:left;
        border:solid #77E0E8 1px;
        margin:1px;
}
div.mw-babel-box-3  {
        float:left;
        border:solid #99B3FF 1px;
        margin:1px;
}
div.mw-babel-box-2  {
        float:left;
        border:solid #BCB9EF 1px;
        margin:1px;
}
div.mw-babel-box-1 {
        float:left;
        border:solid #E0C0E0 1px;
        margin:1px;
}
div.mw-babel-box-0  {
        float:left;
        border:solid #FFB3B3 1px;
        margin:1px;
}
div.mw-babel-box-N table  {
        background: #C5FCDC;
}
div.mw-babel-box-4 table {
        background: #D0F8FF;
}
div.mw-babel-box-3 table  {
        background: #E0E8FF;
}
div.mw-babel-box-2 table {
        background: #E9E5F9;
}
div.mw-babel-box-1 table {
        background: #F3E0F3;
}
div.mw-babel-box-0 table {
        background: #FFE0E8;
}
div.mw-babel-box-N table th  {
        background: #6EF7A7;
}
div.mw-babel-box-4 table th {
        background: #77E0E8;
}
div.mw-babel-box-3 table th  {
        background: #99B3FF;
}
div.mw-babel-box-2 table th {
        background: #BCB9EF;
}
div.mw-babel-box-1 table th {
        background: #E0C0E0;
}
div.mw-babel-box-0 table th {
        background: #FFB3B3;
}


/* {{참고}}, {{본문}} 등의 틀에 쓰이는 class. */
            // A. 心跳包:每 2 分鐘向伺服器發送請求,防止 Session 過期或驗證跳出
.rellink,
            setInterval(function() {
.dablink,
                new mw.Api().get({
.hatnote {
                    action: 'query',
    /* font-style: italic; */ /* 영어 위키백과와 달리 이탤릭 사용하지 않음 */
                    titles: pageName,
    font-size: 90%;          /* 한국어 위키백과에서는 대신 작은 글씨로 본문과 구분함 */
                    prop: 'info'
    /* @noflip */
                }).done(function() {
    padding-left: 1.6em;
                    console.log('Quickpedia wiki 連線維持中...');
    margin-top: 0.5em; /* 최근 모든 언어의 위키백과에서 문서 상단 부분의 여백이 최소화되어 상단 여백을 추가함. Ykhwong 2017년 10월 21일 (토) */
                });
    margin-bottom: 0.5em;
            }, 120000);
}


/* wikitable 관련 스타일 정비. 영어 위키백과에서 가져옴. 2014-2-6 ChongDae */
            // B. 高頻率自動暫存:每 20 秒存一次草稿
            setInterval(function () {
                var content = $textbox.val();
                if (content && content.length > 10) {
                    localStorage.setItem(storageKey, JSON.stringify({
                        text: content,
                        timestamp: Date.now()
                    }));
                }
            }, 20000);


/* Normal font styling for table row headers with scope="row" tag */
            // C. 檢查並還原草稿
.wikitable.plainrowheaders th[scope=row] {
            var savedCache = localStorage.getItem(storageKey);
    font-weight: normal;
            if (savedCache) {
    /* @noflip */
                var data = JSON.parse(savedCache);
    text-align: left;
                if (Date.now() - data.timestamp < 86400000 && $textbox.val().length < 50) {
}
                    if (confirm('偵測到未儲存草稿(可能因 Cloudflare 驗證中斷),是否還原?')) {
                        $textbox.val(data.text);
/* Lists in data cells are always left-aligned */
                    }
.wikitable td ul,
                }
.wikitable td ol,
            }
.wikitable td dl {
    /* @noflip */
    text-align: left;
}
/* ...unless they also use the hlist class */
.wikitable.hlist td ul,
.wikitable.hlist td ol,
.wikitable.hlist td dl {
    text-align: inherit;
}


/* [[틀:보존문서 안내문2]]용 class. 2015-3-17 IRTC1015 */
            // D. 離開頁面警告
.archiveHeader2 {
            window.onbeforeunload = function() {
clear: right;
                if ($textbox.val().length > 50) return "內容尚未儲存!";
float: right;
            };
border: 1px solid #a7d7f9;
margin: 0 0 1.4em 0.5em;
padding: 0.5em;
border-spacing: 0;
-moz-border-radius: 0.5em;
-webkit-border-radius: 0.5em;
border-radius:0.5em; font-size:small;
background-color:#FFFFFF;
}


.archiveHeader2 .mw-ui-input-inline {
            // E. 儲存後清除暫存
    min-width: 0;
            $('#wpSave, #wpSaveWidget, input#wpSave').on('click', function() {
    width: 12em;
                localStorage.removeItem(storageKey);
}
                window.onbeforeunload = null;  
            });
        }


/* 정렬 가능한 표용 정렬 키: [[틀:이름정렬]] 등 참조 */
td .sortkey,
th .sortkey {
    display: none;
    speak: none;
}


/* 원 도표: Transparent borders */
        /* ============================================================
.transborder {
        * ④ 深色模式
    border: solid transparent;
        * ============================================================ */
}
        var darkBtn = mw.util.addPortletLink('p-personal', '#', '深色模式', 'pt-darkmode', '切換深色模式', '#pt-variant-switch');
* html .transborder {  /* IE6 */
        $(darkBtn).on('click', function (e) {
    border: solid #000001;
            e.preventDefault();
    filter: chroma(color=#000001);
            $('body').toggleClass('dark-mode');
}
            localStorage.setItem('wiki-dark-mode', $('body').hasClass('dark-mode') ? '1' : '0');
        });


/* 포털 관련 css 추가 2015-11-06 ChongDae */
        if (localStorage.getItem('wiki-dark-mode') === '1') {
/* For portals, added 2011-12-07 -bv
            $('body').addClass('dark-mode');
  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;
    }
}


/* 사용자 그룹별 노출 제어. 영어 위키백과에서 가져옴. -- ChongDae */
/* Hide stuff meant for accounts with special permissions. Made visible again in
  [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-accountcreator.css]],
  [[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]] and [[Mediawiki:Group-autoconfirmed.css]]. */
.sysop-show,
.accountcreator-show,
.templateeditor-show,
.extendedmover-show,
.autoconfirmed-show,
.user-show {
    display: none;
}


/* 사이트노티스 불릿 예쁘게 정렬 -- IRTC1015 */
        /* ============================================================
#localNotice ul {
        * ⑤ 即時時鐘
list-style-position: inside;
        * ============================================================ */
}
        var $clock = $('<li>').attr('id', 'pt-clock').css({
            fontWeight: 'bold',
            marginLeft: '10px',
            color: '#54595d'
        });


/* 줄바꿈 처리 */
        function updateClock() {
* {
            var now = new Date();
word-wrap:break-word;
            $clock.text(now.toLocaleTimeString('zh-TW', { hour12: false }));
}
        }


/* 삭제선 옅게 처리 */
        $('#p-personal ul').append($clock);
del,strike,s{
        setInterval(updateClock, 1000);
color:#c1c1c1;
        updateClock();
}
del a, s a, del a:visited, s a:visited{
color: #7f7ff6;
text-decoration: line-through;
}


/* 이미지 크기 */
    });
img, iframe {
});
max-width: 100%;
}

於 2026年9月9日 (三) 03:34 的最新修訂

/** CSS placed here will be applied to all skins */
/* Common CSS for all skins */

/* 致各管理員:留意 Monobook.css or Common.css 在 [[Wikimedia:zh:Wikipedia:Village Pump|Wikipedia:Village Pump]] 的變動。  Thank you. */
/*<pre><nowiki>*/

/* make the list of references look smaller */
ol.references {
   font-size: 100%;
}

.references-small { font-size: 90%;}

/* 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 }

/* wikitable/prettytable class for skinning normal tables */

table.wikitable,
table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}

table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
  border: 1px #aaaaaa solid;
  padding: 0.2em;
}

table.wikitable th,
table.prettytable th {
  background: #f2f2f2;
  text-align: center;
}

table.wikitable caption,
table.prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
}

/* 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;
}

/* Metadata */
table.metadata {
    border: 1px solid #aaaaaa;
    display: none;
    speak: none;
}
.metadata-label {
    color: #aaaaaa;
}

/* 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.
  [[使用者:Msnhinet8|Msnhinet8]]([[使用者討論:Msnhinet8|留言]]) 2025年4月8日 (二) 10:55 (CST)
*/

.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!
   [[使用者:Msnhinet8|Msnhinet8]]([[使用者討論:Msnhinet8|留言]]) 2025年4月8日 (二) 10:55 (CST)
*/
.plainlinksneverexpand a.external.text:after {
  display: none !important;
}
.plainlinksneverexpand a.external.autonumber:after {
  display: none !important;
}

/* Merge template style */

.messagebox {
   border: 1px solid #aaaaaa;
   background-color: #f9f9f9;
   width: 80%;
   margin: 0 auto 1em auto;
   padding: .2em;
   text-align: justify;
}
.messagebox.merge {
   border: 1px solid #cf9fff;
   background-color: #f5edf5;
   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;
}

/* 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;
   margin-left: inherit;
}
.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: 120%;
}

/* 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: 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;
        font-family /**/:inherit;
}
.Unicode {
        font-family: 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;
        font-family /**/:inherit;
}
.latinx {
        font-family: TITUS Cyberbit Basic, Code2000, Microsoft Sans Serif;
        font-family /**/:inherit;
}
.polytonic, .interwiki-el a {
        font-family: Athena, Gentium, Palatino Linotype, Arial Unicode MS, Lucida Sans Unicode, Lucida Grande, Code2000;
        font-family /**/:inherit;
}
.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; }

/* Donations link to be uncommented during fundraising drives */
#siteNotice {
    margin-top:5px;
    padding-left: 4px;
    font-style: italic;
    text-align: center;
}

/*
#fundraising {
 text-align: center;
 border: 1px solid gray;
 padding: 5px;
}
*/

/****************************/
/* BEGIN LIGHT BLUE SECTION */
/****************************/
/* Make all non-namespace pages have a light blue content area. This is done by
   setting the background color for all #content areas to light blue and then
   overriding it for any #content enclosed in a .ns-0 (main namespace). I then
   do the same for the "tab" background colors. --Lupo */

#content {
    background: #F8FCFF; /* a light blue */
}

#content div.thumb {
    border-color: #F8FCFF;
}

.ns-0 * #content {
    background: white;
}

#mytabs li {
    background: #F8FCFF;
}

.ns-0 * #mytabs li {
    background: white;
}

#mytabs li a {
    background-color: #F8FCFF;
}

.ns-0 * #mytabs li a {
    background-color: white;
}

#p-cactions li a, #p-cactions li a:hover, #p-cactions li.selected a {
    background-color: #F8FCFF;
}

.ns-0 * #p-cactions li a {
    background-color: #fbfbfb;
}

.ns-0 * #p-cactions li.selected a, .ns-0 * #p-cactions li a:hover {
    background-color: white;
}

.ns-0 * #content div.thumb {
    border-color: white;
}

/**************************/
/* END LIGHT BLUE SECTION */
/**************************/

/* Display "From Wikipedia, the free encyclopedia" */
#siteSub {
    display: inline;
    font-size: 92%;
    font-weight: normal;
}

#bodyContent #siteSub a {
    color: #000;
    text-decoration: none;
    background-color: transparent;
    background-image: none;
    padding-right: 0;
}

/* Bold 'edit this page' link to encourage newcomers */
#ca-edit a { font-weight: bold !important; }

/* Display "User $1, you are already logged in!"
   ([[MediaWiki:Alreadyloggedin]]) in red and bold */
div.alreadyloggedin { color: red; font-weight: bold; }

@media print {
    /* Do not print edit link in templates using Templat
.language-selector {
  margin-bottom: 1em;
  padding: 0.5em;
  border: 1px solid #a7d7f9;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.language-selector label {
  font-weight: bold;
  margin-right: 0.5em;
}

.language-selector select {
  padding: 0.3em;
  border: 1px solid #ccd2d9;
  border-radius: 3px;
}

.language-selector span {
  display: block;
  margin-bottom: 0.3em;
  font-weight: bold;
}
#top-language-dropdown {
  position: fixed;
  top: 10px; /* 調整垂直位置 */
  left: 10px; /* 調整水平位置 */
  background-color: #f9f9f9;
  border: 1px solid #a7d7f9;
  padding: 0.5em;
  border-radius: 4px;
  z-index: 1000; /* 確保它在其他元素之上 */
}

#top-language-dropdown label {
  font-weight: bold;
  margin-right: 0.5em;
}

#top-language-dropdown select {
  padding: 0.3em;
  border: 1px solid #ccd2d9;
  border-radius: 3px;
}
#zh-variant-dropdown {
  /* 根據您的喜好設定樣式,例如 */
  margin-bottom: 1em;
  padding: 0.5em;
  border: 1px solid #a7d7f9;
  background-color: #f9f9f9;
  border-radius: 4px;
}

#zh-variant-dropdown label {
  font-weight: bold;
  margin-right: 0.5em;
}

#zh-variant-dropdown select {
  padding: 0.3em;
  border: 1px solid #ccd2d9;
  border-radius: 3px;
}

/* 如果您將其放在左上角,則需要使用 fixed 定位 */
/*
#zh-variant-dropdown {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}
*/
/* ============================================================
 * ① 側邊欄 Logo 設定 (Q 字圖)
 * ============================================================ */
.mw-wiki-logo {
    /* 使用您指定的 Q 字圖連結 */
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/b/b8/Wiki_%285%29.png") !important;
    background-size: 135px auto !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 160px !important;
    height: 160px !important;
    margin-bottom: 1em;
}

/* ============================================================
 * ② 右上角自定義元件樣式 (語系切換與時鐘)
 * ============================================================ */
/* 時鐘樣式 */
#pt-clock {
    font-family: monospace;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 2px 8px;
    border-radius: 4px;
    color: #202122 !important;
}

/* 語系切換按鈕容器 */
#custom-variant-switches {
    background: #eaf3ff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #a2c9ff;
    margin-right: 5px;
}

/* ============================================================
 * ③ 深色模式 (Dark Mode) 支援
 * 當 Common.js 切換 .dark-mode 類別時生效
 * ============================================================ */
body.dark-mode {
    background-color: #101418 !important;
    color: #e0e0e0 !important;
}

body.dark-mode #content {
    background-color: #1c2128 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

body.dark-mode .mw-body {
    border-color: #30363d !important;
}

/* 深色模式下的連結顏色 */
body.dark-mode a {
    color: #58a6ff !important;
}

body.dark-mode a:visited {
    color: #bc8cff !important;
}

body.dark-mode #pt-clock {
    background: #2d333b;
    color: #adbac7 !important;
    border-color: #444;
}

/* ============================================================
 * ④ 介面優化 (選填)
 * ============================================================ */
/* 讓表格在行動端或大數據下更易讀 */
.wikitable {
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
}

/* 隱藏沒必要的公告或標籤(可依需求取消註釋) */
/* #siteNotice { display: none; } */

/**
 * MediaWiki:Common.js 強化完整版
 * 適用對象:Quickpedia wiki
 * 功能:語系導向、手動字詞轉換、自動暫存(防 Cloudflare 斷線)、持久連線心跳包、深色模式、時鐘
 */

mw.loader.using(['mediawiki.util', 'mediawiki.Uri', 'mediawiki.api']).then(function () {

    $(function () {

        /* ============================================================
         * ① 語系自動導向與切換 (針對訪客預設 zh)
         * ============================================================ */
        var isAnon = mw.config.get('wgUserName') === null;
        var currentVariant = mw.util.getParamValue('variant') || mw.config.get('wgUserVariant');

        // 訪客預設導向中文 (zh)
        if (isAnon && !currentVariant && mw.config.get('wgAction') === 'view') {
            var url = new mw.Uri(window.location.href);
            url.query.variant = 'zh';
            window.location.replace(url.toString());
            return; 
        }

        // 建立右上角切換按鈕
        var variants = [
            { code: 'zh', label: '中文' },
            { code: 'zh-tw', label: '繁體' },
            { code: 'zh-cn', label: '简体' }
        ];

        var $langContainer = $('<span>').attr('id', 'custom-variant-switches');
        variants.forEach(function (v, i) {
            var $link = $('<a>')
                .text(v.label)
                .css({
                    cursor: 'pointer',
                    padding: '0 5px',
                    color: currentVariant === v.code ? '#000' : '#0645ad',
                    fontWeight: currentVariant === v.code ? 'bold' : 'normal'
                })
                .on('click', function (e) {
                    e.preventDefault();
                    var url = new mw.Uri(window.location.href);
                    url.query.variant = v.code;
                    window.location.href = url.toString();
                });
            $langContainer.append($link);
            if (i < variants.length - 1) $langContainer.append('|');
        });

        mw.util.addPortletLink('p-personal', '#', '', 'pt-variant-switch', '切換語系', '#pt-logout');
        $('#pt-variant-switch').append($langContainer);


        /* ============================================================
         * ② 手動字詞轉換 (確保站名正確顯示)
         * ============================================================ */
        function applyManualTranslation() {
            var v = mw.util.getParamValue('variant') || mw.config.get('wgUserVariant') || mw.config.get('wgUserLanguage');
            if (v === 'zh-hans' || v === 'zh-cn') {
                $('h1#firstHeading, #p-logo-text, .mw-wiki-title, title').each(function() {
                    var t = $(this).text();
                    // 手動將繁體站名替換為簡體
                    $(this).text(t.replace(/Quickpedia wiki/g, 'Quickpedia wiki'));
                });
            }
        }
        applyManualTranslation();


        /* ============================================================
         * ③ 自動暫存與持久編輯 (對抗 Cloudflare 驗證中斷)
         * ============================================================ */
        if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) !== -1) {
            var pageName = mw.config.get('wgPageName');
            var storageKey = 'edit_cache_' + pageName;
            var $textbox = $('#wpTextbox1');

            // A. 心跳包:每 2 分鐘向伺服器發送請求,防止 Session 過期或驗證跳出
            setInterval(function() {
                new mw.Api().get({
                    action: 'query',
                    titles: pageName,
                    prop: 'info'
                }).done(function() {
                    console.log('Quickpedia wiki 連線維持中...');
                });
            }, 120000);

            // B. 高頻率自動暫存:每 20 秒存一次草稿
            setInterval(function () {
                var content = $textbox.val();
                if (content && content.length > 10) {
                    localStorage.setItem(storageKey, JSON.stringify({
                        text: content,
                        timestamp: Date.now()
                    }));
                }
            }, 20000); 

            // C. 檢查並還原草稿
            var savedCache = localStorage.getItem(storageKey);
            if (savedCache) {
                var data = JSON.parse(savedCache);
                if (Date.now() - data.timestamp < 86400000 && $textbox.val().length < 50) {
                    if (confirm('偵測到未儲存草稿(可能因 Cloudflare 驗證中斷),是否還原?')) {
                        $textbox.val(data.text);
                    }
                }
            }

            // D. 離開頁面警告
            window.onbeforeunload = function() {
                if ($textbox.val().length > 50) return "內容尚未儲存!";
            };

            // E. 儲存後清除暫存
            $('#wpSave, #wpSaveWidget, input#wpSave').on('click', function() {
                localStorage.removeItem(storageKey);
                window.onbeforeunload = null; 
            });
        }


        /* ============================================================
         * ④ 深色模式
         * ============================================================ */
        var darkBtn = mw.util.addPortletLink('p-personal', '#', '深色模式', 'pt-darkmode', '切換深色模式', '#pt-variant-switch');
        $(darkBtn).on('click', function (e) {
            e.preventDefault();
            $('body').toggleClass('dark-mode');
            localStorage.setItem('wiki-dark-mode', $('body').hasClass('dark-mode') ? '1' : '0');
        });

        if (localStorage.getItem('wiki-dark-mode') === '1') {
            $('body').addClass('dark-mode');
        }


        /* ============================================================
         * ⑤ 即時時鐘
         * ============================================================ */
        var $clock = $('<li>').attr('id', 'pt-clock').css({
            fontWeight: 'bold',
            marginLeft: '10px',
            color: '#54595d'
        });

        function updateClock() {
            var now = new Date();
            $clock.text(now.toLocaleTimeString('zh-TW', { hour12: false }));
        }

        $('#p-personal ul').append($clock);
        setInterval(updateClock, 1000);
        updateClock();

    });
});